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

* hkg can: move low speed alert to carstate

* bump
pull/35307/head
Shane Smiskol 3 months ago committed by GitHub
parent a6a09276e9
commit 8e57f774d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      opendbc_repo
  2. 8
      selfdrive/car/car_specific.py

@ -1 +1 @@
Subproject commit 0af0d464df30daa4c78f5349c958ba584370ef80
Subproject commit bf27fea810a111bd9b2c22a20e713485c65a2043

@ -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)

Loading…
Cancel
Save