Hyundai: move low speed steering alert to car state (#35269)

* hkg can: move low speed alert to carstate

* bump
This commit is contained in:
Shane Smiskol
2025-05-18 01:05:15 -07:00
committed by GitHub
parent a6a09276e9
commit 8e57f774d0
2 changed files with 1 additions and 9 deletions
-8
View File
@@ -134,14 +134,6 @@ class CarSpecificEvents:
events = self.create_common_events(CS, CS_prev, extra_gears=(GearShifter.sport, GearShifter.manumatic),
pcm_enable=self.CP.pcmCruise, allow_button_cancel=False)
# low speed steer alert hysteresis logic (only for cars with steer cut off above 10 m/s)
if CS.vEgo < (self.CP.minSteerSpeed + 2.) and self.CP.minSteerSpeed > 10.:
self.low_speed_alert = True
if CS.vEgo > (self.CP.minSteerSpeed + 4.):
self.low_speed_alert = False
if self.low_speed_alert:
events.add(EventName.belowSteerSpeed)
else:
events = self.create_common_events(CS, CS_prev)