diff --git a/EKF/ekf.cpp b/EKF/ekf.cpp index 547b447545..beeca470b1 100644 --- a/EKF/ekf.cpp +++ b/EKF/ekf.cpp @@ -77,10 +77,10 @@ Ekf::Ekf(): _last_known_posNE.setZero(); _earth_rate_NED.setZero(); _R_prev = matrix::Dcm(); - _vel_pos_innov = {}; - _mag_innov = {}; - _vel_pos_innov_var = {}; - _mag_innov_var = {}; + _vel_pos_innov = {0}; + _mag_innov = {0}; + _vel_pos_innov_var = {0}; + _mag_innov_var = {0}; _delta_angle_corr.setZero(); _delta_vel_corr.setZero(); _vel_corr.setZero(); diff --git a/EKF/estimator_interface.cpp b/EKF/estimator_interface.cpp index 2dbff4ada7..3bfeb7b64d 100644 --- a/EKF/estimator_interface.cpp +++ b/EKF/estimator_interface.cpp @@ -69,8 +69,8 @@ EstimatorInterface::EstimatorInterface(): _mag_declination_to_save_deg(0.0f) { _pos_ref = {}; - _mag_test_ratio = {}; - _vel_pos_test_ratio = {}; + _mag_test_ratio = {0}; + _vel_pos_test_ratio = {0}; } EstimatorInterface::~EstimatorInterface()