Delete timer from MaintainClimbedPosition
[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 private static DriveTrain driveTrain;
12 private static Shooter shooter;
13 private static OI oi;
14 private static Intake intake;
15
16 @Override
17 public void robotInit() {
18 driveTrain = DriveTrain.getDriveTrain();
19 oi = OI.getOI();
20 shooter = Shooter.getShooter();
21 intake = Intake.getIntake();
22
23 }
24
25 public static DriveTrain getDriveTrain() {
26 return DriveTrain.getDriveTrain();
27 }
28
29 public static Shooter getShooter() {
30 return Shooter.getShooter();
31 }
32
33 public static OI getOI() {
34 return OI.getOI();
35 }
36
37 public static Intake getIntake() {
38 return Intake.getIntake();
39 }
40
41 // If the gear values do not match in the left and right piston, then they are
42 // both set to high gear
43 @Override
44 public void autonomousInit() {
45 driveTrain.setHighGear();
46 }
47
48 @Override
49 public void autonomousPeriodic() {
50 Scheduler.getInstance().run();
51
52 }
53
54 @Override
55 public void teleopInit() {
56
57 }
58
59 @Override
60 public void teleopPeriodic() {
61 Scheduler.getInstance().run();
62
63 }
64 }