AP_Airspeed: allow setting of default airspeed pin

This commit is contained in:
Andrew Tridgell 2019-07-12 11:38:39 +10:00
parent 585631a22d
commit 1ffc2cbe41

View File

@ -45,8 +45,12 @@ extern const AP_HAL::HAL &hal;
#define ARSPD_DEFAULT_PIN 15
#else
#define ARSPD_DEFAULT_TYPE TYPE_I2C_MS4525
#ifdef HAL_DEFAULT_AIRSPEED_PIN
#define ARSPD_DEFAULT_PIN HAL_DEFAULT_AIRSPEED_PIN
#else
#define ARSPD_DEFAULT_PIN 15
#endif
#endif
#if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_DISCO
#define PSI_RANGE_DEFAULT 0.05