Skip to content

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

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

Merged

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
@tracernz tracernz added this to the v0.14.0 milestone Apr 3, 2025
@Jonny23787
Copy link
Contributor

Quality Assurance Trainee Report

Discord Username : jonny_23
Object of testing : #9860
Aircraft : A32NX
Tier of Testing : 1
Date : 08/04/2025

Testing Process:

  1. Set preselected mach value during climb, confirmed mach preselect displayed on PFD.
  2. Confirmed mach select disappeared from PFD, aircraft increase mach value to preselected value.
  3. Near TOD, selected managed speed, aircraft decelerated to computed value, confirmed mach select text was not displayed.
  4. Selected managed decent, confirmed mach select text was not displayed.

Testing Results:
Passed

@BlueberryKing BlueberryKing enabled auto-merge (squash) April 8, 2025 16:42
@BlueberryKing BlueberryKing merged commit c3515a7 into flybywiresim:master Apr 8, 2025
8 checks passed
@github-project-automation github-project-automation bot moved this from 🟣 QA Review: Ready to Test to ✔️ Done in Quality Assurance Apr 8, 2025
@BlueberryKing BlueberryKing deleted the fix-spd-mach-presel branch April 10, 2025 17:30
Benjozork pushed a commit to Benjozork/a32nx that referenced this pull request Apr 12, 2025
…e descent phase (flybywiresim#9860)

* Fix cruise speed preselect showing up in descent

* Document local variable

* Update comment
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 Passed QA Ready to Test
Projects
Status: ✔️ Done
Development

Successfully merging this pull request may close these issues.

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