From bd84f58f83f113bd2372a6ffde5bfd4f68c522cf Mon Sep 17 00:00:00 2001 From: rmackay9 Date: Sat, 18 Aug 2012 16:04:23 +0900 Subject: [PATCH] ArduCopter: removed unused icount variable from commands_logic.pde to reduce compiler warnings. --- ArduCopter/commands_logic.pde | 3 --- 1 file changed, 3 deletions(-) diff --git a/ArduCopter/commands_logic.pde b/ArduCopter/commands_logic.pde index 4466691ede..87f0630e91 100644 --- a/ArduCopter/commands_logic.pde +++ b/ArduCopter/commands_logic.pde @@ -369,11 +369,8 @@ static bool verify_takeoff() // called at 10hz static bool verify_land_sonar() { - static float icount = 1; - if(current_loc.alt > 300){ wp_control = LOITER_MODE; - icount = 1; ground_detector = 0; }else{ // begin to pull down on the throttle