diff --git a/EKF/ekf_helper.cpp b/EKF/ekf_helper.cpp index 0f39a9aec9..68d01bfbf2 100644 --- a/EKF/ekf_helper.cpp +++ b/EKF/ekf_helper.cpp @@ -503,7 +503,7 @@ bool Ekf::resetMagHeading(const Vector3f &mag_init, bool increase_yaw_var, bool yaw_new_variance = sq(fmaxf(_params.mag_heading_noise, 1.0e-2f)); } - } else if (_params.mag_fusion_type == MAG_FUSE_TYPE_INDOOR && _is_yaw_fusion_inhibited) { + } else if (_params.mag_fusion_type == MAG_FUSE_TYPE_INDOOR) { // we are operating temporarily without knowing the earth frame yaw angle return true;