Mazda: allow engaging below min LKAS speed (#22737)

* Mazda: allow engagement below minimum LKAS speed

* bump panda

* bump panda
old-commit-hash: 4bbeb27f9b56676483776920a62ecb135a2880ed
This commit is contained in:
Adeeb Shihadeh
2021-10-29 13:07:52 -07:00
committed by GitHub
parent 724fbebd42
commit 14ede5d6cd
3 changed files with 3 additions and 11 deletions
+1 -1
Submodule panda updated: 06ec4331f4...0d4e98f605
+2 -7
View File
@@ -14,7 +14,6 @@ class CarState(CarStateBase):
self.cruise_speed = 0
self.acc_active_last = False
self.low_speed_lockout = True
self.low_speed_alert = False
self.lkas_allowed = False
@@ -69,13 +68,9 @@ class CarState(CarStateBase):
ret.cruiseState.speed = cp.vl["CRZ_EVENTS"]["CRZ_SPEED"] * CV.KPH_TO_MS
if ret.cruiseState.enabled:
if not self.lkas_allowed:
if not self.acc_active_last:
self.low_speed_lockout = True
else:
self.low_speed_alert = True
if not self.lkas_allowed and self.acc_active_last:
self.low_speed_alert = True
else:
self.low_speed_lockout = False
self.low_speed_alert = False
# Check if LKAS is disabled due to lack of driver torque when all other states indicate
-3
View File
@@ -86,9 +86,6 @@ class CarInterface(CarInterfaceBase):
# events
events = self.create_common_events(ret)
if self.CS.low_speed_lockout:
events.add(EventName.belowEngageSpeed)
if self.CS.low_speed_alert:
events.add(EventName.belowSteerSpeed)