mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 22:23:33 +08:00
EKF: Clean up terrain estimation functionality.
This is a functionally equivalent. It moves all of the code for the terrain estimator into a single function call from the main filter update, making it clear that it is independent of the main filter.
This commit is contained in:
+2
-8
@@ -214,14 +214,8 @@ bool Ekf::update()
|
||||
predictState();
|
||||
predictCovariance();
|
||||
|
||||
// perform state and variance prediction for the terrain estimator
|
||||
checkRangeDataContinuity();
|
||||
if (!_terrain_initialised) {
|
||||
_terrain_initialised = initHagl();
|
||||
|
||||
} else {
|
||||
predictHagl();
|
||||
}
|
||||
// run a separate filter for terrain estimation
|
||||
runTerrainEstimator();
|
||||
|
||||
// control fusion of observation data
|
||||
controlFusionModes();
|
||||
|
||||
Reference in New Issue
Block a user