HAL_Linux: setup RCIN for vnav
This commit is contained in:
parent
bd9dd7ff4c
commit
009cb8f62b
@ -163,6 +163,9 @@ static RCInput_SoloLink rcinDriver;
|
||||
static RCInput_Navio2 rcinDriver;
|
||||
#elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_RST_ZYNQ
|
||||
static RCInput_RCProtocol rcinDriver{"/dev/ttyPS0", NULL};
|
||||
#elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_VNAV
|
||||
// this is needed to allow for RC input using SERIALn_PROTOCOL=23
|
||||
static RCInput_RCProtocol rcinDriver{"/dev/null", NULL};
|
||||
#else
|
||||
static RCInput rcinDriver;
|
||||
#endif
|
||||
|
@ -27,7 +27,8 @@
|
||||
#include <GCS_MAVLink/GCS.h>
|
||||
|
||||
#if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_DISCO || \
|
||||
CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BLUE
|
||||
CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BLUE || \
|
||||
CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_VNAV
|
||||
|
||||
extern const AP_HAL::HAL& hal;
|
||||
|
||||
|
@ -24,7 +24,8 @@
|
||||
#include <stdarg.h>
|
||||
|
||||
#if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_DISCO || \
|
||||
CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BLUE
|
||||
CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BLUE || \
|
||||
CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_VNAV
|
||||
|
||||
namespace Linux {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user