63a11d04b6286e9e61e517e65d3785943cf1691b
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
.Intake
;
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
;
13 private static Shooter shooter
;
15 private static Shooter shooter
;
17 private static Intake intake
;
20 public void robotInit() {
21 driveTrain
= DriveTrain
.getDriveTrain();
23 shooter
= Shooter
.getShooter();
24 intake
= Intake
.getIntake();
27 public static DriveTrain
getDriveTrain() {
28 return DriveTrain
.getDriveTrain();
31 public static Shooter
getShooter() {
32 return Shooter
.getShooter();
35 public static OI
getOI() {
39 public static OI
getOI() {
43 public static Intake
getIntake() {
44 return Intake
.getIntake();
47 public static Intake
getIntake() {
48 return Intake
.getIntake();
53 public void autonomousInit() {
54 Scheduler
.getInstance().add(new TimeDrive(1.5, 0.4));
58 public void autonomousPeriodic() {
59 Scheduler
.getInstance().run();
64 public void teleopInit() {
68 public void teleopPeriodic() {
69 Scheduler
.getInstance().run();