remove low speed alert

This commit is contained in:
Shenglu Zhang
2022-08-11 17:54:06 +10:00
parent 0ef378b6bc
commit 661531d945
2 changed files with 1 additions and 10 deletions
-7
View File
@@ -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
+1 -3
View File
@@ -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()