Add intake instance and getter method for intake
[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 public static Intake getIntake() {
48 return Intake.getIntake();
49
50 }
51
52 @Override
53 public void autonomousInit() {
54 Scheduler.getInstance().add(new TimeDrive(1.5, 0.4));
55 }
56
57 @Override
58 public void autonomousPeriodic() {
59 Scheduler.getInstance().run();
60
61 }
62
63 @Override
64 public void teleopInit() {
65 }
66
67 @Override
68 public void teleopPeriodic() {
69 Scheduler.getInstance().run();
70
71 }
72 }