From 111b6438c6a27a4fc3992606321c2282a04ed6cb Mon Sep 17 00:00:00 2001 From: Eric Brown Date: Thu, 17 Aug 2023 17:03:35 -0600 Subject: [PATCH] Swap `belowSteerSpeed` and `resumeRequired` alert priorities (#28795) * GM: Don't send belowSteerSpeed when resumeRequired * Set belowSteerSpeed alert to LOW priority, resumeRequired to MID * Add script to output all events and their priorities by type * Set CP, CS, sm * Subscribe to same messages as controlsd * Create callable alerts * Remove event print script * Remove sng check --- selfdrive/controls/lib/events.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/controls/lib/events.py b/selfdrive/controls/lib/events.py index e552e18966..0230a5775c 100755 --- a/selfdrive/controls/lib/events.py +++ b/selfdrive/controls/lib/events.py @@ -238,7 +238,7 @@ def below_steer_speed_alert(CP: car.CarParams, CS: car.CarState, sm: messaging.S f"Steer Unavailable Below {get_display_speed(CP.minSteerSpeed, metric)}", "", AlertStatus.userPrompt, AlertSize.small, - Priority.MID, VisualAlert.steerRequired, AudibleAlert.prompt, 0.4) + Priority.LOW, VisualAlert.steerRequired, AudibleAlert.prompt, 0.4) def calibration_incomplete_alert(CP: car.CarParams, CS: car.CarState, sm: messaging.SubMaster, metric: bool, soft_disable_time: int) -> Alert: @@ -505,7 +505,7 @@ EVENTS: Dict[int, Dict[str, Union[Alert, AlertCallbackType]]] = { "Press Resume to Exit Standstill", "", AlertStatus.userPrompt, AlertSize.small, - Priority.LOW, VisualAlert.none, AudibleAlert.none, .2), + Priority.MID, VisualAlert.none, AudibleAlert.none, .2), }, EventName.belowSteerSpeed: {