From 6dac5ed9e710b53b4c63abc1467d7e7def4606e3 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Mon, 12 Dec 2022 23:41:29 -0800 Subject: [PATCH] HKG CAN-FD: log brake errors/ACC faults (#26781) * log brake_error * bumpopendbc * add signal to can parser old-commit-hash: 72bf819ef06ee81f37d33f45979dfcf8d88b0ad3 --- opendbc | 2 +- selfdrive/car/hyundai/carstate.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/opendbc b/opendbc index bb71829028..4a7ad636ff 160000 --- a/opendbc +++ b/opendbc @@ -1 +1 @@ -Subproject commit bb7182902847b84aa572733edfd8e7073bb02aeb +Subproject commit 4a7ad636ff806146a93f7ae541e463a7dfa5696d diff --git a/selfdrive/car/hyundai/carstate.py b/selfdrive/car/hyundai/carstate.py index cc8fbe3f08..91ec64538b 100644 --- a/selfdrive/car/hyundai/carstate.py +++ b/selfdrive/car/hyundai/carstate.py @@ -213,6 +213,7 @@ class CarState(CarStateBase): self.cruise_buttons.extend(cp.vl_all[cruise_btn_msg]["CRUISE_BUTTONS"]) self.main_buttons.extend(cp.vl_all[cruise_btn_msg]["ADAPTIVE_CRUISE_MAIN_BTN"]) self.buttons_counter = cp.vl[cruise_btn_msg]["COUNTER"] + self.brake_error = cp.vl["TCS"]["ACCEnable"] != 0 # 0 ACC CONTROL ENABLED, 1-3 ACC CONTROL DISABLED if self.CP.flags & HyundaiFlags.CANFD_HDA2: self.cam_0x2a4 = copy.copy(cp_cam.vl["CAM_0x2a4"]) @@ -434,6 +435,7 @@ class CarState(CarStateBase): ("LKA_FAULT", "MDPS"), ("DriverBraking", "TCS"), + ("ACCEnable", "TCS"), ("COUNTER", cruise_btn_msg), ("CRUISE_BUTTONS", cruise_btn_msg),