This commit is contained in:
Antoine PerreaultE
2025-02-27 17:53:14 -05:00
parent 6535047346
commit b31ac996ea
2 changed files with 6 additions and 8 deletions

View File

@ -28,9 +28,7 @@ public class ElevateurManuel extends Command {
// Called every time the scheduler runs while the command is scheduled.
@Override
public void execute() {
if(elevateur.limit2()==true){
elevateur.vitesse(0);
}
if (elevateur.limit2())
elevateur.vitesse(doubleSupplier.getAsDouble()/3.5);
}