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