Commit | Line | Data |
---|---|---|
38a404b3 KZ |
1 | package org.usfirst.frc.team3501.robot; |
2 | ||
e1f7a742 | 3 | import org.usfirst.frc.team3501.robot.commands.driving.SetHighGear; |
047383c3 | 4 | import org.usfirst.frc.team3501.robot.subsystems.DriveTrain; |
e47f0862 | 5 | import org.usfirst.frc.team3501.robot.subsystems.IntakeArm; |
40348cab E |
6 | import org.usfirst.frc.team3501.robot.subsystems.Shooter; |
7 | ||
38a404b3 KZ |
8 | import edu.wpi.first.wpilibj.IterativeRobot; |
9 | import edu.wpi.first.wpilibj.command.Scheduler; | |
10 | ||
11 | public 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 | } |