mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-08-05 00:05:59 +08:00
fix gen 1 standstill
This commit is contained in:
@@ -124,7 +124,7 @@ class CarState(CarStateBase):
|
||||
|
||||
# TODO: the signal used for available seems to be the adaptive cruise signal, instead of the main on
|
||||
# it should be used for carState.cruiseState.nonAdaptive instead
|
||||
ret.cruiseState.standstill = cp.vl["PEDALS"]["STANDSTILL"] == 1
|
||||
ret.cruiseState.standstill = ret.standstill
|
||||
ret.cruiseState.speed = cp.vl["CRZ_EVENTS"]["CRZ_SPEED"] * CV.KPH_TO_MS
|
||||
if self.CP.flags & MazdaFlags.RADAR_INTERCEPTOR:
|
||||
self.crz_info = copy.copy(cp_cam.vl["CRZ_INFO"])
|
||||
|
||||
Reference in New Issue
Block a user