limit avec requin manuel

This commit is contained in:
Antoine PerreaultE 2025-02-26 17:05:46 -05:00
parent 3b372104e4
commit df31291697

View File

@ -27,7 +27,12 @@ public class requin_manuel extends Command {
// Called every time the scheduler runs while the command is scheduled.
@Override
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.