1 package org
.usfirst
.frc
.team3501
.robot
;
3 import org
.usfirst
.frc
.team3501
.robot
.commands
.driving
.TimeDrive
;
4 import org
.usfirst
.frc
.team3501
.robot
.subsystems
.Climber
;
5 import org
.usfirst
.frc
.team3501
.robot
.subsystems
.DriveTrain
;
6 import org
.usfirst
.frc
.team3501
.robot
.subsystems
.Shooter
;
8 import edu
.wpi
.first
.wpilibj
.IterativeRobot
;
9 import edu
.wpi
.first
.wpilibj
.command
.Scheduler
;
11 public class Robot
extends IterativeRobot
{
12 private static DriveTrain driveTrain
;
14 private static Climber climber
;
15 private static Shooter shooter
;
18 public void robotInit() {
19 driveTrain
= DriveTrain
.getDriveTrain();
21 climber
= Climber
.getClimber();
22 shooter
= Shooter
.getShooter();
26 public static DriveTrain
getDriveTrain() {
27 return DriveTrain
.getDriveTrain();
30 public static OI
getOI() {
34 public static Climber
getClimber() {
35 return Climber
.getClimber();
38 public static Shooter
getShooter() {
39 return Shooter
.getShooter();
43 public void autonomousInit() {
44 Scheduler
.getInstance().add(new TimeDrive(1.5, 0.4));
48 public void autonomousPeriodic() {
49 Scheduler
.getInstance().run();
54 public void teleopInit() {
58 public void teleopPeriodic() {
59 Scheduler
.getInstance().run();