More competition updates, intake speed and joystick scaling
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / Robot.java
CommitLineData
38a404b3
KZ
1package org.usfirst.frc.team3501.robot;
2
e1f7a742 3import org.usfirst.frc.team3501.robot.commands.driving.SetHighGear;
047383c3 4import org.usfirst.frc.team3501.robot.subsystems.DriveTrain;
e47f0862 5import org.usfirst.frc.team3501.robot.subsystems.IntakeArm;
40348cab
E
6import org.usfirst.frc.team3501.robot.subsystems.Shooter;
7
38a404b3
KZ
8import edu.wpi.first.wpilibj.IterativeRobot;
9import edu.wpi.first.wpilibj.command.Scheduler;
10
11public class Robot extends IterativeRobot {
12 public static OI oi;
13 public static DriveTrain driveTrain;
40348cab 14 public static Shooter shooter;
a96fa926 15 public static IntakeArm intakeArm;
3366a59a 16
38a404b3
KZ
17 @Override
18 public void robotInit() {
9742fe2e 19 driveTrain = new DriveTrain();
40348cab 20 shooter = new Shooter();
a96fa926 21 intakeArm = new IntakeArm();
fab544eb
HD
22
23 oi = new OI();
29d59f48
ME
24 }
25
38a404b3
KZ
26 @Override
27 public void autonomousInit() {
28 }
29
30 @Override
31 public void autonomousPeriodic() {
32 Scheduler.getInstance().run();
38a404b3
KZ
33 }
34
35 @Override
36 public void teleopInit() {
e1f7a742 37 Scheduler.getInstance().add(new SetHighGear());
38a404b3
KZ
38 }
39
40 @Override
41 public void teleopPeriodic() {
42 Scheduler.getInstance().run();
1e039ebd
E
43 }
44
38a404b3 45}