-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
fix(a32nx/fms): fix preselected cruise speed/mach value showing in the descent phase #9860
Conversation
@@ -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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
fbw-a32nx/src/systems/instruments/src/MCDU/legacy/A32NX_FMCMainDisplay.ts
Outdated
Show resolved
Hide resolved
c5f72e7
to
3462cc0
Compare
3462cc0
to
9232778
Compare
9232778
to
928cdbd
Compare
Quality Assurance Trainee Report Discord Username : jonny_23 Testing Process:
Testing Results: |
928cdbd
to
0f504cb
Compare
…e descent phase (flybywiresim#9860) * Fix cruise speed preselect showing up in descent * Document local variable * Update comment
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.