sensors: add SENS_MAG_MODE to optionally publish all magnetometers

This commit is contained in:
Daniel Agar
2020-09-15 10:15:39 -04:00
parent a04412fc1f
commit dc507ee544
3 changed files with 119 additions and 61 deletions
+12
View File
@@ -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);