mirror of https://github.com/ArduPilot/ardupilot
Plane: ensure we always eventually capture a loiter
This commit is contained in:
parent
eb89b5bbb6
commit
f0eddd6366
|
@ -155,7 +155,8 @@ void Plane::update_loiter(uint16_t radius)
|
|||
}
|
||||
|
||||
if (loiter.start_time_ms == 0) {
|
||||
if (nav_controller->reached_loiter_target()) {
|
||||
if (nav_controller->reached_loiter_target() ||
|
||||
auto_state.wp_proportion > 1) {
|
||||
// we've reached the target, start the timer
|
||||
loiter.start_time_ms = millis();
|
||||
if (control_mode == GUIDED) {
|
||||
|
|
Loading…
Reference in New Issue