Skip to content
Snippets Groups Projects
Commit 0e2ddb03 authored by Robert Lefebvre's avatar Robert Lefebvre Committed by Randy Mackay
Browse files

Copter: verify_takeoff() should set ap.takeoff_complete to True after the takeoff is complete.

parent c5b11928
No related branches found
No related tags found
No related merge requests found
...@@ -462,6 +462,7 @@ static void do_loiter_time() ...@@ -462,6 +462,7 @@ static void do_loiter_time()
static bool verify_takeoff() static bool verify_takeoff()
{ {
// have we reached our target altitude? // have we reached our target altitude?
set_takeoff_complete(wp_nav.reached_destination());
return wp_nav.reached_destination(); return wp_nav.reached_destination();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment