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;
// subsystems is scheduled to run
@Override
protected void interrupted() {
+ end();
}
@Override