Skip to content

Commit f38210a

Browse files
committed
use bit in carcontroller
1 parent 510f862 commit f38210a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

selfdrive/car/mazda/carcontroller.py

Lines changed: 1 addition & 1 deletion
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 CS.out.standstill and frame % 5 == 0:
31+
if CS.out.cruiseState.standstill 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 20hz if we're engaged at standstill to support full stop and go!
3434
# TODO: improve the resume trigger logic by looking at actual radar data

0 commit comments

Comments
 (0)