* 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