ArduCopter: removed unused icount variable from commands_logic.pde to reduce compiler warnings.

This commit is contained in:
rmackay9 2012-08-18 16:04:23 +09:00
parent 87d5b5944d
commit 7a6732fb4b

View File

@ -369,11 +369,8 @@ static bool verify_takeoff()
// called at 10hz // called at 10hz
static bool verify_land_sonar() static bool verify_land_sonar()
{ {
static float icount = 1;
if(current_loc.alt > 300){ if(current_loc.alt > 300){
wp_control = LOITER_MODE; wp_control = LOITER_MODE;
icount = 1;
ground_detector = 0; ground_detector = 0;
}else{ }else{
// begin to pull down on the throttle // begin to pull down on the throttle