/**
* Reverses the intake until the button triggering this command is released
*
- * pre-condition: button is pressed
+ * pre-condition: This command must be run by a button in OI with
+ * button.whileHeld(...).
*/
public class ReverseIntakeContinuous extends Command {
// Called repeatedly when this Command is scheduled to run
@Override
protected void execute() {
+ Robot.getIntake().runReverseIntake();
}
// Make this return true when this Command no longer needs to run execute()
// Called once after isFinished returns true
@Override
protected void end() {
+ Robot.getIntake().stopIntake();
}
// Called when another command which requires one or more of the same
// subsystems is scheduled to run
@Override
protected void interrupted() {
+ end();
}
}