add 1 second delay to acc pedal alert (#2221)

So that the screen wouldn't appear to "flicker" when openpilot is engaged while the acc pedal is being released
pull/2242/head
cydia2020 5 years ago committed by GitHub
parent 2490be762d
commit 6d5b2af3f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      selfdrive/controls/lib/events.py

@ -334,7 +334,7 @@ EVENTS: Dict[int, Dict[str, Union[Alert, Callable[[Any, messaging.SubMaster, boo
"openpilot will not brake while gas pressed",
"",
AlertStatus.normal, AlertSize.small,
Priority.LOWEST, VisualAlert.none, AudibleAlert.none, .0, .0, .1),
Priority.LOWEST, VisualAlert.none, AudibleAlert.none, .0, .0, .1, creation_delay=1.),
},
EventName.vehicleModelInvalid: {

Loading…
Cancel
Save