From 7dcb922b9fcca8f0aaa4e39149c64a98f83ec9e2 Mon Sep 17 00:00:00 2001 From: miguekf Date: Thu, 8 Dec 2022 13:57:04 +0100 Subject: [PATCH] fix: buf in kf_H declaration dim --- src/algorithms/PVT/libs/vtl_engine.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/algorithms/PVT/libs/vtl_engine.cc b/src/algorithms/PVT/libs/vtl_engine.cc index 25e322509..94fd7ea06 100755 --- a/src/algorithms/PVT/libs/vtl_engine.cc +++ b/src/algorithms/PVT/libs/vtl_engine.cc @@ -51,8 +51,7 @@ bool Vtl_Engine::vtl_loop(Vtl_Data& new_data) kf_F(6, 6) = 1.0; kf_F(6, 7) = kf_dt; kf_F(7, 7) = 1.0; - kf_H = arma::zeros(8, 2*new_data.sat_number); - kf_x = arma::zeros(8, 1); + kf_H = arma::zeros(2*new_data.sat_number,8); kf_y = arma::zeros(2*new_data.sat_number, 1); kf_yerr = arma::zeros(2*new_data.sat_number, 1); kf_xerr = arma::zeros(8, 1);