Edit JavaDoc comments in shooter commands
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / shooter / RunFlyWheelContinuous.java
index edb926e9517ecf118771b48a550bfa7192798aae..20a4d08f37cf6c608a911acc9c722d597b42a759 100644 (file)
@@ -3,13 +3,15 @@ package org.usfirst.frc.team3501.robot.commands.shooter;
 import edu.wpi.first.wpilibj.command.Command;
 
 /**
- * Runs fly wheel continuously when corresponding button pressed
+ * This command will run the fly wheel motor continuously until the button
+ * triggering it is released.
  *
- * Run stopFlyWheel command to stop
+ * pre-condition: This command must be run by a button in OI, with
+ * button.whileHeld(...).
  *
  * @param motorVal
- *          [-1,1]
- * @author shaina
+ *          value range from -1 to 1
+ * @author Shaina
  */
 public class RunFlyWheelContinuous extends Command {
   private double motorVal;
@@ -37,6 +39,7 @@ public class RunFlyWheelContinuous extends Command {
   // subsystems is scheduled to run
   @Override
   protected void interrupted() {
+    end();
   }
 
   @Override