AP_Periph: add define for BARO_ENABLE
This commit is contained in:
parent
dc8df8f147
commit
2ea33324a0
@ -33,6 +33,10 @@ extern const AP_HAL::HAL &hal;
|
|||||||
#define AP_PERIPH_ESC_TELEM_PORT_DEFAULT -1
|
#define AP_PERIPH_ESC_TELEM_PORT_DEFAULT -1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef AP_PERIPH_BARO_ENABLE_DEFAULT
|
||||||
|
#define AP_PERIPH_BARO_ENABLE_DEFAULT 1
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef HAL_DEFAULT_MAV_SYSTEM_ID
|
#ifndef HAL_DEFAULT_MAV_SYSTEM_ID
|
||||||
#define MAV_SYSTEM_ID 3
|
#define MAV_SYSTEM_ID 3
|
||||||
#else
|
#else
|
||||||
@ -201,7 +205,7 @@ const AP_Param::Info AP_Periph_FW::var_info[] = {
|
|||||||
// @Description: Barometer Enable
|
// @Description: Barometer Enable
|
||||||
// @Values: 0:Disabled, 1:Enabled
|
// @Values: 0:Disabled, 1:Enabled
|
||||||
// @User: Standard
|
// @User: Standard
|
||||||
GSCALAR(baro_enable, "BARO_ENABLE", 1),
|
GSCALAR(baro_enable, "BARO_ENABLE", AP_PERIPH_BARO_ENABLE_DEFAULT),
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef AP_PERIPH_HAVE_LED_WITHOUT_NOTIFY
|
#ifdef AP_PERIPH_HAVE_LED_WITHOUT_NOTIFY
|
||||||
|
Loading…
Reference in New Issue
Block a user