Sub: fix RC init order to avoid error message

This commit is contained in:
Iampete1 2021-09-21 02:47:49 +01:00 committed by Andrew Tridgell
parent b63e68a5ef
commit adb58a9b60
1 changed files with 2 additions and 1 deletions

View File

@ -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