From a53e5fce788859ef3fc018ccda6bf09b47e858f6 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 27 Apr 2024 16:23:33 -0500 Subject: [PATCH] wip --- selfdrive/monitoring/driver_monitor.py | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/selfdrive/monitoring/driver_monitor.py b/selfdrive/monitoring/driver_monitor.py index 7c1c297..97c8f3c 100644 --- a/selfdrive/monitoring/driver_monitor.py +++ b/selfdrive/monitoring/driver_monitor.py @@ -19,12 +19,20 @@ class DRIVER_MONITOR_SETTINGS(): def __init__(self): self._DT_DMON = DT_DMON # 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. - self._DISTRACTED_PROMPT_TIME_TILL_TERMINAL = 6. + # 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. + # self._DISTRACTED_PROMPT_TIME_TILL_TERMINAL = 6. + + # Temp. + self._AWARENESS_TIME = 60. # passive wheeltouch total timeout + self._AWARENESS_PRE_TIME_TILL_TERMINAL = 999. + self._AWARENESS_PROMPT_TIME_TILL_TERMINAL = 999. + self._DISTRACTED_TIME = 30. # active monitoring total timeout + self._DISTRACTED_PRE_TIME_TILL_TERMINAL = 999. + self._DISTRACTED_PROMPT_TIME_TILL_TERMINAL = 999. self._FACE_THRESHOLD = 0.7 self._EYE_THRESHOLD = 0.65