Update ports to competition setup, minor bugfixes
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / intakearm / MoveIntakeArm.java
index 1d24648f13e9f3a0bea18c0576d086366298d936..1991726ac0430491e27144202c7e544599ab4f7c 100755 (executable)
@@ -11,26 +11,28 @@ import edu.wpi.first.wpilibj.command.Command;
  * specified direction the intake arm should move
  */
 public class MoveIntakeArm extends Command {
+  Value direction;
 
   public MoveIntakeArm(Value direction) {
+    requires(Robot.intakeArm);
+    this.direction = direction;
+  }
 
+  @Override
+  protected void initialize() {
     if (direction == Constants.IntakeArm.EXTEND)
       Robot.intakeArm.extendPistons();
     else
       Robot.intakeArm.retractPistons();
   }
 
-  @Override
-  protected void initialize() {
-  }
-
   @Override
   protected void execute() {
   }
 
   @Override
   protected boolean isFinished() {
-    return false;
+    return true;
   }
 
   @Override