From 21e773414906caf754b080540c01f5c44546ecbc Mon Sep 17 00:00:00 2001 From: Paul Riseborough Date: Tue, 14 Mar 2017 22:23:21 +1100 Subject: [PATCH] EKF: fix compile error --- EKF/ekf_helper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EKF/ekf_helper.cpp b/EKF/ekf_helper.cpp index 7c1b9e41d1..2ad3b86773 100644 --- a/EKF/ekf_helper.cpp +++ b/EKF/ekf_helper.cpp @@ -797,7 +797,7 @@ void Ekf::get_ekf_vel_accuracy(float *ekf_evh, float *ekf_evv, bool *dead_reckon // The reason is that complete rejection of measurements is often be casued by heading misalignment or inertial sensing errors // and using state variances for accuracy reporting provides an overly optimistic assessment in these situations float vel_err_alt = 0.0f; - if (dead_reckoning) { + if (is_dead_reckoning) { if (_control_status.flags.opt_flow) { float gndclearance = math::max(_params.rng_gnd_clearance, 0.1f); vel_err_alt = math::max((_terrain_vpos - _state.pos(2)), gndclearance) * sqrtf(_flow_innov[0]*_flow_innov[0] + _flow_innov[1]*_flow_innov[1]);