-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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(fuel): turnaround fuel used reset #6876
Conversation
Tested this in the usual situations where an engine would be shut down on the ground. Restarted the engine and fuel used was reset to zero. Tested both eng 1 and 2. Also tested in the air. System worked as expected fuel used was not reset to zero in the air. A nice fix to a couple of questions in the support channel recently. Exceptionally efficient code change. Looks good to go to QA if needed probably does not. |
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.
Just a small remark (not related to this PR).
I noticed https://github.com/flybywiresim/a32nx/blob/eae165b508f398a07c92bd1e340eba8db37f455a/src/fadec/src/EngineControl.h#L1126 animationDeltaTime
is never initialized. You probably wanted to use the class member animationDeltaTime
here?
https://github.com/flybywiresim/a32nx/blob/eae165b508f398a07c92bd1e340eba8db37f455a/src/fadec/src/EngineControl.h#L18
Anyway not related to this PR but I thought I'd note it.
Quality Assurance Tester Report Discord : mico#3145 Testing Process: Negatives: Testing Results: Conclusions: |
Your are completely right. I used to work with animationDeltaTime to detect pauses, but that is obsolete now. Will make changes in subsequent PRs (need to make sure there is nothing depending on that variable). Thanks!!! |
448bfef
to
5b7f3b9
Compare
5b7f3b9
to
f1004e5
Compare
Fixes #6862 (partially)
Summary of Changes
With the new EGT cooling constant, the engine maintains a "shutting" state for a long time (instead of switching to "off" state once N2 gets to zero). Due to this change in the engine state model, fuel used was not being reset. This issue is being solved with this PR.
Screenshots (if necessary)
References
Additional context
Discord username (if different from GitHub): TazX [Z+2]#405
Testing instructions
One way to do it:
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.