hopefully reduce the cause of cruiseDisabled alerts if user flip the steering control?)

This commit is contained in:
dragonpilot
2020-03-02 14:11:44 +10:00
parent 4e4248379a
commit 9f5c6ae26e
+2 -2
View File
@@ -554,8 +554,8 @@ class CarInterface(CarInterfaceBase):
if self.CP.enableCruise and not ret.cruiseState.enabled and (c.actuators.brake <= 0. or not self.CP.openpilotLongitudinalControl):
# non loud alert if cruise disbales below 25mph as expected (+ a little margin)
if ret.vEgo < self.CP.minEnableSpeed + 2.:
events.append(create_event('speedTooLow', [ET.IMMEDIATE_DISABLE]))
else:
# events.append(create_event('speedTooLow', [ET.IMMEDIATE_DISABLE]))
# else:
events.append(create_event("cruiseDisabled", [ET.IMMEDIATE_DISABLE]))
if self.CS.CP.minEnableSpeed > 0 and ret.vEgo < 0.001:
events.append(create_event('manualRestart', [ET.WARNING]))