|
|
@ -79,6 +79,7 @@ class CarState(CarStateBase): |
|
|
|
# it should be used for carState.cruiseState.nonAdaptive instead |
|
|
|
# it should be used for carState.cruiseState.nonAdaptive instead |
|
|
|
ret.cruiseState.available = cp.vl["CRZ_CTRL"]["CRZ_AVAILABLE"] == 1 |
|
|
|
ret.cruiseState.available = cp.vl["CRZ_CTRL"]["CRZ_AVAILABLE"] == 1 |
|
|
|
ret.cruiseState.enabled = cp.vl["CRZ_CTRL"]["CRZ_ACTIVE"] == 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 |
|
|
|
ret.cruiseState.speed = cp.vl["CRZ_EVENTS"]["CRZ_SPEED"] * CV.KPH_TO_MS |
|
|
|
|
|
|
|
|
|
|
|
if ret.cruiseState.enabled: |
|
|
|
if ret.cruiseState.enabled: |
|
|
|