From f1fecc3da7299a45f1f4728c48ff33b225d43eb1 Mon Sep 17 00:00:00 2001 From: Vivek Aithal Date: Thu, 28 Jul 2022 18:52:10 -0700 Subject: [PATCH] Sensor Invalid Alert (#25303) * modify text, add soft disable * Update selfdrive/controls/lib/events.py Co-authored-by: Adeeb Shihadeh * Update selfdrive/controls/lib/events.py Co-authored-by: Adeeb Shihadeh Co-authored-by: Adeeb Shihadeh --- selfdrive/controls/lib/events.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/selfdrive/controls/lib/events.py b/selfdrive/controls/lib/events.py index 5fdf2ba29f..de666fd507 100644 --- a/selfdrive/controls/lib/events.py +++ b/selfdrive/controls/lib/events.py @@ -656,11 +656,12 @@ EVENTS: Dict[int, Dict[str, Union[Alert, AlertCallbackType]]] = { EventName.sensorDataInvalid: { ET.PERMANENT: Alert( - "No Data from Device Sensors", - "Reboot your Device", + "Sensor Data Invalid", + "Ensure device is mounted securely", AlertStatus.normal, AlertSize.mid, Priority.LOWER, VisualAlert.none, AudibleAlert.none, .2, creation_delay=1.), - ET.NO_ENTRY: NoEntryAlert("No Data from Device Sensors"), + ET.NO_ENTRY: NoEntryAlert("Sensor Data Invalid"), + ET.SOFT_DISABLE: soft_disable_alert("Sensor Data Invalid"), }, EventName.noGps: {