50hz poll

This commit is contained in:
whoisdomi
2026-05-27 06:45:40 -05:00
committed by firestar5683
parent dc3b39a198
commit 2317057411
@@ -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:
can_sends.append(hyundaicanfd.create_accelerator_brake_alt_spoof(0, self.frame, CS.out.brakePressed, CS.out.gasPressed))
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))
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: