Mazda: log standstill bit (#24923)

* set standstill bit for mazda

* use bit in carcontroller

* Revert "use bit in carcontroller"

This reverts commit f38210a191.
old-commit-hash: bd782c982f
taco
Shane Smiskol 3 years ago committed by GitHub
parent 2f35ca57b1
commit 6b4b173f5e
  1. 1
      selfdrive/car/mazda/carstate.py

@ -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:

Loading…
Cancel
Save