This commit is contained in:
Your Name
2024-05-12 22:18:57 -05:00
parent d228405bc8
commit f3d7cc5aa4
2 changed files with 5 additions and 4 deletions

View File

@@ -199,9 +199,10 @@ class CarController(CarControllerBase):
# cruise cancel
if CC.cruiseControl.cancel:
if self.CP.flags & HyundaiFlags.CANFD_ALT_BUTTONS:
can_sends.append(hyundaicanfd.create_acc_cancel(self.packer, self.CP, self.CAN, CS.cruise_info))
self.last_button_frame = self.frame
CS.lkas_trigger_result = 1
pass
# can_sends.append(hyundaicanfd.create_acc_cancel(self.packer, self.CP, self.CAN, CS.cruise_info))
# self.last_button_frame = self.frame
# 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))