From 7b1b255158303a7e08467107dd804c197435e546 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Fri, 12 Jan 2018 15:49:02 -0500 Subject: [PATCH] EKF2 set zero unused estimator_status fields --- src/modules/ekf2/ekf2_main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/ekf2/ekf2_main.cpp b/src/modules/ekf2/ekf2_main.cpp index 2e2697b692..393d5960a2 100644 --- a/src/modules/ekf2/ekf2_main.cpp +++ b/src/modules/ekf2/ekf2_main.cpp @@ -1102,6 +1102,9 @@ void Ekf2::run() _ekf.get_ekf_soln_status(&status.solution_status_flags); _ekf.get_imu_vibe_metrics(status.vibe); status.time_slip = _last_time_slip_us / 1e6f; + status.nan_flags = 0.0f; // unused + status.health_flags = 0.0f; // unused + status.timeout_flags = 0.0f; // unused status.pre_flt_fail = _preflt_fail; if (_estimator_status_pub == nullptr) {