please work/fix
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / Robot.java
CommitLineData
38a404b3
KZ
1package org.usfirst.frc.team3501.robot;
2
cca02549 3import org.usfirst.frc.team3501.robot.subsystems.DriveTrain;
6f3b6d29 4import org.usfirst.frc.team3501.robot.subsystems.Intake;
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 {
38a404b3 11
6acd1f1b 12 private static DriveTrain driveTrain;
414d5638 13 private static Shooter shooter;
6acd1f1b 14 private static OI oi;
6f3b6d29 15 private static Intake intake;
38a404b3
KZ
16
17 @Override
18 public void robotInit() {
6acd1f1b
CZ
19 driveTrain = DriveTrain.getDriveTrain();
20 oi = OI.getOI();
079a8cb6 21 shooter = Shooter.getShooter();
6f3b6d29 22 intake = Intake.getIntake();
a204ccd9
E
23
24 // init
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
6f3b6d29 39 public static Intake getIntake() {
7992f152
AD
40 return Intake.getIntake();
41 }
42
38a404b3
KZ
43 @Override
44 public void autonomousInit() {
de070105 45 Scheduler.getInstance();
38a404b3
KZ
46 }
47
48 @Override
49 public void autonomousPeriodic() {
50 Scheduler.getInstance().run();
51
52 }
53
54 @Override
55 public void teleopInit() {
56 }
57
58 @Override
59 public void teleopPeriodic() {
60 Scheduler.getInstance().run();
61
62 }
63}