mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
Plane: fixed GUIDED loiter with Q_RTL_MODE=1
this was broken by the recent RTL_RADIUS changes thanks to Nick for noticing this!
This commit is contained in:
parent
6111f2322f
commit
26e4f8ccb3
@ -189,7 +189,7 @@ void Plane::update_loiter(uint16_t radius)
|
||||
control_mode == AUTO &&
|
||||
!auto_state.no_crosstrack &&
|
||||
get_distance(current_loc, next_WP_loc) > radius*3) ||
|
||||
(quadplane.available() && quadplane.rtl_mode == 1)) {
|
||||
(control_mode == RTL && quadplane.available() && quadplane.rtl_mode == 1)) {
|
||||
/*
|
||||
if never reached loiter point and using crosstrack and somewhat far away from loiter point
|
||||
navigate to it like in auto-mode for normal crosstrack behavior
|
||||
|
Loading…
Reference in New Issue
Block a user