mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-08-05 00:05:59 +08:00
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: bd782c982f
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user