system_params: add SYS_HAS_MAG and SYS_HAS_BARO params

This allows to use PX4 on systems that do not have a mag or a baro,
such as the Omnibus F4 SD.
This commit is contained in:
Beat Küng
2018-05-11 10:55:12 +02:00
committed by Lorenz Meier
parent f754d092f8
commit f2516bbf5f
3 changed files with 38 additions and 2 deletions
+29
View File
@@ -248,3 +248,32 @@ PARAM_DEFINE_INT32(SYS_CAL_TMIN, 5);
* @group System
*/
PARAM_DEFINE_INT32(SYS_CAL_TMAX, 10);
/**
* Control if the vehicle has a magnetometer
*
* Disable this if the board has no magnetometer, such as the Omnibus F4 SD.
* If disabled, the preflight checks will not check for the presence of a
* magnetometer.
*
* @boolean
* @reboot_required true
*
* @group System
*/
PARAM_DEFINE_INT32(SYS_HAS_MAG, 1);
/**
* Control if the vehicle has a barometer
*
* Disable this if the board has no barometer, such as some of the the Omnibus
* F4 SD variants.
* If disabled, the preflight checks will not check for the presence of a
* barometer.
*
* @boolean
* @reboot_required true
*
* @group System
*/
PARAM_DEFINE_INT32(SYS_HAS_BARO, 1);