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
.first
.wpilibj
.IterativeRobot
;
8 import edu
.wpi
.first
.wpilibj
.command
.Scheduler
;
10 public class Robot
extends IterativeRobot
{
11 private static DriveTrain driveTrain
;
12 private static Shooter shooter
;
14 private static Intake intake
;
15 // private static UsbCamera usbCamera;
16 // private static CameraServer cameraServer2;
17 // private static AxisCamera axisCamera;
18 private static CameraFeeds cameraFeeds
;
21 public void robotInit() {
22 driveTrain
= DriveTrain
.getDriveTrain();
24 shooter
= Shooter
.getShooter();
25 intake
= Intake
.getIntake();
27 cameraFeeds
= CameraFeeds
.getCameraFeeds();
31 public static DriveTrain
getDriveTrain() {
32 return DriveTrain
.getDriveTrain();
35 public static Shooter
getShooter() {
36 return Shooter
.getShooter();
39 public static CameraFeeds
getCameraFeeds() {
43 public static OI
getOI() {
47 public static Intake
getIntake() {
48 return Intake
.getIntake();
51 // If the gear values do not match in the left and right piston, then they are
52 // both set to high gear
54 public void autonomousInit() {
55 driveTrain
.setHighGear();
59 public void autonomousPeriodic() {
60 Scheduler
.getInstance().run();
65 public void teleopInit() {
69 public void teleopPeriodic() {
70 Scheduler
.getInstance().run();