forked from Archive/PX4-Autopilot
mag reset: do not stop the fusion from inside the reset function
The start/stop is already handled in the dedicated mag control logic The early return is not required as this case is handled just below
This commit is contained in:
parent
6248646bff
commit
cadcc58415
|
@ -487,11 +487,6 @@ bool Ekf::resetMagHeading(const Vector3f &mag_init, bool increase_yaw_var, bool
|
|||
return true;
|
||||
}
|
||||
|
||||
if (_params.mag_fusion_type >= MAG_FUSE_TYPE_NONE) {
|
||||
stopMagFusion();
|
||||
return false;
|
||||
}
|
||||
|
||||
// calculate the observed yaw angle and yaw variance
|
||||
float yaw_new;
|
||||
float yaw_new_variance = 0.0f;
|
||||
|
|
Loading…
Reference in New Issue