1 package org
.usfirst
.frc
.team3501
.robot
;
3 import org
.usfirst
.frc
.team3501
.robot
.subsystems
.DriveTrain
;
4 import org
.usfirst
.frc
.team3501
.robot
.subsystems
.Intake
;
5 import org
.usfirst
.frc
.team3501
.robot
.subsystems
.Shooter
;
7 import edu
.wpi
.cscore
.AxisCamera
;
8 import edu
.wpi
.first
.wpilibj
.CameraServer
;
9 import edu
.wpi
.first
.wpilibj
.IterativeRobot
;
10 import edu
.wpi
.first
.wpilibj
.command
.Scheduler
;
12 public class Robot
extends IterativeRobot
{
13 private static DriveTrain driveTrain
;
14 private static Shooter shooter
;
16 private static Intake intake
;
17 // private static UsbCamera usbCamera;
18 private static CameraServer cameraServer2
;
19 private static AxisCamera axisCamera
;
20 private static CameraFeeds cameraFeeds
;
23 public void robotInit() {
24 driveTrain
= DriveTrain
.getDriveTrain();
26 shooter
= Shooter
.getShooter();
27 intake
= Intake
.getIntake();
29 usbCamera
= CameraServer
.getInstance().startAutomaticCapture();
31 // cameraServer2 = CameraServer;getInstance();
32 // axisCamera = cameraServer2.addAxisCamera("axisCamera", "10.35.1.11");
34 cameraServer2
= CameraServer
.getInstance();
35 axisCamera
= cameraServer2
.addAxisCamera("axisCamera", "10.35.1.11");
37 cameraFeeds
= new CameraFeeds();
39 // usbCamera = CameraServer.getInstance().startAutomaticCapture();
40 // CameraServer.getInstance().startAutomaticCapture();
41 // cameraServer2 = CameraServer.getInstance();
42 // axisCamera = cameraServer2.addAxisCamera("axisCamera", "10.35.1.11");
43 // cameraFeeds = new CameraFeeds();
47 public static DriveTrain
getDriveTrain() {
48 return DriveTrain
.getDriveTrain();
51 public static Shooter
getShooter() {
52 return Shooter
.getShooter();
55 public static OI
getOI() {
59 public static Intake
getIntake() {
60 return Intake
.getIntake();
63 // If the gear values do not match in the left and right piston, then they are
64 // both set to high gear
66 public void autonomousInit() {
67 driveTrain
.setHighGear();
71 public void autonomousPeriodic() {
72 Scheduler
.getInstance().run();
77 public void teleopInit() {
82 >>>>>>> implement CameraFeeds into robot
.java and add todos
86 public void teleopPeriodic() {
87 Scheduler
.getInstance().run();