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 MoveArmToLevel1
extends Command
{
9 double slowSpeed
= 0.2;
11 public MoveArmToLevel1() {
12 Robot
.arm
.setArmSpeeds(slowSpeed
);
15 protected void initialize() {
16 Robot
.arm
.initializeCounters();
19 protected void execute() {
22 protected boolean isFinished() {
23 return Robot
.arm
.isSwitch1Hit();
26 protected void end() {
27 System
.out
.println("Robot arm has reached level 1");
30 protected void interrupted() {