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;
6f3b6d29 5import org.usfirst.frc.team3501.robot.subsystems.Intake;
079a8cb6 6import org.usfirst.frc.team3501.robot.subsystems.Shooter;
6acd1f1b 7
38a404b3
KZ
8import edu.wpi.first.wpilibj.IterativeRobot;
9import edu.wpi.first.wpilibj.command.Scheduler;
10
11public class Robot extends IterativeRobot {
6acd1f1b 12 private static DriveTrain driveTrain;
414d5638 13 private static Shooter shooter;
6acd1f1b 14 private static OI oi;
08a5c955 15 private static Shooter shooter;
16 private static OI oi;
6f3b6d29 17 private static Intake intake;
38a404b3
KZ
18
19 @Override
20 public void robotInit() {
6acd1f1b
CZ
21 driveTrain = DriveTrain.getDriveTrain();
22 oi = OI.getOI();
079a8cb6 23 shooter = Shooter.getShooter();
6f3b6d29 24 intake = Intake.getIntake();
cca02549 25 }
6acd1f1b
CZ
26
27 public static DriveTrain getDriveTrain() {
28 return DriveTrain.getDriveTrain();
cca02549 29 }
6acd1f1b 30
414d5638 31 public static Shooter getShooter() {
32 return Shooter.getShooter();
33 }
34
6acd1f1b
CZ
35 public static OI getOI() {
36 return OI.getOI();
38a404b3
KZ
37 }
38
08a5c955 39 public static Shooter getShooter() {
40 return Shooter.getShooter();
41 }
42
43 public static OI getOI() {
44 return OI.getOI();
45 }
46
6f3b6d29
AD
47 public static Intake getIntake() {
48 return Intake.getIntake()
49 }
50
38a404b3
KZ
51 @Override
52 public void autonomousInit() {
b081e34b 53 Scheduler.getInstance().add(new TimeDrive(1.5, 0.4));
38a404b3
KZ
54 }
55
56 @Override
57 public void autonomousPeriodic() {
58 Scheduler.getInstance().run();
59
60 }
61
62 @Override
63 public void teleopInit() {
64 }
65
66 @Override
67 public void teleopPeriodic() {
68 Scheduler.getInstance().run();
69
70 }
71}