mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-09-12 19:13:45 +08:00
remove low speed alert
This commit is contained in:
@@ -14,7 +14,6 @@ class CarState(CarStateBase):
|
||||
|
||||
self.crz_btns_counter = 0
|
||||
self.acc_active_last = False
|
||||
self.low_speed_alert = False
|
||||
self.lkas_allowed_speed = False
|
||||
self.lkas_disabled = False
|
||||
|
||||
@@ -82,12 +81,6 @@ class CarState(CarStateBase):
|
||||
ret.cruiseActualEnabled = ret.cruiseState.enabled
|
||||
ret.cruiseState.speed = self.cruise_speed
|
||||
|
||||
if ret.cruiseState.enabled:
|
||||
if not self.lkas_allowed_speed and self.acc_active_last:
|
||||
self.low_speed_alert = True
|
||||
else:
|
||||
self.low_speed_alert = False
|
||||
|
||||
# Check if LKAS is disabled due to lack of driver torque when all other states indicate
|
||||
# it should be enabled (steer lockout). Don't warn until we actually get lkas active
|
||||
# and lose it again, i.e, after initial lkas activation
|
||||
|
||||
@@ -96,9 +96,7 @@ class CarInterface(CarInterfaceBase):
|
||||
|
||||
if self.CS.lkas_disabled:
|
||||
events.add(EventName.lkasDisabled)
|
||||
elif self.CS.low_speed_alert:
|
||||
events.add(EventName.belowSteerSpeed)
|
||||
|
||||
|
||||
ret.events = events.to_msg()
|
||||
|
||||
self.CS.out = ret.as_reader()
|
||||
|
||||
Reference in New Issue
Block a user