mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-05 07:28:29 -04:00
HAL_Linux: use nullptr for vnav rcinput
this makes it clearer what is going on
This commit is contained in:
parent
0b83d45163
commit
9db0862d61
@ -164,8 +164,9 @@ static RCInput_Navio2 rcinDriver;
|
|||||||
#elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_RST_ZYNQ
|
#elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_RST_ZYNQ
|
||||||
static RCInput_RCProtocol rcinDriver{"/dev/ttyPS0", NULL};
|
static RCInput_RCProtocol rcinDriver{"/dev/ttyPS0", NULL};
|
||||||
#elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_VNAV
|
#elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_VNAV
|
||||||
// this is needed to allow for RC input using SERIALn_PROTOCOL=23
|
// this is needed to allow for RC input using SERIALn_PROTOCOL=23. No fd is opened
|
||||||
static RCInput_RCProtocol rcinDriver{"/dev/null", NULL};
|
// in the linux driver and instead user needs to provide a uart via SERIALn_PROTOCOL
|
||||||
|
static RCInput_RCProtocol rcinDriver{nullptr, nullptr};
|
||||||
#else
|
#else
|
||||||
static RCInput rcinDriver;
|
static RCInput rcinDriver;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user