From a32f88434c265db20eb0ca5aa0f8cc6247cb98ed Mon Sep 17 00:00:00 2001 From: infiniteCable2 Date: Sat, 13 Dec 2025 09:59:12 +0100 Subject: [PATCH] Update events.py add radar disable fail events --- selfdrive/selfdrived/events.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/selfdrive/selfdrived/events.py b/selfdrive/selfdrived/events.py index 202e5843e..3ba11c0b7 100755 --- a/selfdrive/selfdrived/events.py +++ b/selfdrive/selfdrived/events.py @@ -271,6 +271,12 @@ EVENTS: dict[int, dict[str, Alert | AlertCallbackType]] = { priority=Priority.HIGH), }, + EventName.dashcamModeRadDisEngOn: { + ET.PERMANENT: NormalPermanentAlert("Dashcam Mode - Radar Deactivation Failed", + "Engine is running. Retry during ignition.", + priority=Priority.LOWEST), + }, + EventName.dashcamMode: { ET.PERMANENT: NormalPermanentAlert("Dashcam Mode", priority=Priority.LOWEST), @@ -706,6 +712,16 @@ EVENTS: dict[int, dict[str, Alert | AlertCallbackType]] = { ET.NO_ENTRY: NoEntryAlert("Radar Temporarily Unavailable"), }, + EventName.radarDisableFailed: { + ET.NO_ENTRY: NoEntryAlert("Radar Deactivation Failed"), + ET.IMMEDIATE_DISABLE: ImmediateDisableAlert("Radar Deactivation Failed"), + ET.PERMANENT: Alert( + "Radar Deactivation Failed", + "Retry during ignition", + AlertStatus.userPrompt, AlertSize.mid, + Priority.HIGH, VisualAlert.none, AudibleAlert.warningImmediate, .1), + }, + # Every frame from the camera should be processed by the model. If modeld # is not processing frames fast enough they have to be dropped. This alert is # thrown when over 20% of frames are dropped.