mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 07:53:33 +08:00
add boolean parameters to enable/disable each sensor
This commit is contained in:
committed by
Lorenz Meier
parent
e1e3c9fca9
commit
9fde19259e
@@ -65,6 +65,14 @@ PARAM_DEFINE_INT32(CAL_MAG_SIDES, 63);
|
||||
*/
|
||||
PARAM_DEFINE_INT32(CAL_MAG0_ID, 0);
|
||||
|
||||
/**
|
||||
* Mag 0 enabled
|
||||
*
|
||||
* @boolean
|
||||
* @group Sensor Calibration
|
||||
*/
|
||||
PARAM_DEFINE_INT32(CAL_MAG0_EN, 1);
|
||||
|
||||
/**
|
||||
* Rotation of magnetometer 0 relative to airframe.
|
||||
*
|
||||
@@ -156,6 +164,14 @@ PARAM_DEFINE_FLOAT(CAL_MAG0_ZSCALE, 1.0f);
|
||||
*/
|
||||
PARAM_DEFINE_INT32(CAL_MAG1_ID, 0);
|
||||
|
||||
/**
|
||||
* Mag 1 enabled
|
||||
*
|
||||
* @boolean
|
||||
* @group Sensor Calibration
|
||||
*/
|
||||
PARAM_DEFINE_INT32(CAL_MAG1_EN, 1);
|
||||
|
||||
/**
|
||||
* Rotation of magnetometer 1 relative to airframe.
|
||||
*
|
||||
@@ -247,6 +263,14 @@ PARAM_DEFINE_FLOAT(CAL_MAG1_ZSCALE, 1.0f);
|
||||
*/
|
||||
PARAM_DEFINE_INT32(CAL_MAG2_ID, 0);
|
||||
|
||||
/**
|
||||
* Mag 2 enabled
|
||||
*
|
||||
* @boolean
|
||||
* @group Sensor Calibration
|
||||
*/
|
||||
PARAM_DEFINE_INT32(CAL_MAG2_EN, 1);
|
||||
|
||||
/**
|
||||
* Rotation of magnetometer 2 relative to airframe.
|
||||
*
|
||||
@@ -340,6 +364,14 @@ PARAM_DEFINE_FLOAT(CAL_MAG2_ZSCALE, 1.0f);
|
||||
*/
|
||||
PARAM_DEFINE_INT32(CAL_MAG3_ID, 0);
|
||||
|
||||
/**
|
||||
* Mag 3 enabled
|
||||
*
|
||||
* @boolean
|
||||
* @group Sensor Calibration
|
||||
*/
|
||||
PARAM_DEFINE_INT32(CAL_MAG3_EN, 1);
|
||||
|
||||
/**
|
||||
* Rotation of magnetometer 2 relative to airframe.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user