8616cfa765dd39fe98e3f3eeb42c6f3534c45b13
1 package org
.usfirst
.frc
.team3501
.robot
;
3 import org
.usfirst
.frc
.team3501
.robot
.commands
.driving
.SetHighGear
;
4 import org
.usfirst
.frc
.team3501
.robot
.commands
.intakearm
.MoveIntakeArm
;
5 import org
.usfirst
.frc
.team3501
.robot
.commands
.shooter
.ResetCatapult
;
6 import org
.usfirst
.frc
.team3501
.robot
.subsystems
.DriveTrain
;
7 import org
.usfirst
.frc
.team3501
.robot
.subsystems
.IntakeArm
;
8 import org
.usfirst
.frc
.team3501
.robot
.subsystems
.Shooter
;
10 import edu
.wpi
.first
.wpilibj
.IterativeRobot
;
11 import edu
.wpi
.first
.wpilibj
.command
.Scheduler
;
13 public class Robot
extends IterativeRobot
{
15 public static DriveTrain driveTrain
;
16 public static Shooter shooter
;
17 public static IntakeArm intakeArm
;
20 public void robotInit() {
21 driveTrain
= new DriveTrain();
22 shooter
= new Shooter();
23 intakeArm
= new IntakeArm();
29 public void autonomousInit() {
33 public void autonomousPeriodic() {
34 Scheduler
.getInstance().run();
38 public void teleopInit() {
39 Scheduler
.getInstance().add(new SetHighGear());
40 Scheduler
.getInstance().add(new ResetCatapult());
41 Scheduler
.getInstance().add(new MoveIntakeArm(Constants
.IntakeArm
.EXTEND
));
45 public void teleopPeriodic() {
46 Scheduler
.getInstance().run();