This commit is contained in:
firestar5683
2026-05-26 15:53:05 -05:00
parent 7386073c71
commit a4789c9f61
2 changed files with 4 additions and 4 deletions
@@ -177,9 +177,9 @@ class CarInterface(CarInterfaceBase):
if ret.flags & HyundaiFlags.NON_SCC:
ret.alphaLongitudinalAvailable = False
ret.openpilotLongitudinalControl = alpha_long and ret.alphaLongitudinalAvailable
# When longitudinal is enabled, we disable the ADAS ECU which stops radar messages
# Force radarUnavailable to prevent CAN Error from missing radar messages
if ret.openpilotLongitudinalControl and not (candidate == CAR.HYUNDAI_IONIQ_6 and radar_tracks_available):
# When longitudinal is enabled, we disable the ADAS ECU which stops radar messages.
# Keep Ioniq 6 radar tracks probe-only until a harness path can provide them reliably.
if ret.openpilotLongitudinalControl:
ret.radarUnavailable = True
ret.pcmCruise = not ret.openpilotLongitudinalControl
apply_platform_longitudinal_params(ret)
@@ -149,7 +149,7 @@ class TestHyundaiFingerprint:
fingerprint[1][MRR35_RADAR_START_ADDR] = 24
CP = CarInterface.get_params(CAR.HYUNDAI_IONIQ_6, fingerprint, [], True, False, False, None)
assert CP.openpilotLongitudinalControl
assert not CP.radarUnavailable
assert CP.radarUnavailable
for candidate in HYUNDAI_NON_SCC_CARS:
CP = CarInterface.get_params(candidate, gen_empty_fingerprint(), [], True, False, False, None)