add private references to driveTrain and OI
[3501/roboRIO-code-base] / 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
5 import edu.wpi.first.wpilibj.IterativeRobot;
6 import edu.wpi.first.wpilibj.command.Scheduler;
7
8 public class Robot extends IterativeRobot {
9 private static DriveTrain driveTrain;
10 private static OI oi;
11
12 @Override
13 public void robotInit() {
14 driveTrain = DriveTrain.getDriveTrain();
15 oi = OI.getOI();
16 }
17
18 public static DriveTrain getDriveTrain() {
19 return DriveTrain.getDriveTrain();
20 }
21
22 public static OI getOI() {
23 return OI.getOI();
24 }
25
26 @Override
27 public void autonomousInit() {
28 }
29
30 @Override
31 public void autonomousPeriodic() {
32 Scheduler.getInstance().run();
33
34 }
35
36 @Override
37 public void teleopInit() {
38 }
39
40 @Override
41 public void teleopPeriodic() {
42 Scheduler.getInstance().run();
43
44 }
45 }