From adb58a9b6086df5361a6013ae58e3be4219309e7 Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Tue, 21 Sep 2021 02:47:49 +0100 Subject: [PATCH] Sub: fix RC init order to avoid error message --- ArduSub/system.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ArduSub/system.cpp b/ArduSub/system.cpp index 567ffee75d..58f80a54b4 100644 --- a/ArduSub/system.cpp +++ b/ArduSub/system.cpp @@ -62,8 +62,9 @@ void Sub::init_ardupilot() #endif // initialise rc channels including setting mode - rc().init(); rc().convert_options(RC_Channel::AUX_FUNC::ARMDISARM_UNUSED, RC_Channel::AUX_FUNC::ARMDISARM); + rc().init(); + init_rc_in(); // sets up rc channels from radio init_rc_out(); // sets up motors and output to escs