Mazda: log standstill bit (#24923)

* set standstill bit for mazda

* use bit in carcontroller

* Revert "use bit in carcontroller"

This reverts commit f38210a191bcd6e34ff81626e857f778207a55e7.
old-commit-hash: bd782c982f17221a33b660d82dab7aa297e10c60
This commit is contained in:
Shane Smiskol
2022-06-20 23:23:14 -07:00
committed by GitHub
parent 2f35ca57b1
commit 6b4b173f5e
+1
View File
@@ -79,6 +79,7 @@ class CarState(CarStateBase):
# it should be used for carState.cruiseState.nonAdaptive instead
ret.cruiseState.available = cp.vl["CRZ_CTRL"]["CRZ_AVAILABLE"] == 1
ret.cruiseState.enabled = cp.vl["CRZ_CTRL"]["CRZ_ACTIVE"] == 1
ret.cruiseState.standstill = cp.vl["PEDALS"]["STANDSTILL"] == 1
ret.cruiseState.speed = cp.vl["CRZ_EVENTS"]["CRZ_SPEED"] * CV.KPH_TO_MS
if ret.cruiseState.enabled: