From 2466c22d33e5559dd33f8482a3fb0bbae70dead5 Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Sat, 10 Dec 2022 14:05:16 -0500 Subject: [PATCH] Revert "Is it that simple?" This reverts commit 6d48945925597fa686a7c6c534960487bb811e26. --- selfdrive/car/hyundai/interface.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/selfdrive/car/hyundai/interface.py b/selfdrive/car/hyundai/interface.py index 319f3dc0d2..f9d54e58df 100644 --- a/selfdrive/car/hyundai/interface.py +++ b/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,10 +39,10 @@ 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 - if candidate not in CANFD_RADAR_SCC_CAR and not canfd_radar_scc: + #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 ret.steerActuatorDelay = 0.1 # Default delay