This commit is contained in:
Your Name
2024-05-04 02:51:58 -05:00
parent 6191a455dd
commit 481d9cf29e
2 changed files with 9 additions and 9 deletions

View File

@@ -122,8 +122,8 @@ class CarController(CarControllerBase):
# LFA and HDA icons
if self.frame % 5 == 0 and (not hda2 or hda2_long):
# CLEARPILOT TEST self.CS.lkas_enabled
# can_sends.append(hyundaicanfd.create_lfahda_cluster(self.packer, self.CAN, CC.enabled, CC.latActive))
can_sends.append(hyundaicanfd.create_lfahda_cluster(self.packer, self.CAN, CS.lkas_enabled, CS.lkas_enabled))
can_sends.append(hyundaicanfd.create_lfahda_cluster(self.packer, self.CAN, CC.enabled, CC.latActive))
# can_sends.append(hyundaicanfd.create_lfahda_cluster(self.packer, self.CAN, CS.lkas_enabled, CS.lkas_enabled))
# blinkers
if hda2 and self.CP.flags & HyundaiFlags.ENABLE_BLINKERS:
@@ -139,9 +139,9 @@ class CarController(CarControllerBase):
else:
# Clearpilot
# If cruise control was enabled or idle on start, force cancel
if CS.fix_main_enabled_cancel_main:
CS.fix_main_enabled_cancel_main = False
CC.cruiseControl.cancel = True
# if CS.fix_main_enabled_cancel_main:
# CS.fix_main_enabled_cancel_main = False
# CC.cruiseControl.cancel = True
# button presses
can_sends.extend(self.create_button_messages(CC, CS, use_clu11=False))
else: