Commit | Line | Data |
---|---|---|
38a404b3 KZ |
1 | package org.usfirst.frc.team3501.robot; |
2 | ||
b081e34b | 3 | import org.usfirst.frc.team3501.robot.commands.driving.TimeDrive; |
cca02549 | 4 | import org.usfirst.frc.team3501.robot.subsystems.DriveTrain; |
6f3b6d29 | 5 | import org.usfirst.frc.team3501.robot.subsystems.Intake; |
079a8cb6 | 6 | import org.usfirst.frc.team3501.robot.subsystems.Shooter; |
6acd1f1b | 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 { | |
6acd1f1b | 12 | private static DriveTrain driveTrain; |
414d5638 | 13 | private static Shooter shooter; |
6acd1f1b | 14 | private static OI oi; |
08a5c955 | 15 | private static Shooter shooter; |
16 | private static OI oi; | |
6f3b6d29 | 17 | private static Intake intake; |
38a404b3 KZ |
18 | |
19 | @Override | |
20 | public void robotInit() { | |
6acd1f1b CZ |
21 | driveTrain = DriveTrain.getDriveTrain(); |
22 | oi = OI.getOI(); | |
079a8cb6 | 23 | shooter = Shooter.getShooter(); |
6f3b6d29 | 24 | intake = Intake.getIntake(); |
cca02549 | 25 | } |
6acd1f1b CZ |
26 | |
27 | public static DriveTrain getDriveTrain() { | |
28 | return DriveTrain.getDriveTrain(); | |
cca02549 | 29 | } |
6acd1f1b | 30 | |
414d5638 | 31 | public static Shooter getShooter() { |
32 | return Shooter.getShooter(); | |
33 | } | |
34 | ||
6acd1f1b CZ |
35 | public static OI getOI() { |
36 | return OI.getOI(); | |
38a404b3 KZ |
37 | } |
38 | ||
08a5c955 | 39 | public static OI getOI() { |
40 | return OI.getOI(); | |
41 | } | |
42 | ||
6f3b6d29 AD |
43 | public static Intake getIntake() { |
44 | return Intake.getIntake() | |
45 | } | |
46 | ||
38a404b3 KZ |
47 | @Override |
48 | public void autonomousInit() { | |
b081e34b | 49 | Scheduler.getInstance().add(new TimeDrive(1.5, 0.4)); |
38a404b3 KZ |
50 | } |
51 | ||
52 | @Override | |
53 | public void autonomousPeriodic() { | |
54 | Scheduler.getInstance().run(); | |
55 | ||
56 | } | |
57 | ||
58 | @Override | |
59 | public void teleopInit() { | |
60 | } | |
61 | ||
62 | @Override | |
63 | public void teleopPeriodic() { | |
64 | Scheduler.getInstance().run(); | |
65 | ||
66 | } | |
67 | } |