Commit | Line | Data |
---|---|---|
38a404b3 KZ |
1 | package org.usfirst.frc.team3501.robot; |
2 | ||
cca02549 | 3 | import org.usfirst.frc.team3501.robot.subsystems.DriveTrain; |
6f3b6d29 | 4 | import org.usfirst.frc.team3501.robot.subsystems.Intake; |
079a8cb6 | 5 | import org.usfirst.frc.team3501.robot.subsystems.Shooter; |
6acd1f1b | 6 | |
38a404b3 KZ |
7 | import edu.wpi.first.wpilibj.IterativeRobot; |
8 | import edu.wpi.first.wpilibj.command.Scheduler; | |
9 | ||
10 | public 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(); |
cca02549 | 22 | } |
6acd1f1b CZ |
23 | |
24 | public static DriveTrain getDriveTrain() { | |
25 | return DriveTrain.getDriveTrain(); | |
cca02549 | 26 | } |
6acd1f1b | 27 | |
414d5638 | 28 | public static Shooter getShooter() { |
29 | return Shooter.getShooter(); | |
30 | } | |
31 | ||
6acd1f1b CZ |
32 | public static OI getOI() { |
33 | return OI.getOI(); | |
38a404b3 KZ |
34 | } |
35 | ||
6f3b6d29 | 36 | public static Intake getIntake() { |
7992f152 AD |
37 | return Intake.getIntake(); |
38 | } | |
39 | ||
538715b1 AD |
40 | // If the gear values do not match in the left and right piston, then they are |
41 | // both set to high gear | |
38a404b3 KZ |
42 | @Override |
43 | public void autonomousInit() { | |
202468a5 | 44 | driveTrain.setHighGear(); |
38a404b3 KZ |
45 | } |
46 | ||
47 | @Override | |
48 | public void autonomousPeriodic() { | |
49 | Scheduler.getInstance().run(); | |
50 | ||
51 | } | |
52 | ||
53 | @Override | |
54 | public void teleopInit() { | |
538715b1 | 55 | |
38a404b3 KZ |
56 | } |
57 | ||
58 | @Override | |
59 | public void teleopPeriodic() { | |
88ecb8d3 | 60 | Scheduler.getInstance().run(); |
38a404b3 KZ |
61 | } |
62 | } |