Browse Source

terrain estimator: pass initialisation return value correctly

Signed-off-by: Roman <bapstroman@gmail.com>
master
Roman 9 years ago
parent
commit
cc05db4985
  1. 4
      EKF/ekf.cpp

4
EKF/ekf.cpp

@ -411,8 +411,8 @@ bool Ekf::initialiseFilter(void) @@ -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;

Loading…
Cancel
Save