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