Add Intake subsystem, filled in methods for Intake commands
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / Robot.java
CommitLineData
38a404b3
KZ
1package org.usfirst.frc.team3501.robot;
2
b081e34b 3import org.usfirst.frc.team3501.robot.commands.driving.TimeDrive;
cca02549 4import org.usfirst.frc.team3501.robot.subsystems.DriveTrain;
079a8cb6 5import org.usfirst.frc.team3501.robot.subsystems.Shooter;
6acd1f1b 6
38a404b3
KZ
7import edu.wpi.first.wpilibj.IterativeRobot;
8import edu.wpi.first.wpilibj.command.Scheduler;
9
10public class Robot extends IterativeRobot {
6acd1f1b 11 private static DriveTrain driveTrain;
414d5638 12 private static Shooter shooter;
6acd1f1b 13 private static OI oi;
38a404b3
KZ
14
15 @Override
16 public void robotInit() {
6acd1f1b
CZ
17 driveTrain = DriveTrain.getDriveTrain();
18 oi = OI.getOI();
079a8cb6
CZ
19 shooter = Shooter.getShooter();
20
cca02549 21 }
6acd1f1b
CZ
22
23 public static DriveTrain getDriveTrain() {
24 return DriveTrain.getDriveTrain();
cca02549 25 }
6acd1f1b 26
414d5638 27 public static Shooter getShooter() {
28 return Shooter.getShooter();
29 }
30
6acd1f1b
CZ
31 public static OI getOI() {
32 return OI.getOI();
38a404b3
KZ
33 }
34
35 @Override
36 public void autonomousInit() {
b081e34b 37 Scheduler.getInstance().add(new TimeDrive(1.5, 0.4));
38a404b3
KZ
38 }
39
40 @Override
41 public void autonomousPeriodic() {
42 Scheduler.getInstance().run();
43
44 }
45
46 @Override
47 public void teleopInit() {
48 }
49
50 @Override
51 public void teleopPeriodic() {
52 Scheduler.getInstance().run();
53
54 }
55}