Add buttons to OI class
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / shooter / RunIndexWheelContinuous.java
index d3d49b841a3322514b344e72b401155a1050094b..83b66c08b0d8d8e31d3927489ae8fe4129cad5e3 100644 (file)
@@ -5,9 +5,12 @@ import org.usfirst.frc.team3501.robot.Robot;
 import edu.wpi.first.wpilibj.command.Command;
 
 /**
- * This command will run the index wheel motor continuously until the button
+ * This command runs index wheel continuously when OI button managing index
+ * wheel is pressed. The command will run the index wheel motor until the button
  * triggering it is released.
  *
+ * Should only be run from the operator interface.
+ *
  * pre-condition: This command must be run by a button in OI with
  * button.whileHeld(...).
  *
@@ -40,7 +43,6 @@ public class RunIndexWheelContinuous extends Command {
   // Called once after isFinished returns true
   @Override
   protected void end() {
-    Robot.getShooter().stopIndexWheel();
   }
 
   // Called when another command which requires one or more of the same
@@ -52,7 +54,6 @@ public class RunIndexWheelContinuous extends Command {
 
   @Override
   protected boolean isFinished() {
-    // TODO
     return Robot.getOI().toggleIndexWheel.get();
   }