aircraft
aircraft copied to clipboard
fix(fms): remove forced turn on following leg after leg insertion
Fixes #[issue_no]
Summary of Changes
Fixes a few issues with flight plan modifications:
- After deleting a discontinuity, it could happen that the turn of the new leg went the wrong way due to the leg constellation. This is fixes by creating a TF leg from the leg after the discontinuity.
- After truncating the flight plan by insertion of an existing waypoint or using DIR to, the outbound turn would sometimes go the wrong way because the following leg was coded with a forced turn. This is fixed by removing the forced turn on the following leg.
Screenshots (if necessary)
Before:
After:
Before:
After:
References
Additional context
Discord username (if different from GitHub):
Testing instructions
- Fly a procedure with a forced turn, try going DIR to the leg with the forced turn (indicated by a left/right arrow in the FPLN page). Make sure the turn goes the wrong way.
- Clear discontinuities on procedures. Make sure all turns go the right way.
How to download the PR for QA
Every new commit to this PR will cause new A32NX and A380X artifacts to be created, built, and uploaded.
- Make sure you are signed in to GitHub
- Click on the Checks tab on the PR
- On the left side, find and click on the PR Build tab
- Click on either flybywire-aircraft-a320-neo or flybywire-aircraft-a380-842 download link at the bottom of the page