You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In essence, the autopilot turns off LNAV for aircraft that are heading towards their last waypoint in order to prevent an attempt to get information about a non-existent next waypoint:
if not bs.traf.actwp.swlastwp[i]:
....
# Prevent trying to activate the next waypoint when it was already the last waypoint
else:
bs.traf.swlnav[i] = False
bs.traf.swvnav[i] = False
bs.traf.swvnavspd[i] = False
continue # Go to next a/c which reached its active waypoint
However, this is done without checking if the aircraft is truly heading towards the last waypoint. And because LNAV is off, any small deviation causes the aircraft to not reach its last waypoint. This effect is especially great when a turn happens before, like in this scenario:
This aircraft has a turn for the second to last waypoint, and performs it with a slight overshoot. Thus, the original heading that the aircraft needed to have for it to reach the last waypoint needs slight adjustment. If LNAV would have been on, the aircraft would have compensated automatically. But as LNAV is off, the aircraft misses the destination waypoint.
A potential solution could be to only turn LNAV off if the aircraft is on track towards the last waypoint. Otherwise, to only turn LNAV off if the aircraft actually clears the last waypoint.
The text was updated successfully, but these errors were encountered:
Something like the fix your propose resulted in aircraft flying around the last waypoint for short legs. But I see the problem, will have a look at it.
Hello!
In essence, the autopilot turns off LNAV for aircraft that are heading towards their last waypoint in order to prevent an attempt to get information about a non-existent next waypoint:
However, this is done without checking if the aircraft is truly heading towards the last waypoint. And because LNAV is off, any small deviation causes the aircraft to not reach its last waypoint. This effect is especially great when a turn happens before, like in this scenario:
This aircraft has a turn for the second to last waypoint, and performs it with a slight overshoot. Thus, the original heading that the aircraft needed to have for it to reach the last waypoint needs slight adjustment. If LNAV would have been on, the aircraft would have compensated automatically. But as LNAV is off, the aircraft misses the destination waypoint.
A potential solution could be to only turn LNAV off if the aircraft is on track towards the last waypoint. Otherwise, to only turn LNAV off if the aircraft actually clears the last waypoint.
The text was updated successfully, but these errors were encountered: