From e0a3becdf27f9677f80eb8d53f4907a71d30a5d5 Mon Sep 17 00:00:00 2001 From: Rick Lan Date: Thu, 4 Jul 2019 14:08:20 +1000 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5=E6=9B=B4=E5=A4=9A=E7=9A=84?= =?UTF-8?q?=E9=8C=AF=E8=AA=A4=E8=A8=8A=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- selfdrive/controls/lib/alerts.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/selfdrive/controls/lib/alerts.py b/selfdrive/controls/lib/alerts.py index b638ae621..f3a8ed810 100644 --- a/selfdrive/controls/lib/alerts.py +++ b/selfdrive/controls/lib/alerts.py @@ -173,6 +173,20 @@ ALERTS = [ AlertStatus.normal, AlertSize.mid, Priority.LOW_LOWEST, VisualAlert.none, AudibleAlert.none, 0., 0., 15.), + Alert( + "startupNoControl", + "行車記錄模式", + "請您將手放在方向盤上並持續注意路況", + AlertStatus.normal, AlertSize.mid, + Priority.LOW_LOWEST, VisualAlert.none, AudibleAlert.none, 0., 0., 15.), + + Alert( + "startupNoCar", + "行車記錄模式 (尚未支援車種)", + "請您將手放在方向盤上並持續注意路況", + AlertStatus.normal, AlertSize.mid, + Priority.LOW_LOWEST, VisualAlert.none, AudibleAlert.none, 0., 0., 15.), + Alert( "ethicalDilemma", "即刻接管控制", @@ -279,6 +293,13 @@ ALERTS = [ AlertStatus.normal, AlertSize.mid, Priority.LOW, VisualAlert.none, AudibleAlert.chimeError, .4, 2., 3.), + Alert( + "sensorDataInvalidNoEntry", + "無法使用 dragonpilot", + "沒有收到任何來自 EON 傳感器的資料", + AlertStatus.normal, AlertSize.mid, + Priority.LOW, VisualAlert.none, AudibleAlert.chimeError, .4, 2., 3.), + # Cancellation alerts causing soft disabling Alert( "overheat", @@ -627,6 +648,13 @@ ALERTS = [ AlertStatus.normal, AlertSize.mid, Priority.LOW_LOWEST, VisualAlert.none, AudibleAlert.none, 0., 0., .2), + Alert( + "sensorDataInvalidPermanent", + "沒有收到任何來自 EON 傳感器的資料", + "請重啟您的 EON", + AlertStatus.normal, AlertSize.mid, + Priority.LOW_LOWEST, VisualAlert.none, AudibleAlert.none, 0., 0., .2), + Alert( "vehicleModelInvalid", "車輛參數識別失敗",