fix standstill

This commit is contained in:
MoreTore
2025-05-21 10:28:45 -05:00
parent 295f246455
commit 79a43e3ec1
+1 -1
View File
@@ -208,7 +208,7 @@ class CarState(CarStateBase):
ret.cruiseState.speed = cp.vl["CRUZE_STATE"]["CRZ_SPEED"] * unit_conversion
ret.cruiseState.enabled = (cp.vl["CRUZE_STATE"]["CRZ_STATE"] >= 2)
ret.cruiseState.available = (cp.vl["CRUZE_STATE"]["CRZ_STATE"] != 0)
ret.cruiseState.standstill = ret.standstill
ret.cruiseState.standstill = ret.standstill if not self.CP.openpilotLongitudinalControl else False
self.cp = cp
self.cp_cam = cp_cam