1 package org
.usfirst
.frc
.team3501
.robot
;
5 import org
.usfirst
.frc
.team3501
.robot
.commands
.driving
.DriveDistance
;
7 import org
.usfirst
.frc
.team3501
.robot
.subsystems
.DriveTrain
;
8 import org
.usfirst
.frc
.team3501
.robot
.subsystems
.Intake
;
9 import org
.usfirst
.frc
.team3501
.robot
.subsystems
.Shooter
;
11 import edu
.wpi
.first
.wpilibj
.IterativeRobot
;
12 import edu
.wpi
.first
.wpilibj
.command
.Scheduler
;
14 public class Robot
extends IterativeRobot
{
15 private static DriveTrain driveTrain
;
16 private static Shooter shooter
;
18 private static Intake intake
;
21 public void robotInit() {
22 driveTrain
= DriveTrain
.getDriveTrain();
24 shooter
= Shooter
.getShooter();
25 intake
= Intake
.getIntake();
28 public static DriveTrain
getDriveTrain() {
29 return DriveTrain
.getDriveTrain();
32 public static Shooter
getShooter() {
33 return Shooter
.getShooter();
36 public static OI
getOI() {
40 public static Intake
getIntake() {
41 return Intake
.getIntake();
45 public void autonomousInit() {
48 Scheduler
.getInstance().add(new DriveDistance(25, 10));
53 public void autonomousPeriodic() {
54 Scheduler
.getInstance().run();
59 public void teleopInit() {
63 public void teleopPeriodic() {
64 Scheduler
.getInstance().run();