Skip to content

Commit 5771cde

Browse files
committed
maintain original button msg rate
1 parent 6c1fe06 commit 5771cde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

selfdrive/car/mazda/carcontroller.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def update(self, c, CS, frame):
2828
self.steer_rate_limited = new_steer != apply_steer
2929

3030
if c.enabled:
31-
if c.cruiseControl.resume:
31+
if c.cruiseControl.resume and frame % 5 == 0:
3232
# Mazda Stop and Go requires a RES button (or gas) press if the car stops more than 3 seconds
3333
# Send Resume button at when planner wants car to move
3434
can_sends.append(mazdacan.create_button_cmd(self.packer, self.CP.carFingerprint, CS.crz_btns_counter, Buttons.RESUME))

0 commit comments

Comments
 (0)