wip
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user