forked from Archive/PX4-Autopilot
mag reset: force align in MC custom mode (aka. indoor mode)
Checking the parameter is enough to decide if we want to force the yaw alignment or not
This commit is contained in:
parent
cadcc58415
commit
fe943cf104
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue