X-Git-Url: http://challenge-bot.com/repos/?p=3501%2Fstronghold-2016;a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2Fintakearm%2FMoveIntakeArm.java;fp=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2Fintakearm%2FMoveIntakeArm.java;h=1d24648f13e9f3a0bea18c0576d086366298d936;hp=0000000000000000000000000000000000000000;hb=2781cca0354e26f8c5a6150d6b5179d300d479e1;hpb=027452180cc75fa58cd6305d9eb351ec64b2345f diff --git a/src/org/usfirst/frc/team3501/robot/commands/intakearm/MoveIntakeArm.java b/src/org/usfirst/frc/team3501/robot/commands/intakearm/MoveIntakeArm.java new file mode 100755 index 00000000..1d24648f --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/commands/intakearm/MoveIntakeArm.java @@ -0,0 +1,43 @@ +package org.usfirst.frc.team3501.robot.commands.intakearm; + +import org.usfirst.frc.team3501.robot.Constants; +import org.usfirst.frc.team3501.robot.Robot; + +import edu.wpi.first.wpilibj.DoubleSolenoid.Value; +import edu.wpi.first.wpilibj.command.Command; + +/** + * This command will expand or retract the intake arm's pistons depending on the + * specified direction the intake arm should move + */ +public class MoveIntakeArm extends Command { + + public MoveIntakeArm(Value direction) { + + 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; + } + + @Override + protected void end() { + } + + @Override + protected void interrupted() { + } +}