diff --git a/opendbc b/opendbc index 02571d4500..7342679580 160000 --- a/opendbc +++ b/opendbc @@ -1 +1 @@ -Subproject commit 02571d450094e8ad52f5a67366cfc1b9d03134f1 +Subproject commit 7342679580cbb3a21fc75b5d94cf4ae9407aebcc diff --git a/selfdrive/car/volkswagen/carstate.py b/selfdrive/car/volkswagen/carstate.py index 9e7d0af2a7..d2c3d4cfab 100644 --- a/selfdrive/car/volkswagen/carstate.py +++ b/selfdrive/car/volkswagen/carstate.py @@ -199,8 +199,10 @@ class CarState(CarStateBase): ret.gearShifter = GearShifter.drive # Update door and trunk/hatch lid open status. - # FIXME: need to locate signals for other three doors and trunk if possible - ret.doorOpen = bool(pt_cp.vl["Gate_Komf_1"]["GK1_Fa_Tuerkont"]) + ret.doorOpen = any([pt_cp.vl["Gate_Komf_1"]["GK1_Fa_Tuerkont"], + pt_cp.vl["Gate_Komf_1"]["BSK_BT_geoeffnet"], + pt_cp.vl["Gate_Komf_1"]["BSK_HL_geoeffnet"], + pt_cp.vl["Gate_Komf_1"]["BSK_HR_geoeffnet"]]) # Update seatbelt fastened status. ret.seatbeltUnlatched = not bool(pt_cp.vl["Airbag_1"]["Gurtschalter_Fahrer"])