2022-10-17 05:35:08 -03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <AP_Common/AP_Common.h>
|
|
|
|
#include <AP_HAL/AP_HAL_Boards.h>
|
2023-06-09 02:58:29 -03:00
|
|
|
#include <AP_MSP/AP_MSP_config.h>
|
2023-11-30 22:57:44 -04:00
|
|
|
#include <AP_ExternalAHRS/AP_ExternalAHRS_config.h>
|
2022-10-17 05:35:08 -03:00
|
|
|
|
|
|
|
#ifndef AP_AIRSPEED_ENABLED
|
|
|
|
#define AP_AIRSPEED_ENABLED 1
|
|
|
|
#endif
|
|
|
|
|
2023-06-09 02:58:29 -03:00
|
|
|
#ifndef AP_AIRSPEED_BACKEND_DEFAULT_ENABLED
|
|
|
|
#define AP_AIRSPEED_BACKEND_DEFAULT_ENABLED AP_AIRSPEED_ENABLED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// backends
|
|
|
|
#ifndef AP_AIRSPEED_ANALOG_ENABLED
|
|
|
|
#define AP_AIRSPEED_ANALOG_ENABLED AP_AIRSPEED_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_AIRSPEED_ASP5033_ENABLED
|
|
|
|
#define AP_AIRSPEED_ASP5033_ENABLED AP_AIRSPEED_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_AIRSPEED_DLVR_ENABLED
|
|
|
|
#define AP_AIRSPEED_DLVR_ENABLED AP_AIRSPEED_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_AIRSPEED_DRONECAN_ENABLED
|
|
|
|
#define AP_AIRSPEED_DRONECAN_ENABLED AP_AIRSPEED_BACKEND_DEFAULT_ENABLED && HAL_ENABLE_DRONECAN_DRIVERS
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_AIRSPEED_MS4525_ENABLED
|
|
|
|
#define AP_AIRSPEED_MS4525_ENABLED AP_AIRSPEED_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_AIRSPEED_MS5525_ENABLED
|
|
|
|
#define AP_AIRSPEED_MS5525_ENABLED AP_AIRSPEED_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
2022-10-17 05:35:08 -03:00
|
|
|
#ifndef AP_AIRSPEED_MSP_ENABLED
|
2023-06-09 02:58:29 -03:00
|
|
|
#define AP_AIRSPEED_MSP_ENABLED (AP_AIRSPEED_BACKEND_DEFAULT_ENABLED && HAL_MSP_SENSORS_ENABLED)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// note additional vehicle restrictions are made in the .cpp file!
|
|
|
|
#ifndef AP_AIRSPEED_NMEA_ENABLED
|
|
|
|
#define AP_AIRSPEED_NMEA_ENABLED AP_AIRSPEED_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_AIRSPEED_SDP3X_ENABLED
|
|
|
|
#define AP_AIRSPEED_SDP3X_ENABLED AP_AIRSPEED_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_AIRSPEED_SITL_ENABLED
|
|
|
|
#define AP_AIRSPEED_SITL_ENABLED AP_AIRSPEED_BACKEND_DEFAULT_ENABLED && AP_SIM_ENABLED
|
2022-10-17 05:35:08 -03:00
|
|
|
#endif
|
|
|
|
|
2023-06-09 02:58:29 -03:00
|
|
|
// other AP_Airspeed options:
|
2022-10-17 05:35:08 -03:00
|
|
|
#ifndef AIRSPEED_MAX_SENSORS
|
|
|
|
#define AIRSPEED_MAX_SENSORS 2
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_AIRSPEED_AUTOCAL_ENABLE
|
|
|
|
#define AP_AIRSPEED_AUTOCAL_ENABLE AP_AIRSPEED_ENABLED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_AIRSPEED_HYGROMETER_ENABLE
|
|
|
|
#define AP_AIRSPEED_HYGROMETER_ENABLE (AP_AIRSPEED_ENABLED && BOARD_FLASH_SIZE > 1024)
|
|
|
|
#endif
|
2023-11-30 22:57:44 -04:00
|
|
|
|
|
|
|
#ifndef AP_AIRSPEED_EXTERNAL_ENABLED
|
|
|
|
#define AP_AIRSPEED_EXTERNAL_ENABLED AP_AIRSPEED_ENABLED && HAL_EXTERNAL_AHRS_ENABLED
|
|
|
|
#endif
|