Commit | Line | Data |
---|---|---|
38a404b3 KZ |
1 | package org.usfirst.frc.team3501.robot; |
2 | ||
174f415c CZ |
3 | <<<<<<< HEAD |
4 | ======= | |
5 | import org.usfirst.frc.team3501.robot.commands.driving.DriveDistance; | |
6 | >>>>>>> fix bugs | |
cca02549 | 7 | import org.usfirst.frc.team3501.robot.subsystems.DriveTrain; |
6f3b6d29 | 8 | import org.usfirst.frc.team3501.robot.subsystems.Intake; |
079a8cb6 | 9 | import org.usfirst.frc.team3501.robot.subsystems.Shooter; |
6acd1f1b | 10 | |
38a404b3 KZ |
11 | import edu.wpi.first.wpilibj.IterativeRobot; |
12 | import edu.wpi.first.wpilibj.command.Scheduler; | |
13 | ||
14 | public class Robot extends IterativeRobot { | |
6acd1f1b | 15 | private static DriveTrain driveTrain; |
414d5638 | 16 | private static Shooter shooter; |
6acd1f1b | 17 | private static OI oi; |
6f3b6d29 | 18 | private static Intake intake; |
38a404b3 KZ |
19 | |
20 | @Override | |
21 | public void robotInit() { | |
6acd1f1b CZ |
22 | driveTrain = DriveTrain.getDriveTrain(); |
23 | oi = OI.getOI(); | |
079a8cb6 | 24 | shooter = Shooter.getShooter(); |
6f3b6d29 | 25 | intake = Intake.getIntake(); |
cca02549 | 26 | } |
6acd1f1b CZ |
27 | |
28 | public static DriveTrain getDriveTrain() { | |
29 | return DriveTrain.getDriveTrain(); | |
cca02549 | 30 | } |
6acd1f1b | 31 | |
414d5638 | 32 | public static Shooter getShooter() { |
33 | return Shooter.getShooter(); | |
34 | } | |
35 | ||
6acd1f1b CZ |
36 | public static OI getOI() { |
37 | return OI.getOI(); | |
38a404b3 KZ |
38 | } |
39 | ||
6f3b6d29 | 40 | public static Intake getIntake() { |
7992f152 AD |
41 | return Intake.getIntake(); |
42 | } | |
43 | ||
38a404b3 KZ |
44 | @Override |
45 | public void autonomousInit() { | |
174f415c CZ |
46 | <<<<<<< HEAD |
47 | ======= | |
48 | Scheduler.getInstance().add(new DriveDistance(25, 10)); | |
49 | >>>>>>> fix bugs | |
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 | } |