From e94693e8ac1d0c6244a053f462b01f9eff18f0e5 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Wed, 21 Jan 2015 13:11:06 +0900 Subject: [PATCH] Copter: remove unused throttle integrator --- ArduCopter/ArduCopter.pde | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/ArduCopter/ArduCopter.pde b/ArduCopter/ArduCopter.pde index 3037a11046..0edd1eef40 100644 --- a/ArduCopter/ArduCopter.pde +++ b/ArduCopter/ArduCopter.pde @@ -561,13 +561,6 @@ static float baro_climbrate; // barometer climbrate in cm/s // Current location of the copter static struct Location current_loc; -//////////////////////////////////////////////////////////////////////////////// -// Throttle integrator -//////////////////////////////////////////////////////////////////////////////// -// This is a simple counter to track the amount of throttle used during flight -// This could be useful later in determining and debuging current usage and predicting battery life -static uint32_t throttle_integrator; - //////////////////////////////////////////////////////////////////////////////// // Navigation Yaw control @@ -1049,9 +1042,6 @@ static void update_batt_compass(void) DataFlash.Log_Write_Compass(compass); } } - - // record throttle output - throttle_integrator += g.rc_3.servo_out; } // ten_hz_logging_loop