mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-25 16:40:36 +08:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user