APM: prevent crosstrack from takeoff point after takeoff completion

This commit is contained in:
Andrew Tridgell 2012-09-02 11:28:32 +10:00
parent 4219cb55ce
commit 39346eac32
1 changed files with 1 additions and 0 deletions

View File

@ -304,6 +304,7 @@ static bool verify_takeoff()
if (current_loc.alt > takeoff_altitude) { if (current_loc.alt > takeoff_altitude) {
hold_course = -1; hold_course = -1;
takeoff_complete = true; takeoff_complete = true;
next_WP = current_loc;
return true; return true;
} else { } else {
return false; return false;