diff --git a/src/modules/ekf2/EKF/ekf.h b/src/modules/ekf2/EKF/ekf.h index a7c43567df..d9ff978e20 100644 --- a/src/modules/ekf2/EKF/ekf.h +++ b/src/modules/ekf2/EKF/ekf.h @@ -294,17 +294,17 @@ public: // return true if the local position estimate is valid bool local_position_is_valid() const { - return (!_horizontal_deadreckon_time_exceeded && !_control_status.flags.fake_pos); + return !_horizontal_deadreckon_time_exceeded; } bool isLocalVerticalPositionValid() const { - return !_vertical_position_deadreckon_time_exceeded && !_control_status.flags.fake_hgt; + return !_vertical_position_deadreckon_time_exceeded; } bool isLocalVerticalVelocityValid() const { - return !_vertical_velocity_deadreckon_time_exceeded && !_control_status.flags.fake_hgt; + return !_vertical_velocity_deadreckon_time_exceeded; } bool isYawFinalAlignComplete() const