From aa07ba17fdb8aff50187f5f759c2064845bb7a60 Mon Sep 17 00:00:00 2001 From: miguel Date: Tue, 3 Jan 2023 11:51:29 +0100 Subject: [PATCH] FIX: code error reset bug --- src/algorithms/tracking/gnuradio_blocks/kf_tracking.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/algorithms/tracking/gnuradio_blocks/kf_tracking.cc b/src/algorithms/tracking/gnuradio_blocks/kf_tracking.cc index a0379c43d..4ab28257d 100644 --- a/src/algorithms/tracking/gnuradio_blocks/kf_tracking.cc +++ b/src/algorithms/tracking/gnuradio_blocks/kf_tracking.cc @@ -1216,7 +1216,7 @@ void kf_tracking::run_Kf() // Kalman loop // Prediction - d_x_old_old(0)=0; // reset error estimation because the NCO corrects the code phase + //d_x_old_old(0)=0; // reset error estimation because the NCO corrects the code phase d_x_new_old = d_F * d_x_old_old; d_P_new_old = d_F * d_P_old_old * d_F.t() + d_Q; @@ -1231,7 +1231,7 @@ void kf_tracking::run_Kf() // new code phase estimation d_code_error_kf_chips = d_x_new_new(0); - + d_x_new_new(0)=0; // reset error estimation because the NCO corrects the code phase // new carrier phase estimation d_carrier_phase_kf_rad = d_x_new_new(1);