Purge code of all unused fields/classes. Only testing code.
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / Robot.java
CommitLineData
38a404b3
KZ
1package org.usfirst.frc.team3501.robot;
2
571a0e2a 3import org.usfirst.frc.team3501.robot.commands.driving.SetLowGear;
f8bfcc62 4import org.usfirst.frc.team3501.robot.commands.intakearm.MoveIntakeArm;
e4fbab02 5import org.usfirst.frc.team3501.robot.commands.shooter.ResetCatapult;
047383c3 6import org.usfirst.frc.team3501.robot.subsystems.DriveTrain;
e47f0862 7import org.usfirst.frc.team3501.robot.subsystems.IntakeArm;
40348cab
E
8import org.usfirst.frc.team3501.robot.subsystems.Shooter;
9
38a404b3
KZ
10import edu.wpi.first.wpilibj.IterativeRobot;
11import edu.wpi.first.wpilibj.command.Scheduler;
12
13public class Robot extends IterativeRobot {
14 public static OI oi;
15 public static DriveTrain driveTrain;
40348cab 16 public static Shooter shooter;
a96fa926 17 public static IntakeArm intakeArm;
3366a59a 18
38a404b3
KZ
19 @Override
20 public void robotInit() {
9742fe2e
KZ
21 driveTrain = new DriveTrain();
22 oi = new OI();
2ac0cc17 23
40348cab 24 shooter = new Shooter();
a96fa926 25 intakeArm = new IntakeArm();
29d59f48
ME
26 }
27
38a404b3
KZ
28 @Override
29 public void autonomousInit() {
3366a59a 30 Scheduler.getInstance().run();
38a404b3
KZ
31 }
32
33 @Override
34 public void autonomousPeriodic() {
35 Scheduler.getInstance().run();
38a404b3
KZ
36 }
37
38 @Override
39 public void teleopInit() {
571a0e2a
HD
40 Scheduler.getInstance().add(new SetLowGear()); // Start each match in low
41 // gear
e4fbab02
HD
42 Scheduler.getInstance().add(new ResetCatapult()); // Reset catapult at start
43 // of each match.
f8bfcc62
HD
44
45 Scheduler.getInstance().add(new MoveIntakeArm(Constants.IntakeArm.EXTEND));
46 // Start testing with intake arm extended TODO remove this
38a404b3
KZ
47 }
48
49 @Override
50 public void teleopPeriodic() {
51 Scheduler.getInstance().run();
1e039ebd
E
52 }
53
38a404b3 54}