/**
* 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 just before this Command runs the first time
@Override
protected void initialize() {
- Robot.getIntake().runReverseIntake();
-
}
// 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()