From 543250a0d5621b1ab6afc5222c5d88fe5e67d20f Mon Sep 17 00:00:00 2001 From: firestar5683 <168790843+firestar5683@users.noreply.github.com> Date: Wed, 22 Oct 2025 23:26:29 -0500 Subject: [PATCH] follow filter update --- selfdrive/controls/lib/longitudinal_mpc_lib/long_mpc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/controls/lib/longitudinal_mpc_lib/long_mpc.py b/selfdrive/controls/lib/longitudinal_mpc_lib/long_mpc.py index 419a53c1c..a7ae314c8 100644 --- a/selfdrive/controls/lib/longitudinal_mpc_lib/long_mpc.py +++ b/selfdrive/controls/lib/longitudinal_mpc_lib/long_mpc.py @@ -376,10 +376,10 @@ class LongitudinalMpc: self.current_dist_adapt = get_speed_based_param(speed_mph, dist_adapt_array) # Update filter time constants with interp and recreate filters if needed - if speed_mph < 35: + if speed_mph < 47: self.current_filter_time = 0.0 else: - self.current_filter_time = interp(speed_mph, [35, 45], [0.0, LEAD_FILTER_TIME_HIGH]) + self.current_filter_time = interp(speed_mph, [47, 65], [0.0, LEAD_FILTER_TIME_HIGH]) if abs(self.current_filter_time - getattr(self, 'prev_filter_time', 0)) > 0.1: # Only update if significant change # Recreate filters with new time constant while preserving current values current_a = self.lead_a_filter.x if hasattr(self.lead_a_filter, 'x') else 0.0