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
;
17 public void robotInit() {
18 driveTrain
= DriveTrain
.getDriveTrain();
20 shooter
= Shooter
.getShooter();
21 intake
= Intake
.getIntake();
24 public static DriveTrain
getDriveTrain() {
25 return DriveTrain
.getDriveTrain();
28 public static Shooter
getShooter() {
29 return Shooter
.getShooter();
32 public static OI
getOI() {
36 public static Intake
getIntake() {
37 return Intake
.getIntake();
40 // If the gear values do not match in the left and right piston, then they are
41 // both set to high gear
43 public void autonomousInit() {
44 driveTrain
.setHighGear();
48 public void autonomousPeriodic() {
49 Scheduler
.getInstance().run();
54 public void teleopInit() {
59 public void teleopPeriodic() {
60 Scheduler
.getInstance().run();