From 13ae651f46254fc82c66835785b8745a10da6bda Mon Sep 17 00:00:00 2001 From: Rick Lan Date: Tue, 2 Jul 2019 16:25:46 +1000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=20safetycheck=20=E9=A0=90?= =?UTF-8?q?=E8=A8=AD=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- selfdrive/controls/lib/driver_monitor.py | 2 +- selfdrive/dragonpilot/dragonconf/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/controls/lib/driver_monitor.py b/selfdrive/controls/lib/driver_monitor.py index 3de48036d..3c06d461b 100644 --- a/selfdrive/controls/lib/driver_monitor.py +++ b/selfdrive/controls/lib/driver_monitor.py @@ -145,7 +145,7 @@ class DriverStatus(): not (standstill and self.awareness - self.step_change <= self.threshold_prompt): self.awareness = max(self.awareness - self.step_change, -0.1) - if params.get("DragonDisableDriverSafetyCheck") == "1": + if params.get("DragonDisableDriverSafetyCheck") == "0": alert = None if self.awareness <= 0.: # terminal red alert: disengagement required diff --git a/selfdrive/dragonpilot/dragonconf/__init__.py b/selfdrive/dragonpilot/dragonconf/__init__.py index ef6598ceb..51be9d3a9 100644 --- a/selfdrive/dragonpilot/dragonconf/__init__.py +++ b/selfdrive/dragonpilot/dragonconf/__init__.py @@ -7,7 +7,7 @@ default_conf = { 'DragonEnableDashcam': '1', - 'DragonDisableDriverSafetyCheck': '1', + 'DragonDisableDriverSafetyCheck': '0', 'DragonAutoShutdownAt': '30', # in minute 'DragonTempDisableSteerOnSignal': '0', }