mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 06:43:33 +08:00
sensors: add SENS_MAG_MODE to optionally publish all magnetometers
This commit is contained in:
@@ -93,3 +93,15 @@ PARAM_DEFINE_INT32(CAL_MAG_ROT_AUTO, 1);
|
||||
*
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(SENS_MAG_RATE, 50.0f);
|
||||
|
||||
/**
|
||||
* Sensors hub mag mode
|
||||
*
|
||||
* @value 0 Publish all magnetometers
|
||||
* @value 1 Publish primary magnetometer
|
||||
*
|
||||
* @category system
|
||||
* @reboot_required true
|
||||
* @group Sensors
|
||||
*/
|
||||
PARAM_DEFINE_INT32(SENS_MAG_MODE, 1);
|
||||
|
||||
Reference in New Issue
Block a user