2022-10-26 09:02:23 -03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <AP_HAL/AP_HAL_Boards.h>
|
|
|
|
#include <AP_MSP/msp.h>
|
|
|
|
#include <AP_ExternalAHRS/AP_ExternalAHRS.h>
|
|
|
|
|
|
|
|
#ifndef HAL_BARO_WIND_COMP_ENABLED
|
2023-05-31 22:21:45 -03:00
|
|
|
#define HAL_BARO_WIND_COMP_ENABLED 1
|
2022-10-26 09:02:23 -03:00
|
|
|
#endif
|
|
|
|
|
2023-06-20 03:50:04 -03:00
|
|
|
#ifndef AP_BARO_ENABLED
|
|
|
|
#define AP_BARO_ENABLED 1
|
|
|
|
#endif
|
|
|
|
|
2022-10-26 09:02:23 -03:00
|
|
|
// backend support:
|
|
|
|
#ifndef AP_BARO_BACKEND_DEFAULT_ENABLED
|
|
|
|
#define AP_BARO_BACKEND_DEFAULT_ENABLED 1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_BARO_BMP085_ENABLED
|
|
|
|
#define AP_BARO_BMP085_ENABLED AP_BARO_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_BARO_BMP280_ENABLED
|
|
|
|
#define AP_BARO_BMP280_ENABLED AP_BARO_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_BARO_BMP388_ENABLED
|
|
|
|
#define AP_BARO_BMP388_ENABLED AP_BARO_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
2024-06-05 23:31:11 -03:00
|
|
|
#ifndef AP_BARO_BMP581_ENABLED
|
|
|
|
#define AP_BARO_BMP581_ENABLED AP_BARO_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
2022-10-26 09:02:23 -03:00
|
|
|
#ifndef AP_BARO_DPS280_ENABLED
|
|
|
|
#define AP_BARO_DPS280_ENABLED AP_BARO_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_BARO_DUMMY_ENABLED
|
|
|
|
#define AP_BARO_DUMMY_ENABLED AP_BARO_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_BARO_EXTERNALAHRS_ENABLED
|
|
|
|
#define AP_BARO_EXTERNALAHRS_ENABLED HAL_EXTERNAL_AHRS_ENABLED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_BARO_FBM320_ENABLED
|
|
|
|
#define AP_BARO_FBM320_ENABLED AP_BARO_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_BARO_ICM20789_ENABLED
|
|
|
|
#define AP_BARO_ICM20789_ENABLED AP_BARO_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_BARO_ICP101XX_ENABLED
|
|
|
|
#define AP_BARO_ICP101XX_ENABLED AP_BARO_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_BARO_ICP201XX_ENABLED
|
|
|
|
#define AP_BARO_ICP201XX_ENABLED AP_BARO_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_BARO_KELLERLD_ENABLED
|
|
|
|
#define AP_BARO_KELLERLD_ENABLED AP_BARO_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_BARO_LPS2XH_ENABLED
|
|
|
|
#define AP_BARO_LPS2XH_ENABLED AP_BARO_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_BARO_MS56XX_ENABLED
|
|
|
|
#define AP_BARO_MS56XX_ENABLED AP_BARO_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_BARO_MSP_ENABLED
|
|
|
|
#define AP_BARO_MSP_ENABLED HAL_MSP_SENSORS_ENABLED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_SIM_BARO_ENABLED
|
|
|
|
#define AP_SIM_BARO_ENABLED AP_SIM_ENABLED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_BARO_SPL06_ENABLED
|
|
|
|
#define AP_BARO_SPL06_ENABLED AP_BARO_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
2023-04-08 00:58:12 -03:00
|
|
|
#ifndef AP_BARO_DRONECAN_ENABLED
|
2023-04-08 01:09:10 -03:00
|
|
|
#define AP_BARO_DRONECAN_ENABLED (AP_BARO_BACKEND_DEFAULT_ENABLED && HAL_ENABLE_DRONECAN_DRIVERS)
|
2022-10-26 09:02:23 -03:00
|
|
|
#endif
|
2023-04-14 01:35:51 -03:00
|
|
|
|
|
|
|
|
|
|
|
#ifndef AP_BARO_PROBE_EXTERNAL_I2C_BUSES
|
|
|
|
#define AP_BARO_PROBE_EXTERNAL_I2C_BUSES 1
|
|
|
|
#endif
|
2024-05-07 20:51:26 -03:00
|
|
|
|
|
|
|
#ifndef AP_BARO_PROBE_EXT_PARAMETER_ENABLED
|
|
|
|
#define AP_BARO_PROBE_EXT_PARAMETER_ENABLED AP_BARO_PROBE_EXTERNAL_I2C_BUSES || AP_BARO_MSP_ENABLED
|
|
|
|
#endif
|
2024-07-05 20:51:45 -03:00
|
|
|
|
|
|
|
#ifndef AP_BARO_1976_STANDARD_ATMOSPHERE_ENABLED
|
|
|
|
// default to using the extended functions when doing double precision EKF (which implies more flash space and faster MCU)
|
|
|
|
// this allows for using the simple model with the --ekf-single configure option
|
|
|
|
#define AP_BARO_1976_STANDARD_ATMOSPHERE_ENABLED HAL_WITH_EKF_DOUBLE || AP_SIM_ENABLED
|
|
|
|
#endif
|