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