mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-11-02 22:44:19 +08:00
only for ones with higher min enable speed
This commit is contained in:
+1
-1
Submodule opendbc_repo updated: 83a76e9671...585ffa48c5
@@ -37,7 +37,7 @@ class CarSpecificEventsSP:
|
||||
# TODO-SP: add 1 m/s hysteresis
|
||||
if CS.vEgo >= self.CP.minEnableSpeed:
|
||||
self.low_speed_alert = False
|
||||
if CS.gearShifter != GearShifter.drive:
|
||||
if self.CP.minEnableSpeed >= 14.5 and CS.gearShifter != GearShifter.drive:
|
||||
self.low_speed_alert = True
|
||||
if self.low_speed_alert:
|
||||
events.add(EventName.belowSteerSpeed)
|
||||
|
||||
Reference in New Issue
Block a user