From e78651e8f259ac2b1fc3a4914e146e6d463e5a9a Mon Sep 17 00:00:00 2001 From: Andrew Tridgell <andrew@tridgell.net> Date: Thu, 13 Oct 2016 13:27:27 +1100 Subject: [PATCH] HAL_PX4: fixed DSM bind on Pixracer --- libraries/AP_HAL_PX4/RCInput.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libraries/AP_HAL_PX4/RCInput.cpp b/libraries/AP_HAL_PX4/RCInput.cpp index d1e3078262..7a9e161f80 100644 --- a/libraries/AP_HAL_PX4/RCInput.cpp +++ b/libraries/AP_HAL_PX4/RCInput.cpp @@ -121,7 +121,10 @@ bool PX4RCInput::rc_bind(int dsmMode) { int fd = open("/dev/px4io", 0); if (fd == -1) { - hal.console->printf("RCInput: failed to open /dev/px4io\n"); + fd = open("/dev/px4fmu", 0); + } + if (fd == -1) { + hal.console->printf("RCInput: failed to open /dev/px4io or /dev/px4fmu\n"); return false; } -- GitLab