--- /dev/null
+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() {
+ }
+}