From ca29e033e91bd01ff6e5c9b807994940427e2d7f Mon Sep 17 00:00:00 2001 From: cydia2020 <12470297+cydia2020@users.noreply.github.com> Date: Tue, 29 Sep 2020 09:17:21 +1000 Subject: [PATCH] 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: 6d5b2af3f2290d9cf99c4eee3eb9c412a069fbb4 --- selfdrive/controls/lib/events.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/controls/lib/events.py b/selfdrive/controls/lib/events.py index d8a49400fb..67a6838d74 100644 --- a/selfdrive/controls/lib/events.py +++ b/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: {