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.
|
// Called every time the scheduler runs while the command is scheduled.
|
||||||
@Override
|
@Override
|
||||||
public void execute() {
|
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.
|
// Called once the command ends or is interrupted.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user