From e8b9e9d53c8a132f8fcb9d633e8d237146784695 Mon Sep 17 00:00:00 2001 From: Emile Castelnuovo <emile.castelnuovo@gmail.com> Date: Mon, 31 Mar 2014 19:55:23 +0200 Subject: [PATCH] AP_Airspeed: added #defines for VRBRAIN board --- libraries/AP_Airspeed/AP_Airspeed.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libraries/AP_Airspeed/AP_Airspeed.cpp b/libraries/AP_Airspeed/AP_Airspeed.cpp index 6c97b2245..3373488d6 100644 --- a/libraries/AP_Airspeed/AP_Airspeed.cpp +++ b/libraries/AP_Airspeed/AP_Airspeed.cpp @@ -50,6 +50,14 @@ extern const AP_HAL::HAL& hal; #define ARSPD_DEFAULT_PIN 16 #elif CONFIG_HAL_BOARD == HAL_BOARD_LINUX #define ARSPD_DEFAULT_PIN AP_AIRSPEED_I2C_PIN +#elif CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN +#if defined(CONFIG_ARCH_BOARD_VRBRAIN_V4) + #define ARSPD_DEFAULT_PIN 0 +#elif defined(CONFIG_ARCH_BOARD_VRBRAIN_V5) + #define ARSPD_DEFAULT_PIN 0 +#elif defined(CONFIG_ARCH_BOARD_VRHERO_V1) + #define ARSPD_DEFAULT_PIN 0 +#endif #else #define ARSPD_DEFAULT_PIN 0 #endif -- GitLab