1 package org
.usfirst
.frc
.team3501
.robot
;
3 import org
.usfirst
.frc
.team3501
.robot
.commands
.driving
.TimeDrive
;
4 import org
.usfirst
.frc
.team3501
.robot
.subsystems
.DriveTrain
;
5 import org
.usfirst
.frc
.team3501
.robot
.subsystems
.Intake
;
6 import org
.usfirst
.frc
.team3501
.robot
.subsystems
.Shooter
;
8 import edu
.wpi
.first
.wpilibj
.IterativeRobot
;
9 import edu
.wpi
.first
.wpilibj
.command
.Scheduler
;
11 public class Robot
extends IterativeRobot
{
12 private static DriveTrain driveTrain
;
13 private static Shooter shooter
;
15 private static Intake intake
;
18 public void robotInit() {
19 driveTrain
= DriveTrain
.getDriveTrain();
21 shooter
= Shooter
.getShooter();
22 intake
= Intake
.getIntake();
25 public static DriveTrain
getDriveTrain() {
26 return DriveTrain
.getDriveTrain();
29 public static Shooter
getShooter() {
30 return Shooter
.getShooter();
33 public static OI
getOI() {
37 public static Intake
getIntake() {
38 return Intake
.getIntake();
42 public void autonomousInit() {
43 Scheduler
.getInstance().add(new TimeDrive(1.5, 0.4));
47 public void autonomousPeriodic() {
48 Scheduler
.getInstance().run();
53 public void teleopInit() {
57 public void teleopPeriodic() {
58 Scheduler
.getInstance().run();