Browse Source

AP_Periph: add define for BARO_ENABLE

gps-1.3.1
Joshua Henderson 3 years ago committed by Andrew Tridgell
parent
commit
2ea33324a0
  1. 6
      Tools/AP_Periph/Parameters.cpp

6
Tools/AP_Periph/Parameters.cpp

@ -33,6 +33,10 @@ extern const AP_HAL::HAL &hal; @@ -33,6 +33,10 @@ extern const AP_HAL::HAL &hal;
#define AP_PERIPH_ESC_TELEM_PORT_DEFAULT -1
#endif
#ifndef AP_PERIPH_BARO_ENABLE_DEFAULT
#define AP_PERIPH_BARO_ENABLE_DEFAULT 1
#endif
#ifndef HAL_DEFAULT_MAV_SYSTEM_ID
#define MAV_SYSTEM_ID 3
#else
@ -201,7 +205,7 @@ const AP_Param::Info AP_Periph_FW::var_info[] = { @@ -201,7 +205,7 @@ const AP_Param::Info AP_Periph_FW::var_info[] = {
// @Description: Barometer Enable
// @Values: 0:Disabled, 1:Enabled
// @User: Standard
GSCALAR(baro_enable, "BARO_ENABLE", 1),
GSCALAR(baro_enable, "BARO_ENABLE", AP_PERIPH_BARO_ENABLE_DEFAULT),
#endif
#ifdef AP_PERIPH_HAVE_LED_WITHOUT_NOTIFY

Loading…
Cancel
Save