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 Climber
getClimber() {
31 return Climber
.getClimber();
34 public static OI
getOI() {
38 public static Climber
getClimber() {
39 return Climber
.getClimber();
42 public static Shooter
getShooter() {
43 return Shooter
.getShooter();
47 public void autonomousInit() {
48 Scheduler
.getInstance().add(new TimeDrive(1.5, 0.4));
52 public void autonomousPeriodic() {
53 Scheduler
.getInstance().run();
58 public void teleopInit() {
62 public void teleopPeriodic() {
63 Scheduler
.getInstance().run();