|
|
|
@ -59,7 +59,7 @@ class CarController: |
|
|
|
|
def create_button_messages(self, CC, CS, can_sends, use_clu11): |
|
|
|
|
# Determine which messages to send button commands to based on the platform's primary cruise button messages |
|
|
|
|
if use_clu11: |
|
|
|
|
# Platforms that have CLU11|0x4F1 (mainly CAN platforms) |
|
|
|
|
# Platforms that use CLU11|0x4F1 (mainly CAN platforms) |
|
|
|
|
if CC.cruiseControl.cancel: |
|
|
|
|
can_sends.append(hyundaican.create_clu11(self.packer, self.frame, CS.clu11, Buttons.CANCEL, self.CP.carFingerprint)) |
|
|
|
|
elif CC.cruiseControl.resume: |
|
|
|
@ -70,7 +70,7 @@ class CarController: |
|
|
|
|
if (self.frame - self.last_button_frame) * DT_CTRL >= 0.15: |
|
|
|
|
self.last_button_frame = self.frame |
|
|
|
|
else: |
|
|
|
|
# Platforms that do not have CLU11|0x4F1 (mainly CAN-FD platforms) |
|
|
|
|
# Platforms that do not use CLU11|0x4F1 (mainly CAN-FD platforms) |
|
|
|
|
if (self.frame - self.last_button_frame) * DT_CTRL > 0.25: |
|
|
|
|
# cruise cancel |
|
|
|
|
if CC.cruiseControl.cancel: |
|
|
|
|