VW: low steer speed alert in CarState (#35331)

* move to opendbc

* func

* clean up

* bump

* move cmt

* bump
pull/33601/merge
Shane Smiskol 2 days ago committed by GitHub
parent 9622427044
commit 70644e2317
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      opendbc_repo
  2. 9
      selfdrive/car/car_specific.py

@ -1 +1 @@
Subproject commit c495fa822c845b0bfc6e1511ced3425d111f3fe4
Subproject commit 0c8b12328ec4fcb7481806f62cd90310573d4c0c

@ -2,7 +2,6 @@ from cereal import car, log
import cereal.messaging as messaging
from opendbc.car import DT_CTRL, structs
from opendbc.car.interfaces import MAX_CTRL_SPEED
from opendbc.car.volkswagen.values import CarControllerParams as VWCarControllerParams
from openpilot.selfdrive.selfdrived.events import Events
@ -112,14 +111,6 @@ class CarSpecificEvents:
events = self.create_common_events(CS, CS_prev, extra_gears=[GearShifter.eco, GearShifter.sport, GearShifter.manumatic],
pcm_enable=self.CP.pcmCruise)
# Low speed steer alert hysteresis logic
if (self.CP.minSteerSpeed - 1e-3) > VWCarControllerParams.DEFAULT_MIN_STEER_SPEED and CS.vEgo < (self.CP.minSteerSpeed + 1.):
self.low_speed_alert = True
elif CS.vEgo > (self.CP.minSteerSpeed + 2.):
self.low_speed_alert = False
if self.low_speed_alert:
events.add(EventName.belowSteerSpeed)
if self.CP.openpilotLongitudinalControl:
if CS.vEgo < self.CP.minEnableSpeed + 0.5:
events.add(EventName.belowEngageSpeed)

Loading…
Cancel
Save