This commit is contained in:
whoisdomi
2026-05-27 07:23:39 -05:00
committed by firestar5683
parent 2317057411
commit 0ed821d32d
@@ -586,8 +586,8 @@ class CarController(CarControllerBase):
# Ioniq 6: front radar treats ADAS_DRV's 0x100 broadcast as its host heartbeat
# and stops publishing object tracks when it disappears. Spoof it at 100 Hz on
# PT bus so the radar keeps tracking.
if self.CP.carFingerprint == CAR.HYUNDAI_IONIQ_6 and self.frame % 2 == 0:
can_sends.append(hyundaicanfd.create_accelerator_brake_alt_spoof(0, self.frame // 2, CS.out.brakePressed, CS.out.gasPressed))
if self.CP.carFingerprint == CAR.HYUNDAI_IONIQ_6 and self.frame % 4 == 0:
can_sends.append(hyundaicanfd.create_accelerator_brake_alt_spoof(0, self.frame // 4, CS.out.brakePressed, CS.out.gasPressed))
elif not ccnc_non_hda2:
can_sends.extend(hyundaicanfd.create_fca_warning_light(self.packer, self.CAN, self.frame))
if self.CP.carFingerprint == CAR.HYUNDAI_IONIQ_6 and self.frame % 5 == 0: