mirror of https://github.com/ArduPilot/ardupilot
parent
98b8866215
commit
d796814dfc
|
@ -363,8 +363,7 @@ static bool verify_takeoff()
|
|||
return false;
|
||||
}
|
||||
// are we above our target altitude?
|
||||
//return (current_loc.alt > next_WP.alt);
|
||||
return (current_loc.alt > target_altitude);
|
||||
return (current_loc.alt > next_WP.alt);
|
||||
}
|
||||
|
||||
// called at 10hz
|
||||
|
|
Loading…
Reference in New Issue