1 package org
.usfirst
.frc3501
.RiceCatRobot
.commands
;
3 import org
.usfirst
.frc3501
.RiceCatRobot
.Robot
;
5 import edu
.wpi
.first
.wpilibj
.command
.Command
;
7 public class MoveArmToLevel2
extends Command
{
8 double slowSpeed
= 0.2;
9 public MoveArmToLevel2() {
10 if(Robot
.arm
.getArmSpeed() == 0.0) {
11 Robot
.arm
.setArmSpeeds(slowSpeed
);
15 protected void initialize() {
16 Robot
.arm
.initializeCounters();
19 protected void execute() {
22 protected boolean isFinished() {
23 return Robot
.arm
.isSwitch2Hit();
26 protected void end() {
27 System
.out
.println("Robot arm has reached level 2");
30 protected void interrupted() {