From b1efbc48b29feb39ef807ea2227d21c82c83bd71 Mon Sep 17 00:00:00 2001 From: Jason Wen <47793918+sunnyhaibin@users.noreply.github.com> Date: Tue, 21 Mar 2023 14:52:08 -0400 Subject: [PATCH] MADS: initialize set speed when in override state (#56) --- selfdrive/controls/controlsd.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/selfdrive/controls/controlsd.py b/selfdrive/controls/controlsd.py index 6807ee978f..da7a88cb46 100755 --- a/selfdrive/controls/controlsd.py +++ b/selfdrive/controls/controlsd.py @@ -567,6 +567,8 @@ class Controls: self.state = State.enabled else: self.current_alert_types += [ET.OVERRIDE_LATERAL, ET.OVERRIDE_LONGITUDINAL] + if CS.cruiseState.enabled and not self.CS_prev.cruiseState.enabled: + self.v_cruise_helper.initialize_v_cruise(CS, self.experimental_mode) # DISABLED elif self.state == State.disabled: