X-Git-Url: http://challenge-bot.com/repos/?a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2Fintakearm%2FMoveIntakeArm.java;h=1991726ac0430491e27144202c7e544599ab4f7c;hb=e1f7a74216c8845966fb0fa03a08dfeb3868ff3e;hp=1d24648f13e9f3a0bea18c0576d086366298d936;hpb=fab544eb2395a8aa847abc1890bc635e5ba63a7c;p=3501%2Fstronghold-2016 diff --git a/src/org/usfirst/frc/team3501/robot/commands/intakearm/MoveIntakeArm.java b/src/org/usfirst/frc/team3501/robot/commands/intakearm/MoveIntakeArm.java index 1d24648f..1991726a 100755 --- a/src/org/usfirst/frc/team3501/robot/commands/intakearm/MoveIntakeArm.java +++ b/src/org/usfirst/frc/team3501/robot/commands/intakearm/MoveIntakeArm.java @@ -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