Browse Source

ekf_terr: reset rng fault when on ground

master
bresch 3 years ago committed by Daniel Agar
parent
commit
493e35b72e
  1. 1
      src/modules/ekf2/EKF/terrain_estimator.cpp

1
src/modules/ekf2/EKF/terrain_estimator.cpp

@ -53,6 +53,7 @@ void Ekf::runTerrainEstimator() @@ -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();

Loading…
Cancel
Save