Fix stock ACC resume signal (#35691)

* use this

* missing

* clean up
test_cc
Shane Smiskol 3 days ago committed by GitHub
parent be4e995d9b
commit 67dc69d3db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      selfdrive/controls/controlsd.py

@ -148,10 +148,7 @@ class Controls:
CC.cruiseControl.override = CC.enabled and not CC.longActive and self.CP.openpilotLongitudinalControl
CC.cruiseControl.cancel = CS.cruiseState.enabled and (not CC.enabled or not self.CP.pcmCruise)
speeds = self.sm['longitudinalPlan'].speeds
if len(speeds):
CC.cruiseControl.resume = CC.enabled and CS.cruiseState.standstill and speeds[-1] > 0.1
CC.cruiseControl.resume = CC.enabled and CS.cruiseState.standstill and not self.sm['longitudinalPlan'].shouldStop
hudControl = CC.hudControl
hudControl.setSpeed = float(CS.vCruiseCluster * CV.KPH_TO_MS)

Loading…
Cancel
Save