From 5771cdecab7999765d9f5203c75a67f1555cf975 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Mon, 20 Jun 2022 23:27:58 -0700 Subject: [PATCH] maintain original button msg rate --- selfdrive/car/mazda/carcontroller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/car/mazda/carcontroller.py b/selfdrive/car/mazda/carcontroller.py index b1e4921b5c..2c4a8ffa4c 100644 --- a/selfdrive/car/mazda/carcontroller.py +++ b/selfdrive/car/mazda/carcontroller.py @@ -28,7 +28,7 @@ class CarController(): self.steer_rate_limited = new_steer != apply_steer 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 # 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))