From cc05db4985511b2774b32a738481e5bc19dee0b1 Mon Sep 17 00:00:00 2001 From: Roman Date: Tue, 20 Sep 2016 14:07:50 +0200 Subject: [PATCH] terrain estimator: pass initialisation return value correctly Signed-off-by: Roman --- EKF/ekf.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EKF/ekf.cpp b/EKF/ekf.cpp index 14a1e26fa0..25f721aafd 100644 --- a/EKF/ekf.cpp +++ b/EKF/ekf.cpp @@ -411,8 +411,8 @@ bool Ekf::initialiseFilter(void) // initialise the state covariance matrix initialiseCovariance(); - // initialise the terrain estimator - initHagl(); + // try to initialise the terrain estimator + _terrain_initialised = initHagl(); // reset the essential fusion timeout counters _time_last_hgt_fuse = _time_last_imu;