This commit is contained in:
Your Name
2024-05-20 23:34:45 -05:00
parent 42f0e95f0a
commit f7ce58d71f

View File

@@ -223,10 +223,10 @@ class CarController(CarControllerBase):
if self.CP.flags & HyundaiFlags.CANFD_ALT_BUTTONS: if self.CP.flags & HyundaiFlags.CANFD_ALT_BUTTONS:
# pass # pass
# can_sends.append(hyundaicanfd.create_acc_cancel(self.packer, self.CP, self.CAN, CS.cruise_info)) # can_sends.append(hyundaicanfd.create_acc_cancel(self.packer, self.CP, self.CAN, CS.cruise_info))
for _ in range(20): # for _ in range(20):
if CS.cruise_can_msg: # if CS.cruise_can_msg:
can_sends.append(hyundaicanfd.create_buttons_alt(self.packer, self.CP, self.CAN, CS.buttons_counter+1, Buttons.CANCEL, CS.cruise_can_msg)) # can_sends.append(hyundaicanfd.create_buttons_alt(self.packer, self.CP, self.CAN, CS.buttons_counter+1, Buttons.CANCEL, CS.cruise_can_msg))
print("Try Cancel Button Alt") # print("Try Cancel Button Alt")
self.last_button_frame = self.frame self.last_button_frame = self.frame
CS.lkas_trigger_result = 1 CS.lkas_trigger_result = 1
else: else: