limit avec requin manuel
This commit is contained in:
parent
3b372104e4
commit
df31291697
@ -27,7 +27,12 @@ public class requin_manuel 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() {
|
||||||
requin.rotationer(x.getAsDouble());
|
if(requin.enHaut()){
|
||||||
|
requin.rotationer(0);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
requin.rotationer(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