From 64af4ff923bace66c5409ee4435a861fa865a17a Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Wed, 21 Jan 2015 20:20:05 +0900 Subject: [PATCH] Copter: rename set_servos_4 to motors_output --- ArduCopter/ArduCopter.pde | 5 ++--- ArduCopter/motors.pde | 7 ++----- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/ArduCopter/ArduCopter.pde b/ArduCopter/ArduCopter.pde index 9e2c9e4c9e..817ec8ee9d 100644 --- a/ArduCopter/ArduCopter.pde +++ b/ArduCopter/ArduCopter.pde @@ -970,9 +970,8 @@ static void fast_loop() update_heli_control_dynamics(); #endif //HELI_FRAME - // write out the servo PWM values - // ------------------------------ - set_servos_4(); + // send outputs to the motors library + motors_output(); // Inertial Nav // -------------------- diff --git a/ArduCopter/motors.pde b/ArduCopter/motors.pde index 31a6c2d22c..74eec75883 100644 --- a/ArduCopter/motors.pde +++ b/ArduCopter/motors.pde @@ -684,11 +684,8 @@ static void init_disarm_motors() ahrs.set_armed(false); } -/***************************************** -* Set the flight control servos based on the current calculated values -*****************************************/ -static void -set_servos_4() +// motors_output - send output to motors library which will adjust and send to ESCs and servos +static void motors_output() { // check if we are performing the motor test if (ap.motor_test) {