From f38210a191bcd6e34ff81626e857f778207a55e7 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Mon, 20 Jun 2022 22:39:43 -0700 Subject: [PATCH] use bit in carcontroller --- 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 d003079d63..5a3aca3975 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 CS.out.standstill and frame % 5 == 0: + if CS.out.cruiseState.standstill 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 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