please work/fix
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / Robot.java
1 package org.usfirst.frc.team3501.robot;
2
3 import org.usfirst.frc.team3501.robot.subsystems.DriveTrain;
4 import org.usfirst.frc.team3501.robot.subsystems.Intake;
5 import org.usfirst.frc.team3501.robot.subsystems.Shooter;
6
7 import edu.wpi.first.wpilibj.IterativeRobot;
8 import edu.wpi.first.wpilibj.command.Scheduler;
9
10 public class Robot extends IterativeRobot {
11
12 private static DriveTrain driveTrain;
13 private static Shooter shooter;
14 private static OI oi;
15 private static Intake intake;
16
17 @Override
18 public void robotInit() {
19 driveTrain = DriveTrain.getDriveTrain();
20 oi = OI.getOI();
21 shooter = Shooter.getShooter();
22 intake = Intake.getIntake();
23
24 // init
25 }
26
27 public static DriveTrain getDriveTrain() {
28 return DriveTrain.getDriveTrain();
29 }
30
31 public static Shooter getShooter() {
32 return Shooter.getShooter();
33 }
34
35 public static OI getOI() {
36 return OI.getOI();
37 }
38
39 public static Intake getIntake() {
40 return Intake.getIntake();
41 }
42
43 @Override
44 public void autonomousInit() {
45 Scheduler.getInstance();
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 }