move to cam

pull/23307/head
vanillagorillaa 4 years ago
parent d0c9494330
commit 348a3d29dd
  1. 4
      selfdrive/car/honda/carstate.py

@ -271,6 +271,10 @@ class CarState(CarStateBase):
if self.CP.carFingerprint in HONDA_BOSCH or self.CP.carFingerprint in HONDA_RADARLESS:
if not self.CP.openpilotLongitudinalControl:
if self.CP.carFingerprint in (CAR.CIVIC_22):
ret.cruiseState.nonAdaptive = cp_cam.vl["ACC_HUD"]["CRUISE_CONTROL_LABEL"] != 0
ret.cruiseState.standstill = cp_cam.vl["ACC_HUD"]["CRUISE_SPEED"] == 252.
else:
ret.cruiseState.nonAdaptive = cp.vl["ACC_HUD"]["CRUISE_CONTROL_LABEL"] != 0
ret.cruiseState.standstill = cp.vl["ACC_HUD"]["CRUISE_SPEED"] == 252.

Loading…
Cancel
Save