Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Plane: call update_loiter before determining whether to fly home or not
we are calling "reached_loiter_target" as part of our checks as to whether to fly home or not. We need to call update_loiter so the L1 controller can update its internal state for the new waypoint which do_RTL has set. Depending on location (but typically), that will mean that L1's reached_loiter_target() will then return false, so we fly home. This bug was affected by f8d7be5 . Any sort of altitude error greater than 10m would delay us entering the landing sequence, allowing the L1 controller to update its state.
- Loading branch information