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: Update flight model info in fmgc guidance #6903

Merged
merged 9 commits into from
Mar 21, 2022
Merged

fix: Update flight model info in fmgc guidance #6903

merged 9 commits into from
Mar 21, 2022

Conversation

donstim
Copy link
Contributor

@donstim donstim commented Mar 13, 2022

Fixes #[issue_no]

Summary of Changes

This change updates the flight model information in the FMGC guidance section for use in computing vertical guidance parameters. This change will make the flight model information in the FMGC consistent with #6820.

Screenshots (if necessary)

References

Additional context

Discord username (if different from GitHub): donbikes#4084

Testing instructions

How to download the PR for QA

Every new commit to this PR will cause a new A32NX artifact 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, click on the bottom PR tab
  4. Click on the A32NX download link at the bottom of the page

Copy link
Member

@beheh beheh left a comment

Choose a reason for hiding this comment

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

I'm approving this from a technical side, because the form of the changes seem fine. I haven't cross-checked the numbers themselves.

@davidwalschots
Copy link
Member

@donstim What kind of testing are you expecting on this item?

@donstim
Copy link
Contributor Author

donstim commented Mar 13, 2022

@donstim What kind of testing are you expecting on this item?

Fair question, but I don't have an answer. This PR was done as a courtesy to @BlueberryKing and anyone else who might be working on FMGC guidance that needs this information. I can provide some testing guidance for anyone who can access the baseDrag value computed by this file by inputting a CL value, but I don't think that would be doable by a typical QA tester. I would envision a 2-step test: 1) Ensure the computed baseDrag value matches values I can provide that were used to create the polynomials in the equations; and 2) Verify that the computed baseDrag value matches (within a tolerance) CD values shown in the Aircraft Editor Debug Speeds window in developer mode for any given flight condition.

I don't know what level of scrutiny the original flightmodel.ts file got that this PR modifies.

@tracernz tracernz added this to the v0.8.0 milestone Mar 14, 2022
@tracernz
Copy link
Member

I think this is one that really just needs review, although maybe @BlueberryKing can do some tests with his vnav branch.

@tracernz tracernz added the Exp Available on experimental branch (for testing) label Mar 14, 2022
@BlueberryKing
Copy link
Member

I have been using this PR on the experimental-vnav branch. As expected, I have not noticed any breaking issues with it, which is the important part before merging this into master.

I would be happy to do a more comprehensive test on the functionality using the method @donstim described.

@tracernz
Copy link
Member

I am inclined to just merge this. Any objections?

@BlueberryKing
Copy link
Member

I am inclined to just merge this. Any objections?

Yeah, good to go from my side. Has not caused any issues on experimental.

@donstim
Copy link
Contributor Author

donstim commented Mar 18, 2022

Sorry for the delay. Finally getting back to this. Here are some inputs/outputs that can be used as a check:

FLAPS UP
CL = 0.29471, BaseDrag = 0.0213
For Mach = 0.78, CD Mach correction = 0.00122, CD with Mach correction = 0.02252

CL = 0.39013, BaseDrag = 0.023299
For Mach = 0.65, CD Mach correction = 0.0004, CD with Mach correction = 0.023699

CONF 1
CL = 0.84155, BaseDrag = 0.055432

CONF 1+F
CL = 1.07326, BaseDrag = 0.076367

CONF 2
CL = 1.00455, BaseDrag = 0.0.79944

CONF 3
CL = 1.07352, BaseDrag = 0.088355,

CONF FULL
CL = 1.22098, BaseDrag = 0.118748

@BlueberryKing
Copy link
Member

Thank you very much! I will be checking these values.

@BlueberryKing
Copy link
Member

I have now conducted the tests, both with the values @donstim provided as well as with the computed values in the simulator. The values lined up nicely for all configurations. 👍

@donstim
Copy link
Contributor Author

donstim commented Mar 20, 2022

Someone needs to add the Mach correction to BaseDrag. Otherwise, it will not be very accurate for flaps up high speed drag
Screenshot (1994)
.

@BlueberryKing
Copy link
Member

I have now added the Mach correction factor into the flight model predictions. I tested this briefly and observed more conservative predictions, as would be expected since we now correctly account for an increase in drag at high Mach numbers.

In the images below we can see how the top of climb arrow moves further away with the Mach correction.

Without the Mach correction:
Screenshot 2022-03-20 131330

With Mach correction:
Screenshot 2022-03-20 131810

I reached my cruising altitude closer to the predicted top of climb with these changes. Good stuff!

@tracernz tracernz merged commit 1e805fb into flybywiresim:master Mar 21, 2022
@tracernz tracernz removed the Exp Available on experimental branch (for testing) label Mar 21, 2022
@donstim donstim deleted the fix-Update-flight-model-info-in-FMGC-guidance branch March 22, 2022 06:11
ErickSharp pushed a commit that referenced this pull request Apr 3, 2022
* Update CHANGELOG.md

* Update FlightModel.ts

* Update FlightModel.ts

* Add mach correction to flight model predictions

* Fix interpolation issue

Co-authored-by: BBK <[email protected]>
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

Successfully merging this pull request may close these issues.

5 participants