From 22350cd81cd67142cb34d99aae96a8b8f327b784 Mon Sep 17 00:00:00 2001 From: MoreTore Date: Thu, 3 Jul 2025 23:04:37 -0500 Subject: [PATCH] fix gen 1 standstill --- selfdrive/car/mazda/carstate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/car/mazda/carstate.py b/selfdrive/car/mazda/carstate.py index 064f7d697..83a00a484 100644 --- a/selfdrive/car/mazda/carstate.py +++ b/selfdrive/car/mazda/carstate.py @@ -124,7 +124,7 @@ class CarState(CarStateBase): # TODO: the signal used for available seems to be the adaptive cruise signal, instead of the main on # it should be used for carState.cruiseState.nonAdaptive instead - ret.cruiseState.standstill = cp.vl["PEDALS"]["STANDSTILL"] == 1 + ret.cruiseState.standstill = ret.standstill ret.cruiseState.speed = cp.vl["CRZ_EVENTS"]["CRZ_SPEED"] * CV.KPH_TO_MS if self.CP.flags & MazdaFlags.RADAR_INTERCEPTOR: self.crz_info = copy.copy(cp_cam.vl["CRZ_INFO"])