mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-18 10:00:35 +08:00
terrain estimator: pass initialisation return value correctly
Signed-off-by: Roman <bapstroman@gmail.com>
This commit is contained in:
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user