mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-08-03 08:41:41 +08:00
Update events.py add radar disable fail events
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user