remove comments

pull/24873/head
Shane Smiskol 3 years ago
parent 325ea9bbd5
commit 00b1df652f
  1. 2
      selfdrive/car/honda/carcontroller.py
  2. 3
      selfdrive/car/mazda/carcontroller.py

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

@ -30,8 +30,7 @@ class CarController():
if c.enabled:
if c.cruiseControl.override:
# Mazda Stop and Go requires a RES button (or gas) press if the car stops more than 3 seconds
# Send Resume button at 20hz if we're engaged at standstill to support full stop and go!
# TODO: improve the resume trigger logic by looking at actual radar data
# Send Resume button at when planner wants car to move
can_sends.append(mazdacan.create_button_cmd(self.packer, self.CP.carFingerprint, CS.crz_btns_counter, Buttons.RESUME))
if c.cruiseControl.cancel:

Loading…
Cancel
Save