additional door-open signals

pull/24768/head
Jason Young 3 years ago
parent 1528c87158
commit 1f563968b4
  1. 2
      opendbc
  2. 6
      selfdrive/car/volkswagen/carstate.py

@ -1 +1 @@
Subproject commit 02571d450094e8ad52f5a67366cfc1b9d03134f1
Subproject commit 7342679580cbb3a21fc75b5d94cf4ae9407aebcc

@ -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"])

Loading…
Cancel
Save