From 927e60d85b19dbb876f8f676233ca685d6cac138 Mon Sep 17 00:00:00 2001 From: Pat Hickey Date: Sun, 1 Jan 2012 20:15:18 -0500 Subject: [PATCH] ArduCopter motors_y6: rewrite loop in terms of motors --- ArduCopter/motors_y6.pde | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ArduCopter/motors_y6.pde b/ArduCopter/motors_y6.pde index 6cbf7bbc06..e576e3ad9f 100644 --- a/ArduCopter/motors_y6.pde +++ b/ArduCopter/motors_y6.pde @@ -108,9 +108,8 @@ static void output_motors_armed() // this filter slows the acceleration of motors vs the deceleration // Idea by Denny Rowland to help with his Yaw issue - for(int8_t i = CH_1; i <= CH_8; i++ ) { - if(i == CH_5 || i == CH_6) - continue; + for(int8_t m = 0; m <= 6; m++ ) { + int i = ch_of_mot(m); if(motor_filtered[i] < motor_out[i]){ motor_filtered[i] = (motor_out[i] + motor_filtered[i]) / 2; }else{