mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-05 09:21:36 +08:00
ekf2-mag: do not limit the earth mag field estimate
The EKF can recover from an initial bad earth mag field estimate. Constraining the field is not necessary and can lead to an unpredicted behavior of the filter. Declination fusion is safe to run even when the horizontal field is 0
This commit is contained in:
@@ -763,8 +763,6 @@ private:
|
||||
// argument passed in is the declination uncertainty in radians
|
||||
bool fuseDeclination(float decl_sigma);
|
||||
|
||||
// apply sensible limits to the declination and length of the NE mag field states estimates
|
||||
void limitDeclination();
|
||||
#endif // CONFIG_EKF2_MAGNETOMETER
|
||||
|
||||
#if defined(CONFIG_EKF2_AIRSPEED)
|
||||
|
||||
Reference in New Issue
Block a user