diff --git a/openpilot/selfdrive/ui/sunnypilot/layouts/settings/steering.py b/openpilot/selfdrive/ui/sunnypilot/layouts/settings/steering.py index 90239c476..008d8c791 100644 --- a/openpilot/selfdrive/ui/sunnypilot/layouts/settings/steering.py +++ b/openpilot/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 not in (car.CarParams.SteerControlType.angle, car.CarParams.SteerControlType.curvatureDEPRECATED) + torque_allowed = ui_state.CP is not None and ui_state.CP.steerControlType not in (car.CarParams.SteerControlType.angle, car.CarParams.SteerControlType.curvature) 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}") diff --git a/openpilot/selfdrive/ui/sunnypilot/ui_state.py b/openpilot/selfdrive/ui/sunnypilot/ui_state.py index f46775bd3..2424c95e3 100644 --- a/openpilot/selfdrive/ui/sunnypilot/ui_state.py +++ b/openpilot/selfdrive/ui/sunnypilot/ui_state.py @@ -186,7 +186,7 @@ class UIStateSP: # Angle steering: no torque-based lateral controls if (CP.steerControlType == car.CarParams.SteerControlType.angle or - CP.steerControlType == car.CarParams.SteerControlType.curvatureDEPRECATED): + CP.steerControlType == car.CarParams.SteerControlType.curvature): self.params.remove("EnforceTorqueControl") self.params.remove("NeuralNetworkLateralControl")