make extend and retract intake arm piston methods and a command
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / subsystems / IntakeArm.java
index 1870799debfc45f510217aded8ae180c73417dba..856db2bb139c5c23b0639783df255486eff9814b 100755 (executable)
@@ -34,6 +34,16 @@ public class IntakeArm extends Subsystem {
         Constants.IntakeArm.RIGHT_REVERSE);
   }
 
+  public void retractPistons() {
+    leftIntake.set(Constants.IntakeArm.RETRACT);
+    rightIntake.set(Constants.IntakeArm.RETRACT);
+  }
+
+  public void extendPistons() {
+    leftIntake.set(Constants.IntakeArm.EXTEND);
+    rightIntake.set(Constants.IntakeArm.EXTEND);
+  }
+
   /***
    * This method sets the voltage of the motor to intake the ball. The voltage
    * values are constants in Constants class