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
refactor(fws): Port PseudoFWC to non-React framework #7736
Conversation
22b4b32
to
3fd3130
Compare
3fd3130
to
e364142
Compare
e364142
to
765b9a1
Compare
e3dac3f
to
3e5ce7a
Compare
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.
Some initial comments.
I appreciate the effort very much :)
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.
Didn't check all the warnings thoroughly, but the as the logic was already there and the conditions make sense to me, I approve
5172ac8
to
2535ba2
Compare
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.
Is there a reason for the file rename to NewPseudoFWC? I think keeping the filename as-is is probably just fine.
Quality Assurance/Dev Tester Report Discord : saschl Testing Process: Performed all scenarios from the testing instructions and performed general obersvation. LGTM but one message + one question. After a message has been recalled once, It cannot be cleared again. Is that intentional? Negatives: Testing Results: Conclusions: Media: |
Quality Assurance/Dev Tester Report Discord : saschl Testing Process: Performed all scenarios from the testing instructions and performed general observation. LGTM but one question. After a message has been recalled once, It cannot be cleared again. Is that intentional? Negatives: Testing Results: Conclusions: Media: |
e4cf9ea
to
318bc3a
Compare
An artifact from when both FWC files existed in the repo at once. I've renamed it now. |
Quality Assurance Trainee Report Discord : brewers_10#5706 Testing Process: Loaded into stand 1A at EHRD for full flight to EGGP. Followed standard start-up procedures checking for the following:
Negatives: Testing Results: Conclusions: |
Thanks much for the testing. I think I've found what's causing both issues, and I'm not sure they're in the scope of this PR.
EDIT: Scratch that. This is entirely normal behavior, my instructions were faulty. The FWC enters phase 2 when 1 engine is started, but the 120 second timer for T.O MEMO only starts when both engines are running.
As of right now, the This issue is resolved with the upcoming rewrite of the FWC in Rust, so I'm not sure whether trying to fix it here is within the scope of the PR. Any opinions from the dev team? |
Imo, if it already was like this before the rewrite, it is fine like this. Also did my tests based on the knowledge of the limitations. |
318bc3a
to
c18a3b3
Compare
After a brief conversation with @Saschl, it was found that because the |
I could reproduce both on the current dev version as well. |
Like Saschl said, this is a result of the fact that the current system "fakes" being able to hold the
Hydraulics warnings seem to be in a very weird place right now, but I did port them over 100% faithfully. I'm also unable to create green or blue warnings, same as you. Mostly because it requires 2 things: The "green reservoir low" var, and the "green pump is commanded off" var. However, commanding the green pump off also inhibits the reservoir low signal. So these warnings cannot be generated at all with the current system... Both of these are issues that exist within the current system and simply got ported over. We can work on fixing them with the Rust FWC branch. |
773ddbb
to
e042b85
Compare
It's for a low pressure fault is it? |
Co-authored-by: Benjamin Dupont <benjozorkfr@gmail.com> Co-authored-by: Saschl <sascharudolf46@gmail.com>
Summary of Changes
This PR continues the already existing work on the pseudo-fwc-rewrite branch to move the PseudoFWC code away from React, due to performance and stuttering issues.
Due to the ongoing work with the Rust FWS, @Benjozork and I briefly discussed and decided to rebase the work onto the experimental branch due to a few FWS features that haven't made it to master yet.The plan is to fully port the PseudoFWC to experimental, then make the minor modifications needed to get it compatible with master in a separate PR.After further discussion, we've decided to target master first instead. However, moving to experimental should be as simple as uncommenting the FWC warnings and renaming a couple simvars.
Screenshots (if necessary)
References
Existing PseudoFWC code
Additional context
Discord username (if different from GitHub): Eearslya#7831
Testing instructions
If everything has been done correctly, this PR should have no visible change to the aircraft at all, other than improved performance and reduced stuttering. Tests should be focused on ensuring that all ECAM memos and warnings appear when they're expected to. Testing should also ensure that warnings can be silenced, cleared, and recalled as appropriate.
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.