mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-13 21:13:34 +08:00
ekf_terr: reset rng fault when on ground
This commit is contained in:
@@ -53,6 +53,7 @@ void Ekf::runTerrainEstimator()
|
||||
// If we are on ground, store the local position and time to use as a reference
|
||||
if (!_control_status.flags.in_air) {
|
||||
_last_on_ground_posD = _state.pos(2);
|
||||
_control_status.flags.rng_fault = false;
|
||||
}
|
||||
|
||||
predictHagl();
|
||||
|
||||
Reference in New Issue
Block a user