This commit is contained in:
Your Name
2024-05-14 03:17:23 -05:00
parent 9404ae4f1f
commit 6efe858dfc
28 changed files with 601 additions and 32 deletions

View File

@@ -200,9 +200,9 @@ class CarController(CarControllerBase):
if CC.cruiseControl.cancel:
if self.CP.flags & HyundaiFlags.CANFD_ALT_BUTTONS:
# pass
can_sends.append(hyundaicanfd.create_acc_cancel(self.packer, self.CP, self.CAN, CS.cruise_info))
can_sends.append(hyundaicanfd.create_buttons_alt(self.packer, self.CP, self.CAN, CS.buttons_counter+1, Buttons.CANCEL))
self.last_button_frame = self.frame
# CS.lkas_trigger_result = 1
CS.lkas_trigger_result = 1
else:
for _ in range(20):
can_sends.append(hyundaicanfd.create_buttons(self.packer, self.CP, self.CAN, CS.buttons_counter+1, Buttons.CANCEL))