This commit is contained in:
Your Name
2024-05-18 03:29:54 -05:00
parent 24152b27db
commit 2de40cc2f3
3 changed files with 8 additions and 6 deletions

View File

@@ -131,10 +131,9 @@ class CarController(CarControllerBase):
params_memory = Params("/dev/shm/params")
if params_memory.get_bool("CPTLkasButtonAction"):
params_memory.put_bool("CPTLkasButtonAction", False)
# can_sends.extend(hyundaicanfd.create_adrv_messages(self.packer, self.CAN, self.frame))
can_sends.append(hyundaicanfd.create_acc_control(self.packer, self.CAN, CC.enabled, self.accel_last, accel, stopping, CC.cruiseControl.override,
40, hud_control))
50, hud_control))
print("Debug cancel executed")
if self.CP.openpilotLongitudinalControl:
@@ -196,7 +195,7 @@ class CarController(CarControllerBase):
can_sends = []
if use_clu11:
if CC.cruiseControl.cancel:
print("Yes")
print("Cancel button go")
can_sends.append(hyundaican.create_clu11(self.packer, self.frame, CS.clu11, Buttons.CANCEL, self.CP))
CS.lkas_trigger_result = 5
elif CC.cruiseControl.resume: