This commit is contained in:
Antoine PerreaultE 2025-01-28 18:02:53 -05:00
parent 72da7b7d74
commit e4c7a12606

View File

@ -30,12 +30,19 @@ public class BalayeuseBas extends Command {
else{ else{
requin.rotationer(-0.5); requin.rotationer(-0.5);
} }
if(requin.stop()){
requin.balaye(0);
}
else{
requin.balaye(0.5);
}
} }
// 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) {
requin.rotationer(0); requin.rotationer(0);
requin.balaye(0);
} }
// Returns true when the command should end. // Returns true when the command should end.