limit avec grimpeur manuel

This commit is contained in:
Antoine PerreaultE 2025-02-26 17:23:27 -05:00
parent 77240d255e
commit 9b86a0b975

View File

@ -28,9 +28,15 @@ public class GrimpeurManuel extends Command {
// Called every time the scheduler runs while the command is scheduled. // Called every time the scheduler runs while the command is scheduled.
@Override @Override
public void execute() { public void execute() {
if(grimpeur.stop()){
grimpeur.grimpe(0);
}
else{
grimpeur.grimpe(x.getAsDouble()); grimpeur.grimpe(x.getAsDouble());
} }
}
// Called once the command ends or is interrupted. // Called once the command ends or is interrupted.
@Override @Override
public void end(boolean interrupted) { public void end(boolean interrupted) {