Test things out

pull/26755/head
Jason Wen 2 years ago
parent 3ca1a2d6fa
commit 772cd5f47a
No known key found for this signature in database
GPG Key ID: 6AAEBEBBB33E2AD2
  1. 8
      selfdrive/car/hyundai/interface.py

@ -27,7 +27,7 @@ class CarInterface(CarInterfaceBase):
# added to selfdrive/car/tests/routes.py, we can remove it from this list.
ret.dashcamOnly = candidate in {CAR.KIA_OPTIMA_H, }
canfd_radar_scc = False
canfd_radar_scc = True
if candidate in CANFD_CAR:
# detect HDA2 with ADAS Driving ECU
if Ecu.adas in [fw.ecu for fw in car_fw]:
@ -39,9 +39,9 @@ class CarInterface(CarInterfaceBase):
# ICE cars do not have 0x130; GEARS message on 0x40 instead
if 0x130 not in fingerprint[4]:
ret.flags |= HyundaiFlags.CANFD_ALT_GEARS.value
for fw in car_fw:
if fw.ecu == "fwdCamera" and fw.fwVersion == b'\xf1\x00NE1 MFC AT EUR RHD 1.00 1.01 99211-GI010 211007':
canfd_radar_scc = True
#for fw in car_fw:
# if fw.ecu == "fwdCamera" and fw.fwVersion == b'\xf1\x00NE1 MFC AT EUR RHD 1.00 1.01 99211-GI010 211007':
# canfd_radar_scc = True
if candidate not in CANFD_RADAR_SCC_CAR or not canfd_radar_scc:
ret.flags |= HyundaiFlags.CANFD_CAMERA_SCC.value

Loading…
Cancel
Save