From 7b9a3140933d228a801e3ae19b7abec9033012a1 Mon Sep 17 00:00:00 2001 From: dragonpilot Date: Mon, 19 Aug 2019 10:30:03 +1000 Subject: [PATCH] =?UTF-8?q?=E9=97=9C=E9=96=89=20tooDistracted=20=E9=8C=AF?= =?UTF-8?q?=E8=AA=A4=EF=BC=8C=E4=BB=A5=E9=98=B2=20dp=20=E7=84=A1=E6=B3=95?= =?UTF-8?q?=E5=95=9F=E5=8B=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- selfdrive/controls/controlsd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/controls/controlsd.py b/selfdrive/controls/controlsd.py index 014317c9d..f4a63e8cb 100755 --- a/selfdrive/controls/controlsd.py +++ b/selfdrive/controls/controlsd.py @@ -120,8 +120,8 @@ def data_sample(CI, CC, sm, can_sock, cal_status, cal_perc, overtemp, free_space if sm.updated['driverMonitoring']: driver_status.get_pose(sm['driverMonitoring'], params, cal_rpy) - if driver_status.terminal_alert_cnt >= MAX_TERMINAL_ALERTS: - events.append(create_event("tooDistracted", [ET.NO_ENTRY])) + # if driver_status.terminal_alert_cnt >= MAX_TERMINAL_ALERTS: + # events.append(create_event("tooDistracted", [ET.NO_ENTRY])) return CS, events, cal_status, cal_perc, overtemp, free_space, low_battery, mismatch_counter