mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-13 04:57:34 +08:00
EKF: Fix bad limit on magnetometer noise parameter
This commit is contained in:
+1
-1
@@ -55,7 +55,7 @@ void Ekf::fuseMag()
|
||||
float magD = _state.mag_I(2);
|
||||
|
||||
// XYZ Measurement uncertainty. Need to consider timing errors for fast rotations
|
||||
float R_MAG = fmaxf(_params.mag_noise, 1.0);
|
||||
float R_MAG = fmaxf(_params.mag_noise, 0.0f);
|
||||
R_MAG = R_MAG * R_MAG;
|
||||
|
||||
// intermediate variables from algebraic optimisation
|
||||
|
||||
Reference in New Issue
Block a user