580173e19262c066bff984edfff37c9bb64478f5
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 Shooter shooter
;
17 private static Intake intake
;
20 public void robotInit() {
21 driveTrain
= DriveTrain
.getDriveTrain();
23 shooter
= Shooter
.getShooter();
24 intake
= Intake
.getIntake();
27 public static DriveTrain
getDriveTrain() {
28 return DriveTrain
.getDriveTrain();
31 public static Shooter
getShooter() {
32 return Shooter
.getShooter();
35 public static OI
getOI() {
39 public static Shooter
getShooter() {
40 return Shooter
.getShooter();
43 public static OI
getOI() {
47 public static Intake
getIntake() {
48 return Intake
.getIntake()
52 public void autonomousInit() {
53 Scheduler
.getInstance().add(new TimeDrive(1.5, 0.4));
57 public void autonomousPeriodic() {
58 Scheduler
.getInstance().run();
63 public void teleopInit() {
67 public void teleopPeriodic() {
68 Scheduler
.getInstance().run();