Update events.py add radar disable fail events

This commit is contained in:
infiniteCable2
2025-12-13 09:59:12 +01:00
committed by GitHub
parent 85918e8887
commit a32f88434c
+16
View File
@@ -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.