mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-15 22:32:11 +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: bd782c982f17221a33b660d82dab7aa297e10c60
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