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
;
6 import edu
.wpi
.first
.wpilibj
.IterativeRobot
;
7 import edu
.wpi
.first
.wpilibj
.command
.Scheduler
;
9 public class Robot
extends IterativeRobot
{
10 private static DriveTrain driveTrain
;
14 public void robotInit() {
15 driveTrain
= DriveTrain
.getDriveTrain();
19 public static DriveTrain
getDriveTrain() {
20 return DriveTrain
.getDriveTrain();
23 public static OI
getOI() {
28 public void autonomousInit() {
29 Scheduler
.getInstance().add(new TimeDrive(1.5, 0.4));
33 public void autonomousPeriodic() {
34 Scheduler
.getInstance().run();
39 public void teleopInit() {
43 public void teleopPeriodic() {
44 Scheduler
.getInstance().run();