From 51638bfe4d411e7fa2ab99f31d4a8b8941c0c582 Mon Sep 17 00:00:00 2001 From: ZwX1616 Date: Tue, 8 Mar 2022 13:11:39 -0800 Subject: [PATCH] DM: update wheeltouch timeouts to match EU guidelines (#23925) * update time to match 15/30 * add ref --- selfdrive/monitoring/driver_monitor.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/selfdrive/monitoring/driver_monitor.py b/selfdrive/monitoring/driver_monitor.py index efb00ecb77..2e317aefbd 100644 --- a/selfdrive/monitoring/driver_monitor.py +++ b/selfdrive/monitoring/driver_monitor.py @@ -18,8 +18,9 @@ EventName = car.CarEvent.EventName class DRIVER_MONITOR_SETTINGS(): def __init__(self, TICI=TICI, DT_DMON=DT_DMON): self._DT_DMON = DT_DMON - self._AWARENESS_TIME = 35. # passive wheeltouch total timeout - self._AWARENESS_PRE_TIME_TILL_TERMINAL = 12. + # ref (page15-16): https://eur-lex.europa.eu/legal-content/EN/TXT/PDF/?uri=CELEX:42018X1947&rid=2 + self._AWARENESS_TIME = 30. # passive wheeltouch total timeout + self._AWARENESS_PRE_TIME_TILL_TERMINAL = 15. self._AWARENESS_PROMPT_TIME_TILL_TERMINAL = 6. self._DISTRACTED_TIME = 11. # active monitoring total timeout self._DISTRACTED_PRE_TIME_TILL_TERMINAL = 8.