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.
*
* @param motorVal
* [-1,1]
// subsystems is scheduled to run
@Override
protected void interrupted() {
+ end();
}
@Override
import edu.wpi.first.wpilibj.command.Command;
/**
- * Runs index wheel continuously when corresponding button is pressed
- *
- * Run stopIndexWheel to stop
+ * This command will run the index wheel motor continuously until the button
+ * triggering it is released.
*
+ * pre-condition: This command must be run by a button in OI.
+ *
* @param motorVal
* [-1,1]
* @author shaina