Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Ardupilot
GitHub Repository: Ardupilot/ardupilot
Path: blob/master/libraries/AP_Airspeed/AP_Airspeed_config.h
9803 views
1
#pragma once
2
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>
7
8
#ifndef AP_AIRSPEED_ENABLED
9
#define AP_AIRSPEED_ENABLED 1
10
#endif
11
12
#ifndef AP_AIRSPEED_BACKEND_DEFAULT_ENABLED
13
#define AP_AIRSPEED_BACKEND_DEFAULT_ENABLED AP_AIRSPEED_ENABLED
14
#endif
15
16
// backends
17
#ifndef AP_AIRSPEED_ANALOG_ENABLED
18
#define AP_AIRSPEED_ANALOG_ENABLED AP_AIRSPEED_BACKEND_DEFAULT_ENABLED
19
#endif
20
21
#ifndef AP_AIRSPEED_ASP5033_ENABLED
22
#define AP_AIRSPEED_ASP5033_ENABLED AP_AIRSPEED_BACKEND_DEFAULT_ENABLED
23
#endif
24
25
#ifndef AP_AIRSPEED_DLVR_ENABLED
26
#define AP_AIRSPEED_DLVR_ENABLED AP_AIRSPEED_BACKEND_DEFAULT_ENABLED
27
#endif
28
29
#ifndef AP_AIRSPEED_DRONECAN_ENABLED
30
#define AP_AIRSPEED_DRONECAN_ENABLED AP_AIRSPEED_BACKEND_DEFAULT_ENABLED && HAL_ENABLE_DRONECAN_DRIVERS
31
#endif
32
33
#ifndef AP_AIRSPEED_MS4525_ENABLED
34
#define AP_AIRSPEED_MS4525_ENABLED AP_AIRSPEED_BACKEND_DEFAULT_ENABLED
35
#endif
36
37
#ifndef AP_AIRSPEED_MS5525_ENABLED
38
#define AP_AIRSPEED_MS5525_ENABLED AP_AIRSPEED_BACKEND_DEFAULT_ENABLED
39
#endif
40
41
#ifndef AP_AIRSPEED_MSP_ENABLED
42
#define AP_AIRSPEED_MSP_ENABLED (AP_AIRSPEED_BACKEND_DEFAULT_ENABLED && HAL_MSP_SENSORS_ENABLED)
43
#endif
44
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
48
#endif
49
50
#ifndef AP_AIRSPEED_SDP3X_ENABLED
51
#define AP_AIRSPEED_SDP3X_ENABLED AP_AIRSPEED_BACKEND_DEFAULT_ENABLED
52
#endif
53
54
#ifndef AP_AIRSPEED_SITL_ENABLED
55
#define AP_AIRSPEED_SITL_ENABLED AP_AIRSPEED_BACKEND_DEFAULT_ENABLED && AP_SIM_ENABLED
56
#endif
57
58
#ifndef AP_AIRSPEED_AUAV_ENABLED
59
#define AP_AIRSPEED_AUAV_ENABLED AP_AIRSPEED_BACKEND_DEFAULT_ENABLED
60
#endif
61
62
// other AP_Airspeed options:
63
#ifndef AIRSPEED_MAX_SENSORS
64
#define AIRSPEED_MAX_SENSORS 2
65
#endif
66
67
#ifndef AP_AIRSPEED_AUTOCAL_ENABLE
68
#define AP_AIRSPEED_AUTOCAL_ENABLE AP_AIRSPEED_ENABLED
69
#endif
70
71
#ifndef AP_AIRSPEED_HYGROMETER_ENABLE
72
#define AP_AIRSPEED_HYGROMETER_ENABLE (AP_AIRSPEED_ENABLED && HAL_PROGRAM_SIZE_LIMIT_KB > 1024)
73
#endif
74
75
#ifndef AP_AIRSPEED_EXTERNAL_ENABLED
76
#define AP_AIRSPEED_EXTERNAL_ENABLED AP_AIRSPEED_ENABLED && AP_EXTERNAL_AHRS_ENABLED
77
#endif
78
79