Path: blob/master/libraries/AP_Baro/AP_Baro_config.h
9742 views
#pragma once12#include <AP_HAL/AP_HAL_Boards.h>3#include <AP_MSP/msp.h>4#include <AP_ExternalAHRS/AP_ExternalAHRS.h>5#include <AP_Airspeed/AP_Airspeed_config.h>67#ifndef HAL_BARO_WIND_COMP_ENABLED8#define HAL_BARO_WIND_COMP_ENABLED 19#endif1011#ifndef AP_BARO_ENABLED12#define AP_BARO_ENABLED 113#endif1415// backend support:16#ifndef AP_BARO_BACKEND_DEFAULT_ENABLED17#define AP_BARO_BACKEND_DEFAULT_ENABLED 118#endif1920#ifndef AP_BARO_BMP085_ENABLED21#define AP_BARO_BMP085_ENABLED AP_BARO_BACKEND_DEFAULT_ENABLED22#endif2324#ifndef AP_BARO_BMP280_ENABLED25#define AP_BARO_BMP280_ENABLED AP_BARO_BACKEND_DEFAULT_ENABLED26#endif2728#ifndef AP_BARO_BMP388_ENABLED29#define AP_BARO_BMP388_ENABLED AP_BARO_BACKEND_DEFAULT_ENABLED30#endif3132#ifndef AP_BARO_BMP581_ENABLED33#define AP_BARO_BMP581_ENABLED AP_BARO_BACKEND_DEFAULT_ENABLED34#endif3536#ifndef AP_BARO_DPS280_ENABLED37#define AP_BARO_DPS280_ENABLED AP_BARO_BACKEND_DEFAULT_ENABLED38#endif3940#ifndef AP_BARO_DUMMY_ENABLED41#define AP_BARO_DUMMY_ENABLED AP_BARO_BACKEND_DEFAULT_ENABLED42#endif4344#ifndef AP_BARO_EXTERNALAHRS_ENABLED45#define AP_BARO_EXTERNALAHRS_ENABLED AP_EXTERNAL_AHRS_ENABLED46#endif4748#ifndef AP_BARO_FBM320_ENABLED49#define AP_BARO_FBM320_ENABLED AP_BARO_BACKEND_DEFAULT_ENABLED50#endif5152#ifndef AP_BARO_ICM20789_ENABLED53#define AP_BARO_ICM20789_ENABLED AP_BARO_BACKEND_DEFAULT_ENABLED54#endif5556#ifndef AP_BARO_ICP101XX_ENABLED57#define AP_BARO_ICP101XX_ENABLED AP_BARO_BACKEND_DEFAULT_ENABLED58#endif5960#ifndef AP_BARO_ICP201XX_ENABLED61#define AP_BARO_ICP201XX_ENABLED AP_BARO_BACKEND_DEFAULT_ENABLED62#endif6364#ifndef AP_BARO_KELLERLD_ENABLED65#define AP_BARO_KELLERLD_ENABLED AP_BARO_BACKEND_DEFAULT_ENABLED66#endif6768#ifndef AP_BARO_LPS2XH_ENABLED69#define AP_BARO_LPS2XH_ENABLED AP_BARO_BACKEND_DEFAULT_ENABLED70#endif7172#ifndef AP_BARO_MS5611_ENABLED73#define AP_BARO_MS5611_ENABLED AP_BARO_BACKEND_DEFAULT_ENABLED74#endif // AP_BARO_MS5611_ENABLED7576// we have an option to treat a 5611 configuration as if it were a77// 5607 configuration as the parts are used interchangeably by some78// vendors. hwdefs may get awkward if we don't default 5607 this way:79#ifndef AP_BARO_MS5607_ENABLED80#define AP_BARO_MS5607_ENABLED AP_BARO_MS5611_ENABLED81#endif // AP_BARO_MS5607_ENABLED8283#ifndef AP_BARO_MS5637_ENABLED84#define AP_BARO_MS5637_ENABLED AP_BARO_BACKEND_DEFAULT_ENABLED85#endif // AP_BARO_MS5637_ENABLED8687#ifndef AP_BARO_MS5837_ENABLED88#define AP_BARO_MS5837_ENABLED AP_BARO_BACKEND_DEFAULT_ENABLED89#endif // AP_BARO_MS5837_ENABLED9091#define AP_BARO_MS56XX_ENABLED (AP_BARO_MS5607_ENABLED || AP_BARO_MS5611_ENABLED || AP_BARO_MS5637_ENABLED || AP_BARO_MS5837_ENABLED)9293#ifndef AP_BARO_MSP_ENABLED94#define AP_BARO_MSP_ENABLED HAL_MSP_SENSORS_ENABLED95#endif9697#ifndef AP_SIM_BARO_ENABLED98#define AP_SIM_BARO_ENABLED AP_SIM_ENABLED99#endif100101#ifndef AP_BARO_SPL06_ENABLED102#define AP_BARO_SPL06_ENABLED AP_BARO_BACKEND_DEFAULT_ENABLED103#endif104105#ifndef AP_BARO_DRONECAN_ENABLED106#define AP_BARO_DRONECAN_ENABLED (AP_BARO_BACKEND_DEFAULT_ENABLED && HAL_ENABLE_DRONECAN_DRIVERS)107#endif108109#ifndef AP_BARO_AUAV_ENABLED110#define AP_BARO_AUAV_ENABLED AP_BARO_BACKEND_DEFAULT_ENABLED && AP_AIRSPEED_AUAV_ENABLED111#endif112113#ifndef AP_BARO_PROBE_EXTERNAL_I2C_BUSES114#define AP_BARO_PROBE_EXTERNAL_I2C_BUSES 1115#endif116117#ifndef AP_BARO_PROBE_EXT_PARAMETER_ENABLED118#define AP_BARO_PROBE_EXT_PARAMETER_ENABLED AP_BARO_PROBE_EXTERNAL_I2C_BUSES || AP_BARO_MSP_ENABLED119#endif120121#ifndef AP_BARO_1976_STANDARD_ATMOSPHERE_ENABLED122// default to using the extended functions when doing double precision EKF (which implies more flash space and faster MCU)123// this allows for using the simple model with the --ekf-single configure option124#define AP_BARO_1976_STANDARD_ATMOSPHERE_ENABLED HAL_WITH_EKF_DOUBLE || AP_SIM_ENABLED125#endif126127#ifndef AP_BARO_THST_COMP_ENABLED128#define AP_BARO_THST_COMP_ENABLED 0129#endif130131132