VRBRAIN: defined AirSpeed inputs for ArduPlane on VR Micro Brain 5

This commit is contained in:
LukeMike 2014-09-11 11:47:58 +02:00 committed by Randy Mackay
parent 2de18f844b
commit 1455d700d4
2 changed files with 10 additions and 0 deletions

View File

@ -60,7 +60,11 @@ extern const AP_HAL::HAL& hal;
#elif defined(CONFIG_ARCH_BOARD_VRBRAIN_V51) #elif defined(CONFIG_ARCH_BOARD_VRBRAIN_V51)
#define ARSPD_DEFAULT_PIN 0 #define ARSPD_DEFAULT_PIN 0
#elif defined(CONFIG_ARCH_BOARD_VRUBRAIN_V51) #elif defined(CONFIG_ARCH_BOARD_VRUBRAIN_V51)
#if APM_BUILD_TYPE(APM_BUILD_ArduPlane)
#define ARSPD_DEFAULT_PIN 1
#else
#define ARSPD_DEFAULT_PIN 0 #define ARSPD_DEFAULT_PIN 0
#endif
#elif defined(CONFIG_ARCH_BOARD_VRHERO_V10) #elif defined(CONFIG_ARCH_BOARD_VRHERO_V10)
#define ARSPD_DEFAULT_PIN 0 #define ARSPD_DEFAULT_PIN 0
#endif #endif

View File

@ -18,6 +18,7 @@
#include <uORB/topics/system_power.h> #include <uORB/topics/system_power.h>
#include <GCS_MAVLink.h> #include <GCS_MAVLink.h>
#include <errno.h> #include <errno.h>
#include <AP_Vehicle.h>
#define ANLOGIN_DEBUGGING 0 #define ANLOGIN_DEBUGGING 0
@ -57,6 +58,11 @@ static const struct {
{ 10, 3.3f/4096 }, { 10, 3.3f/4096 },
{ 11, 3.3f/4096 }, { 11, 3.3f/4096 },
#elif defined(CONFIG_ARCH_BOARD_VRUBRAIN_V51) #elif defined(CONFIG_ARCH_BOARD_VRUBRAIN_V51)
#if APM_BUILD_TYPE(APM_BUILD_ArduPlane)
{ 1, 3.3f/4096 },
{ 2, 3.3f/4096 },
{ 3, 3.3f/4096 },
#endif
{ 10, 3.3f/4096 }, { 10, 3.3f/4096 },
#elif defined(CONFIG_ARCH_BOARD_VRHERO_V10) #elif defined(CONFIG_ARCH_BOARD_VRHERO_V10)
{ 10, 3.3f/4096 }, { 10, 3.3f/4096 },