add command to robot.java to actually run the LimitSwitchTest
[3501/2015-FRC-Spark] / src / org / usfirst / frc3501 / RiceCatRobot / commands / MoveArmToLevel2.java
index 4152739f3b89a55621ee28254cce4267d2383376..2cd560ce3efefdf3d3df4e16b0e6a2eaee63746c 100644 (file)
@@ -1,27 +1,26 @@
 package org.usfirst.frc3501.RiceCatRobot.commands;
 
-import org.usfirst.frc3501.RiceCatRobot.subsystems.Arm;
+import org.usfirst.frc3501.RiceCatRobot.Robot;
 
 import edu.wpi.first.wpilibj.command.Command;
 
 public class MoveArmToLevel2 extends Command {
-       Arm arm;
        double slowSpeed = 0.2;
        public MoveArmToLevel2() {
-               if(arm.getArmSpeed() == 0.0) {
-                       arm.setArmSpeeds(slowSpeed);
+               if(Robot.arm.getArmSpeed() == 0.0) {
+                       Robot.arm.setArmSpeeds(slowSpeed);
                }
        }
 
        protected void initialize() {
-               arm.initializeCounters();
+               Robot.arm.initializeCounters();
        }
 
        protected void execute() {
        }
 
        protected boolean isFinished() {
-               return arm.isSwitch2Hit();
+               return Robot.arm.isSwitch2Hit();
        }
 
        protected void end() {