terrain estimator: pass initialisation return value correctly

Signed-off-by: Roman <bapstroman@gmail.com>
This commit is contained in:
Roman
2016-09-20 14:07:50 +02:00
parent 7240fc78fe
commit cc05db4985
+2 -2
View File
@@ -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;