From c3861945dd0e0431e47e97b4221a9dd60fdc13ad Mon Sep 17 00:00:00 2001 From: MoreTore Date: Sun, 11 May 2025 23:23:26 -0500 Subject: [PATCH] put this back --- selfdrive/controls/controlsd.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/selfdrive/controls/controlsd.py b/selfdrive/controls/controlsd.py index e0588ea3f..5ecff1ccd 100755 --- a/selfdrive/controls/controlsd.py +++ b/selfdrive/controls/controlsd.py @@ -150,9 +150,8 @@ class Controls: CC.cruiseControl.cancel = CS.cruiseState.enabled and (not CC.enabled or not self.CP.pcmCruise) speeds = self.sm['longitudinalPlan'].speeds - should_stop = not self.sm['longitudinalPlan'].shouldStop if len(speeds): - CC.cruiseControl.resume = CC.enabled and CS.cruiseState.standstill and not should_stop + CC.cruiseControl.resume = CC.enabled and CS.cruiseState.standstill and speeds[-1] > 0.1 hudControl = CC.hudControl hudControl.setSpeed = float(CS.vCruiseCluster * CV.KPH_TO_MS)