diff --git a/src/modules/ekf2/EKF/terrain_estimator.cpp b/src/modules/ekf2/EKF/terrain_estimator.cpp index 3a1b4d072f..9ba6db7242 100644 --- a/src/modules/ekf2/EKF/terrain_estimator.cpp +++ b/src/modules/ekf2/EKF/terrain_estimator.cpp @@ -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();