Solving merge conflict.
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / Robot.java.BACKUP.6792.java
CommitLineData
748d3e14
RH
1package org.usfirst.frc.team3501.robot;
2
3import org.usfirst.frc.team3501.robot.subsystems.DriveTrain;
4import org.usfirst.frc.team3501.robot.subsystems.Intake;
5import org.usfirst.frc.team3501.robot.subsystems.Shooter;
6
7import edu.wpi.cscore.AxisCamera;
8import edu.wpi.cscore.UsbCamera;
9import edu.wpi.first.wpilibj.CameraServer;
10import edu.wpi.first.wpilibj.IterativeRobot;
11import edu.wpi.first.wpilibj.command.Scheduler;
12
13public class Robot extends IterativeRobot {
14 private static DriveTrain driveTrain;
15 private static Shooter shooter;
16 private static OI oi;
17 private static Intake intake;
18 private static UsbCamera usbCamera;
19 private static CameraServer cameraServer2;
20 private static AxisCamera axisCamera;
21
22 @Override
23 public void robotInit() {
24 driveTrain = DriveTrain.getDriveTrain();
25 oi = OI.getOI();
26 shooter = Shooter.getShooter();
27 intake = Intake.getIntake();
28<<<<<<< HEAD
29
30=======
31 usbCamera = CameraServer.getInstance().startAutomaticCapture();
32 // cameraServer2 = CameraServer;getInstance();
33 // axisCamera = cameraServer2.addAxisCamera("axisCamera", "10.35.1.11");
34>>>>>>> Move code to more updated branch.
35 }
36
37 public static DriveTrain getDriveTrain() {
38 return DriveTrain.getDriveTrain();
39 }
40
41 public static Shooter getShooter() {
42 return Shooter.getShooter();
43 }
44
45 public static OI getOI() {
46 return OI.getOI();
47 }
48
49 public static Intake getIntake() {
50 return Intake.getIntake();
51 }
52
53 // If the gear values do not match in the left and right piston, then they are
54 // both set to high gear
55 @Override
56 public void autonomousInit() {
57 driveTrain.setHighGear();
58 }
59
60 @Override
61 public void autonomousPeriodic() {
62 Scheduler.getInstance().run();
63
64 }
65
66 @Override
67 public void teleopInit() {
68
69 }
70
71 @Override
72 public void teleopPeriodic() {
73 Scheduler.getInstance().run();
74
75 }
76}