From 7718d6f7ece1f1d4d42f544383bc93e009ff56a9 Mon Sep 17 00:00:00 2001 From: Dean Lee Date: Fri, 28 Jun 2024 05:43:21 +0800 Subject: [PATCH] radard: readable KalmanParams initialization (#32848) fix kalmanparams initialization bug old-commit-hash: 649e7a6d558b33d05d63012a43b2e4af88262b4c --- selfdrive/controls/radard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/controls/radard.py b/selfdrive/controls/radard.py index 7420f666f7..ac3ec97dcc 100755 --- a/selfdrive/controls/radard.py +++ b/selfdrive/controls/radard.py @@ -37,7 +37,7 @@ class KalmanParams: #Q = np.matrix([[10., 0.0], [0.0, 100.]]) #R = 1e3 #K = np.matrix([[ 0.05705578], [ 0.03073241]]) - dts = [dt * 0.01 for dt in range(1, 21)] + dts = [i * 0.01 for i in range(1, 21)] K0 = [0.12287673, 0.14556536, 0.16522756, 0.18281627, 0.1988689, 0.21372394, 0.22761098, 0.24069424, 0.253096, 0.26491023, 0.27621103, 0.28705801, 0.29750003, 0.30757767, 0.31732515, 0.32677158, 0.33594201, 0.34485814,