ekf_terr: reset rng fault when on ground

This commit is contained in:
bresch
2022-02-11 10:57:45 -05:00
committed by Daniel Agar
parent 502ec7ef46
commit 493e35b72e
@@ -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();