Rover: fix RC init order to avoid error message

This commit is contained in:
Iampete1 2021-09-21 02:46:47 +01:00 committed by Andrew Tridgell
parent e9c339a0a0
commit 4c069d57ea
1 changed files with 1 additions and 1 deletions

View File

@ -130,8 +130,8 @@ void Rover::init_ardupilot()
set_mode(*initial_mode, ModeReason::INITIALISED); set_mode(*initial_mode, ModeReason::INITIALISED);
// initialise rc channels // initialise rc channels
rc().init();
rc().convert_options(RC_Channel::AUX_FUNC::ARMDISARM_UNUSED, RC_Channel::AUX_FUNC::ARMDISARM); rc().convert_options(RC_Channel::AUX_FUNC::ARMDISARM_UNUSED, RC_Channel::AUX_FUNC::ARMDISARM);
rc().init();
rover.g2.sailboat.init(); rover.g2.sailboat.init();