mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 09:28:31 -04:00
ArduCopter: removed unused icount variable from commands_logic.pde to reduce compiler warnings.
This commit is contained in:
parent
87d5b5944d
commit
7a6732fb4b
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user