Add code for toggling camera, but took it off
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / Robot.java
CommitLineData
38a404b3
KZ
1package org.usfirst.frc.team3501.robot;
2
cca02549 3import org.usfirst.frc.team3501.robot.subsystems.DriveTrain;
6f3b6d29 4import org.usfirst.frc.team3501.robot.subsystems.Intake;
079a8cb6 5import org.usfirst.frc.team3501.robot.subsystems.Shooter;
6acd1f1b 6
6c8d1c4c
RH
7import edu.wpi.cscore.AxisCamera;
8import edu.wpi.cscore.UsbCamera;
9import edu.wpi.first.wpilibj.CameraServer;
38a404b3
KZ
10import edu.wpi.first.wpilibj.IterativeRobot;
11import edu.wpi.first.wpilibj.command.Scheduler;
12
13public class Robot extends IterativeRobot {
6acd1f1b 14 private static DriveTrain driveTrain;
414d5638 15 private static Shooter shooter;
6acd1f1b 16 private static OI oi;
6f3b6d29 17 private static Intake intake;
6c8d1c4c
RH
18 private static UsbCamera usbCamera;
19 private static CameraServer cameraServer2;
20 private static AxisCamera axisCamera;
38a404b3
KZ
21
22 @Override
23 public void robotInit() {
6acd1f1b
CZ
24 driveTrain = DriveTrain.getDriveTrain();
25 oi = OI.getOI();
079a8cb6 26 shooter = Shooter.getShooter();
6f3b6d29 27 intake = Intake.getIntake();
6c8d1c4c 28 usbCamera = CameraServer.getInstance().startAutomaticCapture();
82f682df 29 cameraServer2 = CameraServer.getInstance();
30 axisCamera = cameraServer2.addAxisCamera("axisCamera", "10.35.1.11");
cca02549 31 }
6acd1f1b
CZ
32
33 public static DriveTrain getDriveTrain() {
34 return DriveTrain.getDriveTrain();
cca02549 35 }
6acd1f1b 36
414d5638 37 public static Shooter getShooter() {
38 return Shooter.getShooter();
39 }
40
6acd1f1b
CZ
41 public static OI getOI() {
42 return OI.getOI();
38a404b3
KZ
43 }
44
6f3b6d29 45 public static Intake getIntake() {
7992f152
AD
46 return Intake.getIntake();
47 }
48
38a404b3
KZ
49 @Override
50 public void autonomousInit() {
51 }
52
53 @Override
54 public void autonomousPeriodic() {
55 Scheduler.getInstance().run();
56
57 }
58
59 @Override
60 public void teleopInit() {
61 }
62
63 @Override
64 public void teleopPeriodic() {
65 Scheduler.getInstance().run();
66
67 }
68}