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
old-commit-hash: 6d5b2af3f2
commatwo_master
cydia2020 5 years ago committed by GitHub
parent be29b8f236
commit ca29e033e9
  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", "openpilot will not brake while gas pressed",
"", "",
AlertStatus.normal, AlertSize.small, 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: { EventName.vehicleModelInvalid: {

Loading…
Cancel
Save