From 15a326baded821f8879fc957512ec1a55f1e0892 Mon Sep 17 00:00:00 2001 From: misswhile Date: Sun, 31 Mar 2019 00:31:42 -0700 Subject: [PATCH] Copter: fixed can't enter esc calibration by RC. --- ArduCopter/system.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) mode change 100644 => 100755 ArduCopter/system.cpp diff --git a/ArduCopter/system.cpp b/ArduCopter/system.cpp old mode 100644 new mode 100755 index 0e12045a48..d13c936011 --- a/ArduCopter/system.cpp +++ b/ArduCopter/system.cpp @@ -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