Set actuator limits correctly.

PiperOrigin-RevId: 879012913
Change-Id: I3f03d09a98236ae9a4dc069564d14437ff5d0a2b
This commit is contained in:
Haroon Qureshi
2026-03-05 05:33:54 -08:00
committed by Copybara-Service
parent 35c0a25cf4
commit 45c7376ab4
+1 -1
View File
@@ -914,7 +914,7 @@ void ControlsGui(const mjModel* model, const mjData* data,
double min = -1.0;
double max = 1.0;
if (!model->actuator_ctrllimited[i]) {
if (model->actuator_ctrllimited[i]) {
min = model->actuator_ctrlrange[2 * i + 0];
max = model->actuator_ctrlrange[2 * i + 1];
}