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

* move to opendbc

* func

* clean up

* bump

* move cmt

* bump
This commit is contained in:
Shane Smiskol
2025-05-23 16:54:50 -07:00
committed by GitHub
parent 9622427044
commit 70644e2317
2 changed files with 1 additions and 10 deletions
-9
View File
@@ -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)