From 8ab5a48725dfe78ad7325bdbbe098ed1c4cc72ac Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Sat, 27 May 2023 16:50:34 -0700 Subject: [PATCH] Hyundai CAN FD DBC update (#28322) old-commit-hash: 3f61537d1b7b33ee0a1104ca6a47bf323bf31c4b --- opendbc | 2 +- selfdrive/car/hyundai/carstate.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/opendbc b/opendbc index 8faada0494..2db0483993 160000 --- a/opendbc +++ b/opendbc @@ -1 +1 @@ -Subproject commit 8faada0494c4498a57c2196e80c6da94f508d009 +Subproject commit 2db04839931562b7088276e14de846e90c7e2396 diff --git a/selfdrive/car/hyundai/carstate.py b/selfdrive/car/hyundai/carstate.py index cec2c3e69e..bb84dcde1d 100644 --- a/selfdrive/car/hyundai/carstate.py +++ b/selfdrive/car/hyundai/carstate.py @@ -173,8 +173,8 @@ class CarState(CarStateBase): ret.brakePressed = cp.vl["TCS"]["DriverBraking"] == 1 - ret.doorOpen = cp.vl["DOORS_SEATBELTS"]["DRIVER_DOOR_OPEN"] == 1 - ret.seatbeltUnlatched = cp.vl["DOORS_SEATBELTS"]["DRIVER_SEATBELT_LATCHED"] == 0 + ret.doorOpen = cp.vl["DOORS_SEATBELTS"]["DRIVER_DOOR"] == 1 + ret.seatbeltUnlatched = cp.vl["DOORS_SEATBELTS"]["DRIVER_SEATBELT"] == 0 gear = cp.vl[self.gear_msg_canfd]["GEAR"] ret.gearShifter = self.parse_gear_shifter(self.shifter_values.get(gear)) @@ -457,8 +457,8 @@ class CarState(CarStateBase): ("LEFT_LAMP", "BLINKERS"), ("RIGHT_LAMP", "BLINKERS"), - ("DRIVER_DOOR_OPEN", "DOORS_SEATBELTS"), - ("DRIVER_SEATBELT_LATCHED", "DOORS_SEATBELTS"), + ("DRIVER_DOOR", "DOORS_SEATBELTS"), + ("DRIVER_SEATBELT", "DOORS_SEATBELTS"), ] checks = [