Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding waypoint after passing last waypoint in the route causes past waypoint to become active #536

Open
jangroter opened this issue Dec 3, 2024 · 1 comment

Comments

@jangroter
Copy link

When an aircraft passes their last waypoint in the route, vnav, lnav and vnavspeed are set to False, but old waypoint remains the active waypoint.

Therefore, when adding a waypoint after the last waypoint in the route has been passed, lnav switches back on, but will try to navigate to the last waypoint in the route before the addition of the new waypoint. I'm not sure if this is intended, tried incrementing self.route[i].iactwp by 1 but did not function as expected.

@jangroter
Copy link
Author

edit: only happens to aircraft that have not been assigned a destination. If destination is given aircraft behaves as expected and will directly route to newly assigned waypoint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant