detect using adas driving ecu

This commit is contained in:
Jason Wen
2023-03-01 22:07:56 -05:00
parent e1804a57ce
commit 0aafbccf54
+2 -2
View File
@@ -45,8 +45,8 @@ class CarInterface(CarInterfaceBase):
if candidate not in CANFD_RADAR_SCC_CAR:
ret.flags |= HyundaiFlags.CANFD_CAMERA_SCC.value
else:
# detect platforms with HKG CAN and CAN-FD definitions
if 0x50 in fingerprint[6] and 0x420 in fingerprint[5]:
# detect HDA2 with CAN and CAN-FD definitions with ADAS Driving ECU
if Ecu.adas in [fw.ecu for fw in car_fw]:
ret.flags |= HyundaiFlags.CAN_CANFD_HDA2.value
# Send LFA message on cars with HDA