limit avec grimpeur manuel
This commit is contained in:
parent
77240d255e
commit
9b86a0b975
@ -28,7 +28,13 @@ public class GrimpeurManuel extends Command {
|
||||
// Called every time the scheduler runs while the command is scheduled.
|
||||
@Override
|
||||
public void execute() {
|
||||
grimpeur.grimpe(x.getAsDouble());
|
||||
if(grimpeur.stop()){
|
||||
grimpeur.grimpe(0);
|
||||
}
|
||||
else{
|
||||
grimpeur.grimpe(x.getAsDouble());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Called once the command ends or is interrupted.
|
||||
|
Loading…
x
Reference in New Issue
Block a user