3 #include <AP_Common/AP_Common.h>
4 #include <AP_HAL/AP_HAL_Boards.h>
5 #include <AP_MSP/AP_MSP_config.h>
6 #include <AP_ExternalAHRS/AP_ExternalAHRS_config.h>
8 #ifndef AP_AIRSPEED_ENABLED
9 #define AP_AIRSPEED_ENABLED 1
12 #ifndef AP_AIRSPEED_BACKEND_DEFAULT_ENABLED
13 #define AP_AIRSPEED_BACKEND_DEFAULT_ENABLED AP_AIRSPEED_ENABLED
17 #ifndef AP_AIRSPEED_ANALOG_ENABLED
18 #define AP_AIRSPEED_ANALOG_ENABLED AP_AIRSPEED_BACKEND_DEFAULT_ENABLED
21 #ifndef AP_AIRSPEED_ASP5033_ENABLED
22 #define AP_AIRSPEED_ASP5033_ENABLED AP_AIRSPEED_BACKEND_DEFAULT_ENABLED
25 #ifndef AP_AIRSPEED_DLVR_ENABLED
26 #define AP_AIRSPEED_DLVR_ENABLED AP_AIRSPEED_BACKEND_DEFAULT_ENABLED
29 #ifndef AP_AIRSPEED_DRONECAN_ENABLED
30 #define AP_AIRSPEED_DRONECAN_ENABLED AP_AIRSPEED_BACKEND_DEFAULT_ENABLED && HAL_ENABLE_DRONECAN_DRIVERS
33 #ifndef AP_AIRSPEED_MS4525_ENABLED
34 #define AP_AIRSPEED_MS4525_ENABLED AP_AIRSPEED_BACKEND_DEFAULT_ENABLED
37 #ifndef AP_AIRSPEED_MS5525_ENABLED
38 #define AP_AIRSPEED_MS5525_ENABLED AP_AIRSPEED_BACKEND_DEFAULT_ENABLED
41 #ifndef AP_AIRSPEED_MSP_ENABLED
42 #define AP_AIRSPEED_MSP_ENABLED (AP_AIRSPEED_BACKEND_DEFAULT_ENABLED && HAL_MSP_SENSORS_ENABLED)
45 // note additional vehicle restrictions are made in the .cpp file!
46 #ifndef AP_AIRSPEED_NMEA_ENABLED
47 #define AP_AIRSPEED_NMEA_ENABLED AP_AIRSPEED_BACKEND_DEFAULT_ENABLED
50 #ifndef AP_AIRSPEED_SDP3X_ENABLED
51 #define AP_AIRSPEED_SDP3X_ENABLED AP_AIRSPEED_BACKEND_DEFAULT_ENABLED
54 #ifndef AP_AIRSPEED_SITL_ENABLED
55 #define AP_AIRSPEED_SITL_ENABLED AP_AIRSPEED_BACKEND_DEFAULT_ENABLED && AP_SIM_ENABLED
58 // other AP_Airspeed options:
59 #ifndef AIRSPEED_MAX_SENSORS
60 #define AIRSPEED_MAX_SENSORS 2
63 #ifndef AP_AIRSPEED_AUTOCAL_ENABLE
64 #define AP_AIRSPEED_AUTOCAL_ENABLE AP_AIRSPEED_ENABLED
67 #ifndef AP_AIRSPEED_HYGROMETER_ENABLE
68 #define AP_AIRSPEED_HYGROMETER_ENABLE (AP_AIRSPEED_ENABLED && BOARD_FLASH_SIZE > 1024)
71 #ifndef AP_AIRSPEED_EXTERNAL_ENABLED
72 #define AP_AIRSPEED_EXTERNAL_ENABLED AP_AIRSPEED_ENABLED && HAL_EXTERNAL_AHRS_ENABLED