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
.DriveTrain
;
5 import org
.usfirst
.frc
.team3501
.robot
.subsystems
.Shooter
;
7 import edu
.wpi
.first
.wpilibj
.IterativeRobot
;
8 import edu
.wpi
.first
.wpilibj
.command
.Scheduler
;
10 public class Robot
extends IterativeRobot
{
11 private static DriveTrain driveTrain
;
12 private static Shooter shooter
;
16 public void robotInit() {
17 driveTrain
= DriveTrain
.getDriveTrain();
19 shooter
= Shooter
.getShooter();
23 public static DriveTrain
getDriveTrain() {
24 return DriveTrain
.getDriveTrain();
27 public static Shooter
getShooter() {
28 return Shooter
.getShooter();
31 public static OI
getOI() {
35 public static Shooter
getShooter() {
36 return Shooter
.getShooter();
40 public void autonomousInit() {
41 Scheduler
.getInstance().add(new TimeDrive(1.5, 0.4));
45 public void autonomousPeriodic() {
46 Scheduler
.getInstance().run();
51 public void teleopInit() {
55 public void teleopPeriodic() {
56 Scheduler
.getInstance().run();