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

fix(a32nx/fms): fix preselected cruise speed/mach value showing in the descent phase #9860

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

BlueberryKing
Copy link
Member

Fixes #9854

Summary of Changes

Fixes an issue where the preselected cruise speed/mach value was shown during the descent phase. This happened because the value was not properly reset.

Screenshots (if necessary)

References

Additional context

Discord username (if different from GitHub):

Testing instructions

Go through the steps to reproduce the linked issue. Ensure the issue no longer occurs.

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.

  1. Make sure you are signed in to GitHub
  2. Click on the Checks tab on the PR
  3. On the left side, find and click on the PR Build tab
  4. Click on either flybywire-aircraft-a320-neo, flybywire-aircraft-a380-842 (4K) or flybywire-aircraft-a380-842 (8K) download link at the bottom of the page

@@ -1321,7 +1309,7 @@ export abstract class FMCMainDisplay implements FmsDataInterface, FmsDisplayInte
}
}

private updatePreSelSpeedMach(preSel) {
private updatePreSelSpeedMach(preSel: number | undefined) {
// The timeout is required to create a delay for the current value to be read and the new one to be set
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really understand why this delay is there, is this still necessary or could it be removed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't tested it without the delay. The idea is that when a new flight phase activates, we need to give the AP code time to set the preselected speed before we unset/re-set it. From the FMS, we have no control over when the FG activates the preselected speed after we fire the K:A32NX.FMS_PRESET_SPD_ACTIVATE event.

@BlueberryKing BlueberryKing force-pushed the fix-spd-mach-presel branch 2 times, most recently from c5f72e7 to 3462cc0 Compare February 18, 2025 14:28
@BravoMike99 BravoMike99 added QA Ready to Test A32NX Related to the A32NX aircraft labels Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A32NX Related to the A32NX aircraft QA Ready to Test
Projects
Status: 🟣 QA Review: Ready to Test
Development

Successfully merging this pull request may close these issues.

Blue MACH SEL stuck to PFD regardless of active phase
4 participants