Delete repeat shooter methods
[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 OI getOI() {
40 return OI.getOI();
41 }
42
43 public static Intake getIntake() {
44 return Intake.getIntake()
45 }
46
47 @Override
48 public void autonomousInit() {
49 Scheduler.getInstance().add(new TimeDrive(1.5, 0.4));
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 }