ekf2: Add mavlink adjustable parameters for control of magnetometer fusion

This commit is contained in:
Paul Riseborough
2016-02-15 12:52:49 +01:00
committed by tumbili
parent 384ab209fc
commit 2ca48037fd
2 changed files with 31 additions and 0 deletions
+26
View File
@@ -326,6 +326,32 @@ PARAM_DEFINE_FLOAT(EKF2_HDG_GATE, 3.0f);
*/
PARAM_DEFINE_FLOAT(EKF2_MAG_GATE, 3.0f);
/**
* Integer bitmask controlling handling of magnetic declination. Set bits to in the following positions to enable functions.
* 0 : Set to true to use the declination from the geo_lookup library when the GPS position becomes available, set to false to always use the EKF2_MAG_DECL value.
* 1 : Set to true to save the EKF2_MAG_DECL parameter to the value returned by the EKF when the vehicle disarms.
* 2 : Set to true to always use the declination as an observaton when 3-axis magnetometer fusion is being used.
*
* @group EKF2
* @min 0
* @max 7
* @unit
*/
PARAM_DEFINE_INT32(EKF2_DECL_TYPE, 7);
/**
* Integer controlling the type of magnetometer fusion used - magnetic heading or 3-axis magnetometer.
* 0 : determine the best fusion method to use automatically - heading fusion on-ground and 3-axis fusion in-flight
* 1 : always use magnetic heading fusion
* 2 : always use 3-axis fusion
* Other values will disable magnetometer fusion completely
* @group EKF2
* @min 0
* @max 2
* @unit None
*/
PARAM_DEFINE_INT32(EKF2_MAG_TYPE, 0);
/**
* Gate size for barometric height fusion
*