From b1c12dedc76017c6afa5b99c83c985595a9b7816 Mon Sep 17 00:00:00 2001 From: Jason Wen <47793918+sunnyhaibin@users.noreply.github.com> Date: Wed, 29 Mar 2023 21:28:43 -0400 Subject: [PATCH] MADS: enforce longitudinal allowed check on auto-resume (#66) * bump panda * MADS: enforce long allowed on auto-resume --- panda | 2 +- selfdrive/controls/controlsd.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/panda b/panda index e8ac289e1c4adb..506cb0b01dc91f 160000 --- a/panda +++ b/panda @@ -1 +1 @@ -Subproject commit e8ac289e1c4adb40ce217dc1f9259b2f093263a9 +Subproject commit 506cb0b01dc91f82ba7648548a5943cc3951db2d diff --git a/selfdrive/controls/controlsd.py b/selfdrive/controls/controlsd.py index da7a88cb465d21..0fb2f8de0e51a7 100755 --- a/selfdrive/controls/controlsd.py +++ b/selfdrive/controls/controlsd.py @@ -732,7 +732,7 @@ def publish_logs(self, CS, start_time, CC, lac_log): speeds = self.sm['longitudinalPlan'].speeds if len(speeds): - CC.cruiseControl.resume = self.enabled and CS.cruiseState.standstill and speeds[-1] > 0.1 + CC.cruiseControl.resume = self.enabled_long and CS.cruiseState.standstill and speeds[-1] > 0.1 CC.vCruise = float(self.v_cruise_helper.v_cruise_kph) hudControl = CC.hudControl