finish implement driveDistance and TurnForAngle using PID algorithm
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / Robot.java
CommitLineData
38a404b3
KZ
1package org.usfirst.frc.team3501.robot;
2
cca02549 3import org.usfirst.frc.team3501.robot.subsystems.DriveTrain;
6f3b6d29 4import org.usfirst.frc.team3501.robot.subsystems.Intake;
079a8cb6 5import org.usfirst.frc.team3501.robot.subsystems.Shooter;
6acd1f1b 6
38a404b3
KZ
7import edu.wpi.first.wpilibj.IterativeRobot;
8import edu.wpi.first.wpilibj.command.Scheduler;
9
10public class Robot extends IterativeRobot {
6acd1f1b 11 private static DriveTrain driveTrain;
414d5638 12 private static Shooter shooter;
6acd1f1b 13 private static OI oi;
6f3b6d29 14 private static Intake intake;
38a404b3
KZ
15
16 @Override
17 public void robotInit() {
6acd1f1b
CZ
18 driveTrain = DriveTrain.getDriveTrain();
19 oi = OI.getOI();
079a8cb6 20 shooter = Shooter.getShooter();
6f3b6d29 21 intake = Intake.getIntake();
cca02549 22 }
6acd1f1b
CZ
23
24 public static DriveTrain getDriveTrain() {
25 return DriveTrain.getDriveTrain();
cca02549 26 }
6acd1f1b 27
414d5638 28 public static Shooter getShooter() {
29 return Shooter.getShooter();
30 }
31
6acd1f1b
CZ
32 public static OI getOI() {
33 return OI.getOI();
38a404b3
KZ
34 }
35
6f3b6d29 36 public static Intake getIntake() {
7992f152
AD
37 return Intake.getIntake();
38 }
39
38a404b3
KZ
40 @Override
41 public void autonomousInit() {
42 }
43
44 @Override
45 public void autonomousPeriodic() {
46 Scheduler.getInstance().run();
47
48 }
49
50 @Override
51 public void teleopInit() {
52 }
53
54 @Override
55 public void teleopPeriodic() {
56 Scheduler.getInstance().run();
57
58 }
59}