AP_Airspeed: added VRBRAIN board type

This commit is contained in:
Emile Castelnuovo 2014-12-30 12:00:02 +01:00 committed by Andrew Tridgell
parent ffd26e59cd
commit 25818f08a3
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ extern const AP_HAL::HAL& hal;
#define ARSPD_DEFAULT_PIN 0 #define ARSPD_DEFAULT_PIN 0
#elif CONFIG_HAL_BOARD == HAL_BOARD_AVR_SITL #elif CONFIG_HAL_BOARD == HAL_BOARD_AVR_SITL
#define ARSPD_DEFAULT_PIN 1 #define ARSPD_DEFAULT_PIN 1
#elif CONFIG_HAL_BOARD == HAL_BOARD_PX4 #elif CONFIG_HAL_BOARD == HAL_BOARD_PX4 || CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>
#include <fcntl.h> #include <fcntl.h>

View File

@ -188,7 +188,7 @@ private:
float get_pressure(void); float get_pressure(void);
AP_Airspeed_Analog analog; AP_Airspeed_Analog analog;
#if CONFIG_HAL_BOARD == HAL_BOARD_PX4 #if CONFIG_HAL_BOARD == HAL_BOARD_PX4 || CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN
AP_Airspeed_PX4 digital; AP_Airspeed_PX4 digital;
#else #else
AP_Airspeed_I2C digital; AP_Airspeed_I2C digital;