From 5ed8418305530e38957617e350174f98b2e2bbd7 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 13 Nov 2016 14:55:35 +1100 Subject: [PATCH] Plane: move radio init after boardconfig init to ensure px4io is setup first --- ArduPlane/system.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ArduPlane/system.cpp b/ArduPlane/system.cpp index a9eb8e3481..53a94a99e9 100644 --- a/ArduPlane/system.cpp +++ b/ArduPlane/system.cpp @@ -101,7 +101,6 @@ void Plane::init_ardupilot() #endif set_control_channels(); - init_rc_out_main(); #if HAVE_PX4_MIXER if (!quadplane.enable) { @@ -132,6 +131,8 @@ void Plane::init_ardupilot() // setup any board specific drivers BoardConfig.init(); + init_rc_out_main(); + // allow servo set on all channels except first 4 ServoRelayEvents.set_channel_mask(0xFFF0);