Implement RunFLyWheel class, add motor methods to Shooter class
[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;
079a8cb6 14 private static Shooter shooter;
38a404b3
KZ
15
16 @Override
17 public void robotInit() {
6acd1f1b
CZ
18 driveTrain = DriveTrain.getDriveTrain();
19 oi = OI.getOI();
079a8cb6
CZ
20 shooter = Shooter.getShooter();
21
cca02549 22 }
6acd1f1b
CZ
23
24 public static DriveTrain getDriveTrain() {
25 return DriveTrain.getDriveTrain();
cca02549 26 }
6acd1f1b 27
414d5638 28 public static Shooter getShooter() {
29 return Shooter.getShooter();
30 }
31
6acd1f1b
CZ
32 public static OI getOI() {
33 return OI.getOI();
38a404b3
KZ
34 }
35
079a8cb6
CZ
36 public static Shooter getShooter() {
37 return Shooter.getShooter();
38 }
39
38a404b3
KZ
40 @Override
41 public void autonomousInit() {
b081e34b 42 Scheduler.getInstance().add(new TimeDrive(1.5, 0.4));
38a404b3
KZ
43 }
44
45 @Override
46 public void autonomousPeriodic() {
47 Scheduler.getInstance().run();
48
49 }
50
51 @Override
52 public void teleopInit() {
53 }
54
55 @Override
56 public void teleopPeriodic() {
57 Scheduler.getInstance().run();
58
59 }
60}