-
-
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(gpws): fixed mode 4 logic #8136
base: master
Are you sure you want to change the base?
Conversation
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.
Code style fixes.
fbw-a32nx/src/base/flybywire-aircraft-a320-neo/html_ui/Pages/A32NX_Core/A32NX_GPWS.js
Outdated
Show resolved
Hide resolved
fbw-a32nx/src/base/flybywire-aircraft-a320-neo/html_ui/Pages/A32NX_Core/A32NX_GPWS.js
Outdated
Show resolved
Hide resolved
fbw-a32nx/src/base/flybywire-aircraft-a320-neo/html_ui/Pages/A32NX_Core/A32NX_GPWS.js
Outdated
Show resolved
Hide resolved
fbw-a32nx/src/base/flybywire-aircraft-a320-neo/html_ui/Pages/A32NX_Core/A32NX_GPWS.js
Outdated
Show resolved
Hide resolved
fbw-a32nx/src/base/flybywire-aircraft-a320-neo/html_ui/Pages/A32NX_Core/A32NX_GPWS.js
Outdated
Show resolved
Hide resolved
fbw-a32nx/src/base/flybywire-aircraft-a320-neo/html_ui/Pages/A32NX_Core/A32NX_GPWS.js
Outdated
Show resolved
Hide resolved
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.
Formatting is good now. I haven't reviewed the logic against my refs at all.
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.
Thanks for the PR! Apart from my suggestions, there is a small issue with the logic. Mode 4A is only meant to trigger if the gear is up and the flaps are not in landing configuration. Then, Mode 4B can also issue "TOO LOW GEAR" in the envelope where it would issue "TOO LOW FLAPS" if the gear is not down.
fbw-a32nx/src/base/flybywire-aircraft-a320-neo/html_ui/Pages/A32NX_Core/A32NX_GPWS.js
Outdated
Show resolved
Hide resolved
fbw-a32nx/src/base/flybywire-aircraft-a320-neo/html_ui/Pages/A32NX_Core/A32NX_GPWS.js
Outdated
Show resolved
Hide resolved
If you have any other refference, could you please provide it to me? As I understand it, from the FCOM provided in the PR, Mode 4A can only be triggered if the LG is not down. And the Mode 4B can only be triggered if the LG is down and the flaps are not in landing configuration. Althoug it also says in the FCOM that Mode 4B can trigger the "TOO LOW GEAR" warning, but that is at least to my understanding contradictory to the trigger conditions mentioned above in the document. |
@2hwk are you sure this RTT? Looking at the comments this PR seems to have some deficiencies that still need to be addressed. |
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.
Flagging this PR as "changes requested" due to the mentioned logic from the most recent comments.
5c5adf3
to
b840124
Compare
2a8ca48
to
54238a0
Compare
54238a0
to
01ea147
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.
I'm happy with the code, but have not done an accuracy check.
Quality Assurance Tester/Trainee Report Discord : Alelo Testing Process:
Second Test - Mode 4A
Third Test - Mode 4B
Negatives: Testing Results: Conclusions: Media: |
Thanks for the QA! Merging this is then just pending an accuracy check. |
Fixes #8134
Summary of Changes
Mode 4C logic has been changed so it can only be triggered during take-off and go-around and does not trigger warnings during approaches.
Mode 4A and Mode 4B logic has been changed so it can be triggered even when the FMGC is not in the Approach phase.
The general Mode 4 logic has been changed so that the Mode 4C can only be triggered before passing 2400 ft RA during a take-off or go-around. After that point, only Mode 4A and 4B warnings can be triggered to be available during an approach.
Screenshots (if necessary)
References
These pictures are from the A320 FCOM.
Additional context
Discord username (if different from GitHub): leech2188
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.