|
|
@ -195,7 +195,7 @@ class CarController: |
|
|
|
# If using stock ACC, spam cancel command to kill gas when OP disengages. |
|
|
|
# If using stock ACC, spam cancel command to kill gas when OP disengages. |
|
|
|
if pcm_cancel_cmd: |
|
|
|
if pcm_cancel_cmd: |
|
|
|
can_sends.append(hondacan.spam_buttons_command(self.packer, CruiseButtons.CANCEL, idx, self.CP.carFingerprint)) |
|
|
|
can_sends.append(hondacan.spam_buttons_command(self.packer, CruiseButtons.CANCEL, idx, self.CP.carFingerprint)) |
|
|
|
elif CS.out.cruiseState.standstill: |
|
|
|
elif CC.cruiseControl.override: # TODO: add an ordinal or rename override |
|
|
|
can_sends.append(hondacan.spam_buttons_command(self.packer, CruiseButtons.RES_ACCEL, idx, self.CP.carFingerprint)) |
|
|
|
can_sends.append(hondacan.spam_buttons_command(self.packer, CruiseButtons.RES_ACCEL, idx, self.CP.carFingerprint)) |
|
|
|
|
|
|
|
|
|
|
|
else: |
|
|
|
else: |
|
|
|