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