mirror of https://github.com/ArduPilot/ardupilot
Plane: cope with QGC retrying AUTO mode
QGC tries several times to enter AUTO even when it is refused. We need to keep refusing
This commit is contained in:
parent
e16d357e1b
commit
cfeccefcae
|
@ -10,6 +10,7 @@ bool ModeAuto::_enter()
|
||||||
quadplane.guided_wait_takeoff_on_mode_enter) {
|
quadplane.guided_wait_takeoff_on_mode_enter) {
|
||||||
if (!plane.mission.starts_with_takeoff_cmd()) {
|
if (!plane.mission.starts_with_takeoff_cmd()) {
|
||||||
gcs().send_text(MAV_SEVERITY_ERROR,"Takeoff waypoint required");
|
gcs().send_text(MAV_SEVERITY_ERROR,"Takeoff waypoint required");
|
||||||
|
quadplane.guided_wait_takeoff = true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue