Copter: fixed can't enter esc calibration by RC.

This commit is contained in:
misswhile 2019-03-31 00:31:42 -07:00 committed by Randy Mackay
parent 9d6df7d542
commit 15a326bade
1 changed files with 3 additions and 3 deletions

6
ArduCopter/system.cpp Normal file → Executable file
View File

@ -111,6 +111,9 @@ void Copter::init_ardupilot()
// allocate the motors class
allocate_motors();
// initialise rc channels including setting mode
rc().init();
// sets up motors and output to escs
init_rc_out();
@ -215,9 +218,6 @@ void Copter::init_ardupilot()
// initialise AP_Logger library
logger.setVehicle_Startup_Writer(FUNCTOR_BIND(&copter, &Copter::Log_Write_Vehicle_Startup_Messages, void));
// initialise rc channels including setting mode
rc().init();
startup_INS_ground();
#ifdef ENABLE_SCRIPTING