From f625f3bbd36c9b03dc7eba22b7e845d57120a736 Mon Sep 17 00:00:00 2001 From: infiniteCable2 Date: Sun, 10 May 2026 17:09:33 +0200 Subject: [PATCH] no torque for curvature sunny --- selfdrive/ui/sunnypilot/layouts/settings/steering.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/ui/sunnypilot/layouts/settings/steering.py b/selfdrive/ui/sunnypilot/layouts/settings/steering.py index e31ee1891..7b960b7bf 100644 --- a/selfdrive/ui/sunnypilot/layouts/settings/steering.py +++ b/selfdrive/ui/sunnypilot/layouts/settings/steering.py @@ -120,7 +120,7 @@ class SteeringLayout(Widget): def _update_state(self): super()._update_state() - torque_allowed = ui_state.CP is not None and ui_state.CP.steerControlType != car.CarParams.SteerControlType.angle + torque_allowed = ui_state.CP is not None and ui_state.CP.steerControlType not in (car.CarParams.SteerControlType.angle, car.CarParams.SteerControlType.curvatureDEPRECATED) if ui_state.CP is not None: mads_main_desc = self._mads_limited_desc if self._mads_settings_layout._mads_limited_settings() else self._mads_full_desc self._mads_toggle.set_description(f"{mads_main_desc}

{self._mads_base_desc}")