Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat(a32nx): hook up engine oil sim #9795

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

Conversation

tracernz
Copy link
Member

Fixes #[issue_no]

Summary of Changes

Hook up the engine oil quantity and pressure code in the FADEC and into the SD.

The oil temp code doesn't make sense, so don't use it for now.

Screenshots (if necessary)

References

Additional context

Discord username (if different from GitHub):

Testing instructions

Try from cold and dark, through to airborne, with the ENG page open on the SD watching the oil pressure and quantity; ensure it is always reasonable.

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

@tracernz tracernz added this to the v0.13.0 milestone Jan 22, 2025
@tracernz tracernz added the A32NX Related to the A32NX aircraft label Jan 22, 2025
Copy link
Member

@BlueberryKing BlueberryKing left a comment

Choose a reason for hiding this comment

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

To be honest, I would remove the oil temperature simulation code entirely if it's not used. I feel it will be easier to try a different approach starting from a blank slate.

fbw-a32nx/docs/a320-simvars.md Outdated Show resolved Hide resolved
fbw-a32nx/docs/a320-simvars.md Outdated Show resolved Hide resolved
const double oilTemperaturePre = simData.engineOilTemperature[engineIdx]->get();
const double oilTemperatureMax = MAX_OIL_TEMP_NOMINAL + (engineIdx + 1) == engineImbalanced ? imbalanceExtractor(imbalance, 8) : 0;
double oilTemperature;
if (isOnGround && engineState == EngineState::OFF && ambientTemp > oilTemperaturePre - 10) {
Copy link
Member

Choose a reason for hiding this comment

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

This also doesn't really make sense to me. It shouldn't really matter whether the plane is on the ground or not?

Copy link
Member Author

@tracernz tracernz Jan 25, 2025

Choose a reason for hiding this comment

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

I wasn't really looking to work on the code any further than needed, only re-enable it, but it ended up needing a bit of work due to changes in the FADEC code 😬 . I think this does make some sense as a sanity check for spawn situations where the Lvar might have an old value.

Co-authored-by: BBK <22713769+BlueberryKing@users.noreply.github.com>
@tracernz
Copy link
Member Author

tracernz commented Jan 25, 2025

To be honest, I would remove the oil temperature simulation code entirely if it's not used. I feel it will be easier to try a different approach starting from a blank slate.

At least all the pieces are there which lowers the barrier to work on it a bit. Now it's just a matter of changing 1-2 lines rather than 50.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
A32NX Related to the A32NX aircraft QA Tier 1
Projects
Status: 🟣 QA Review: Ready to Test
Development

Successfully merging this pull request may close these issues.

2 participants