580173e19262c066bff984edfff37c9bb64478f5
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / Robot.java
1 package org.usfirst.frc.team3501.robot;
2
3 import org.usfirst.frc.team3501.robot.commands.driving.TimeDrive;
4 import org.usfirst.frc.team3501.robot.subsystems.DriveTrain;
5 import org.usfirst.frc.team3501.robot.subsystems.Intake;
6 import org.usfirst.frc.team3501.robot.subsystems.Shooter;
7
8 import edu.wpi.first.wpilibj.IterativeRobot;
9 import edu.wpi.first.wpilibj.command.Scheduler;
10
11 public class Robot extends IterativeRobot {
12 private static DriveTrain driveTrain;
13 private static Shooter shooter;
14 private static OI oi;
15 private static Shooter shooter;
16 private static OI oi;
17 private static Intake intake;
18
19 @Override
20 public void robotInit() {
21 driveTrain = DriveTrain.getDriveTrain();
22 oi = OI.getOI();
23 shooter = Shooter.getShooter();
24 intake = Intake.getIntake();
25 }
26
27 public static DriveTrain getDriveTrain() {
28 return DriveTrain.getDriveTrain();
29 }
30
31 public static Shooter getShooter() {
32 return Shooter.getShooter();
33 }
34
35 public static OI getOI() {
36 return OI.getOI();
37 }
38
39 public static Shooter getShooter() {
40 return Shooter.getShooter();
41 }
42
43 public static OI getOI() {
44 return OI.getOI();
45 }
46
47 public static Intake getIntake() {
48 return Intake.getIntake()
49 }
50
51 @Override
52 public void autonomousInit() {
53 Scheduler.getInstance().add(new TimeDrive(1.5, 0.4));
54 }
55
56 @Override
57 public void autonomousPeriodic() {
58 Scheduler.getInstance().run();
59
60 }
61
62 @Override
63 public void teleopInit() {
64 }
65
66 @Override
67 public void teleopPeriodic() {
68 Scheduler.getInstance().run();
69
70 }
71 }