1 package org
.usfirst
.frc3501
.RiceCatRobot
.commands
;
3 import org
.usfirst
.frc3501
.RiceCatRobot
.Robot
;
4 import org
.usfirst
.frc3501
.RiceCatRobot
.subsystems
.Arm
;
6 import edu
.wpi
.first
.wpilibj
.command
.Command
;
8 public class MoveArmToLevel3
extends Command
{
10 double slowSpeed
= 0.2;
12 public MoveArmToLevel3() {
13 if (Robot
.arm
.getArmSpeed() == 0.0) {
14 Robot
.arm
.setArmSpeeds(slowSpeed
);
18 protected void initialize() {
19 Robot
.arm
.initializeCounters();
22 protected void execute() {
25 protected boolean isFinished() {
26 return Robot
.arm
.isSwitch3Hit();
29 protected void end() {
30 System
.out
.println("Robot arm has reached level 3");
34 protected void interrupted() {