mirror of https://github.com/ArduPilot/ardupilot
APM: prevent crosstrack from takeoff point after takeoff completion
This commit is contained in:
parent
4219cb55ce
commit
39346eac32
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue