maintain original button msg rate

pull/24873/head
Shane Smiskol 3 years ago
parent 6c1fe0606f
commit 5771cdecab
  1. 2
      selfdrive/car/mazda/carcontroller.py

@ -28,7 +28,7 @@ class CarController():
self.steer_rate_limited = new_steer != apply_steer self.steer_rate_limited = new_steer != apply_steer
if c.enabled: if c.enabled:
if c.cruiseControl.resume: if c.cruiseControl.resume and frame % 5 == 0:
# Mazda Stop and Go requires a RES button (or gas) press if the car stops more than 3 seconds # Mazda Stop and Go requires a RES button (or gas) press if the car stops more than 3 seconds
# Send Resume button at when planner wants car to move # 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)) can_sends.append(mazdacan.create_button_cmd(self.packer, self.CP.carFingerprint, CS.crz_btns_counter, Buttons.RESUME))

Loading…
Cancel
Save