From 1782718b61891d87cbb9daa1c4c65314f505cee4 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Mon, 2 Jun 2025 14:17:29 -0700 Subject: [PATCH] disable in release --- selfdrive/locationd/lagd.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/selfdrive/locationd/lagd.py b/selfdrive/locationd/lagd.py index 4e207b4882..768c77ec78 100755 --- a/selfdrive/locationd/lagd.py +++ b/selfdrive/locationd/lagd.py @@ -173,6 +173,9 @@ class LateralLagEstimator: self.max_lat_accel = max_lat_accel self.max_lat_accel_diff = max_lat_accel_diff + # TODO: remove me, lagd is in shadow mode on release + self.is_release = Params().get_bool("IsReleaseBranch") + self.t = 0.0 self.lat_active = False self.steering_pressed = False @@ -214,6 +217,9 @@ class LateralLagEstimator: else: liveDelay.status = log.LiveDelayData.Status.unestimated + if self.is_release: + liveDelay.status = log.LiveDelayData.Status.unestimated + if liveDelay.status == log.LiveDelayData.Status.estimated: liveDelay.lateralDelay = valid_mean_lag else: