Delete StopWinch and Climber subsystem, edit javadoc comments
[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.Shooter;
6
7 import edu.wpi.first.wpilibj.IterativeRobot;
8 import edu.wpi.first.wpilibj.command.Scheduler;
9
10 public class Robot extends IterativeRobot {
11 private static DriveTrain driveTrain;
12 private static OI oi;
13 private static Shooter shooter;
14
15 @Override
16 public void robotInit() {
17 driveTrain = DriveTrain.getDriveTrain();
18 oi = OI.getOI();
19 shooter = Shooter.getShooter();
20
21 }
22
23 public static DriveTrain getDriveTrain() {
24 return DriveTrain.getDriveTrain();
25 }
26
27 public static OI getOI() {
28 return OI.getOI();
29 }
30
31 public static Shooter getShooter() {
32 return Shooter.getShooter();
33 }
34
35 @Override
36 public void autonomousInit() {
37 Scheduler.getInstance().add(new TimeDrive(1.5, 0.4));
38 }
39
40 @Override
41 public void autonomousPeriodic() {
42 Scheduler.getInstance().run();
43
44 }
45
46 @Override
47 public void teleopInit() {
48 }
49
50 @Override
51 public void teleopPeriodic() {
52 Scheduler.getInstance().run();
53
54 }
55 }