mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-20 08:42:11 +08:00
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:
+1
-1
Submodule panda updated: 06ec4331f4...0d4e98f605
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user