CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
Ardupilot

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: Ardupilot/ardupilot
Path: blob/master/libraries/AP_Baro/AP_Baro_config.h
Views: 1798
1
#pragma once
2
3
#include <AP_HAL/AP_HAL_Boards.h>
4
#include <AP_MSP/msp.h>
5
#include <AP_ExternalAHRS/AP_ExternalAHRS.h>
6
7
#ifndef HAL_BARO_WIND_COMP_ENABLED
8
#define HAL_BARO_WIND_COMP_ENABLED 1
9
#endif
10
11
#ifndef AP_BARO_ENABLED
12
#define AP_BARO_ENABLED 1
13
#endif
14
15
// backend support:
16
#ifndef AP_BARO_BACKEND_DEFAULT_ENABLED
17
#define AP_BARO_BACKEND_DEFAULT_ENABLED 1
18
#endif
19
20
#ifndef AP_BARO_BMP085_ENABLED
21
#define AP_BARO_BMP085_ENABLED AP_BARO_BACKEND_DEFAULT_ENABLED
22
#endif
23
24
#ifndef AP_BARO_BMP280_ENABLED
25
#define AP_BARO_BMP280_ENABLED AP_BARO_BACKEND_DEFAULT_ENABLED
26
#endif
27
28
#ifndef AP_BARO_BMP388_ENABLED
29
#define AP_BARO_BMP388_ENABLED AP_BARO_BACKEND_DEFAULT_ENABLED
30
#endif
31
32
#ifndef AP_BARO_BMP581_ENABLED
33
#define AP_BARO_BMP581_ENABLED AP_BARO_BACKEND_DEFAULT_ENABLED
34
#endif
35
36
#ifndef AP_BARO_DPS280_ENABLED
37
#define AP_BARO_DPS280_ENABLED AP_BARO_BACKEND_DEFAULT_ENABLED
38
#endif
39
40
#ifndef AP_BARO_DUMMY_ENABLED
41
#define AP_BARO_DUMMY_ENABLED AP_BARO_BACKEND_DEFAULT_ENABLED
42
#endif
43
44
#ifndef AP_BARO_EXTERNALAHRS_ENABLED
45
#define AP_BARO_EXTERNALAHRS_ENABLED HAL_EXTERNAL_AHRS_ENABLED
46
#endif
47
48
#ifndef AP_BARO_FBM320_ENABLED
49
#define AP_BARO_FBM320_ENABLED AP_BARO_BACKEND_DEFAULT_ENABLED
50
#endif
51
52
#ifndef AP_BARO_ICM20789_ENABLED
53
#define AP_BARO_ICM20789_ENABLED AP_BARO_BACKEND_DEFAULT_ENABLED
54
#endif
55
56
#ifndef AP_BARO_ICP101XX_ENABLED
57
#define AP_BARO_ICP101XX_ENABLED AP_BARO_BACKEND_DEFAULT_ENABLED
58
#endif
59
60
#ifndef AP_BARO_ICP201XX_ENABLED
61
#define AP_BARO_ICP201XX_ENABLED AP_BARO_BACKEND_DEFAULT_ENABLED
62
#endif
63
64
#ifndef AP_BARO_KELLERLD_ENABLED
65
#define AP_BARO_KELLERLD_ENABLED AP_BARO_BACKEND_DEFAULT_ENABLED
66
#endif
67
68
#ifndef AP_BARO_LPS2XH_ENABLED
69
#define AP_BARO_LPS2XH_ENABLED AP_BARO_BACKEND_DEFAULT_ENABLED
70
#endif
71
72
#ifndef AP_BARO_MS56XX_ENABLED
73
#define AP_BARO_MS56XX_ENABLED AP_BARO_BACKEND_DEFAULT_ENABLED
74
#endif
75
76
#ifndef AP_BARO_MSP_ENABLED
77
#define AP_BARO_MSP_ENABLED HAL_MSP_SENSORS_ENABLED
78
#endif
79
80
#ifndef AP_SIM_BARO_ENABLED
81
#define AP_SIM_BARO_ENABLED AP_SIM_ENABLED
82
#endif
83
84
#ifndef AP_BARO_SPL06_ENABLED
85
#define AP_BARO_SPL06_ENABLED AP_BARO_BACKEND_DEFAULT_ENABLED
86
#endif
87
88
#ifndef AP_BARO_DRONECAN_ENABLED
89
#define AP_BARO_DRONECAN_ENABLED (AP_BARO_BACKEND_DEFAULT_ENABLED && HAL_ENABLE_DRONECAN_DRIVERS)
90
#endif
91
92
93
#ifndef AP_BARO_PROBE_EXTERNAL_I2C_BUSES
94
#define AP_BARO_PROBE_EXTERNAL_I2C_BUSES 1
95
#endif
96
97
#ifndef AP_BARO_PROBE_EXT_PARAMETER_ENABLED
98
#define AP_BARO_PROBE_EXT_PARAMETER_ENABLED AP_BARO_PROBE_EXTERNAL_I2C_BUSES || AP_BARO_MSP_ENABLED
99
#endif
100
101
#ifndef AP_BARO_1976_STANDARD_ATMOSPHERE_ENABLED
102
// default to using the extended functions when doing double precision EKF (which implies more flash space and faster MCU)
103
// this allows for using the simple model with the --ekf-single configure option
104
#define AP_BARO_1976_STANDARD_ATMOSPHERE_ENABLED HAL_WITH_EKF_DOUBLE || AP_SIM_ENABLED
105
#endif
106
107