mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-06-20 19:12:07 +08:00
Compare commits
32 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 33ad27f65b | |||
| 35137acd50 | |||
| eb34e66ffb | |||
| 585e9989bc | |||
| 3812050328 | |||
| 692f0ee187 | |||
| c8f38bb6ea | |||
| 1a40a45e8a | |||
| 15176c08f1 | |||
| 8faee8daad | |||
| 955966924f | |||
| f42e505f16 | |||
| 7d0c81254d | |||
| bea1eb34aa | |||
| aaa59fe155 | |||
| 5b68479912 | |||
| 6290d24bf6 | |||
| 3b9cf0c162 | |||
| cfb0919596 | |||
| ad1e72fb12 | |||
| 6354bb89ca | |||
| c431378ade | |||
| ae3ceaa32b | |||
| e3c48da79c | |||
| a5867d3998 | |||
| 0cea8ef65a | |||
| 50f5b0584f | |||
| 39867dea09 | |||
| 999c54c149 | |||
| 500c235e64 | |||
| 58e97698d2 | |||
| bff221f06a |
+1
-1
Submodule opendbc_repo updated: b9712d20ef...338dcbac3e
@@ -134,11 +134,6 @@ class SteeringLayout(Widget):
|
||||
|
||||
enforce_torque_enabled = self._torque_control_toggle.action_item.get_state()
|
||||
nnlc_enabled = self._nnlc_toggle.action_item.get_state()
|
||||
if enforce_torque_enabled and nnlc_enabled:
|
||||
self._torque_control_toggle.action_item.set_state(False)
|
||||
self._nnlc_toggle.action_item.set_state(False)
|
||||
enforce_torque_enabled = False
|
||||
nnlc_enabled = False
|
||||
self._nnlc_toggle.action_item.set_enabled(ui_state.is_offroad() and torque_allowed and not enforce_torque_enabled)
|
||||
self._torque_control_toggle.action_item.set_enabled(ui_state.is_offroad() and torque_allowed and not nnlc_enabled)
|
||||
self._torque_customization_button.action_item.set_enabled(self._torque_control_toggle.action_item.get_state())
|
||||
|
||||
@@ -179,10 +179,6 @@ class UIStateSP:
|
||||
CP = self.CP
|
||||
|
||||
if CP is not None:
|
||||
if self.params.get_bool("EnforceTorqueControl") and self.params.get_bool("NeuralNetworkLateralControl"):
|
||||
self.params.put_bool("EnforceTorqueControl", False, block=True)
|
||||
self.params.put_bool("NeuralNetworkLateralControl", False, block=True)
|
||||
|
||||
# Angle steering: no torque-based lateral controls
|
||||
if CP.steerControlType == car.CarParams.SteerControlType.angle:
|
||||
self.params.remove("EnforceTorqueControl")
|
||||
|
||||
Reference in New Issue
Block a user