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(gpws): fixed mode 4 logic #8136

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

Conversation

LeechCZ
Copy link

@LeechCZ LeechCZ commented Jul 27, 2023

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

98028460-6d79b400-1e0e-11eb-975f-934d29067444
98028535-88e4bf00-1e0e-11eb-90d3-9f5ec0435f59
These pictures are from the A320 FCOM.

Additional context

Discord username (if different from GitHub): leech2188

Testing instructions

  1. Check for normal GPWS operation during a flight (mainly no erroneous Mode 4 warnings, other modes should not be affected)
  2. Test for normal Mode 4 warnings as shown in References:
    • Mode 4C warnings during a take-off or go-around
    • Mode 4A / 4B warnings during an approach

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

@github-actions github-actions bot added this to 🟡 Code Review: Ready for Review in Quality Assurance Jul 27, 2023
Quality Assurance automation moved this from 🟡 Code Review: Ready for Review to 🟣 QA Team Review: Ready to Test Aug 11, 2023
@2hwk 2hwk added this to the v0.11.0 milestone Aug 11, 2023
Copy link
Member

@tracernz tracernz left a comment

Choose a reason for hiding this comment

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

Code style fixes.

Quality Assurance automation moved this from 🟣 QA Team Review: Ready to Test to 🔴 Code Review: In progress Aug 11, 2023
@LeechCZ LeechCZ requested a review from tracernz August 11, 2023 14:03
Quality Assurance automation moved this from 🔴 Code Review: In progress to 🟣 QA Team Review: Ready to Test Aug 12, 2023
tracernz
tracernz previously approved these changes Aug 12, 2023
Copy link
Member

@tracernz tracernz left a 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.

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.

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.

Quality Assurance automation moved this from 🟣 QA Team Review: Ready to Test to 🔴 Code Review: In progress Aug 13, 2023
@LeechCZ
Copy link
Author

LeechCZ commented Aug 16, 2023

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.

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.

@GlideLeo
Copy link

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.

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.

It's right, mode 4B can also be triggered when "flaps in landing configuration and gear not in landing configuration".In fact, the envelope diagram looks like this when gear up
image
Because when the landing flaps are set, the transition is made to 4B, even though the gear is in the up position.

Your FCOM seems a bit outdated, but even in the newer versions of the FCOM, the descriptions aren't entirely accurate. These details are sourced from Airbus specifications. Sorry for not being able to provide the original document.

Quality Assurance automation moved this from 🔴 Code Review: In progress to 🟣 QA Team Review: Ready to Test Sep 7, 2023
@2hwk 2hwk added the QA Tier 1 label Sep 7, 2023
@beheh
Copy link
Member

beheh commented Sep 9, 2023

@2hwk are you sure this RTT? Looking at the comments this PR seems to have some deficiencies that still need to be addressed.

@beheh beheh moved this from 🟣 QA Team Review: Ready to Test to 🔴 Code Review: In progress in Quality Assurance Sep 9, 2023
beheh
beheh previously requested changes Sep 14, 2023
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.

Flagging this PR as "changes requested" due to the mentioned logic from the most recent comments.

@Saschl Saschl removed the QA Tier 1 label Oct 23, 2023
@tracernz tracernz modified the milestones: v0.11.0, v0.12.0 Oct 24, 2023
@2hwk 2hwk modified the milestones: v0.12.0, Backlog Feb 16, 2024
@2hwk 2hwk added the Waiting For Response This issue or PR needs a response from the author label Mar 12, 2024
@2hwk 2hwk moved this from 🔴 Code Review: In progress to 🟡 Code Review: Ready for Review in Quality Assurance Mar 15, 2024
@BlueberryKing BlueberryKing removed the Waiting For Response This issue or PR needs a response from the author label May 11, 2024
@BlueberryKing BlueberryKing dismissed stale reviews from 2hwk and tracernz July 12, 2024 20:06

stale

Quality Assurance automation moved this from 🟣 QA Team Review: Ready to Test to 🔴 Code Review: In progress Jul 12, 2024
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 happy with the code, but have not done an accuracy check.

Quality Assurance automation moved this from 🔴 Code Review: In progress to 🟣 QA Team Review: Ready to Test Jul 30, 2024
@Aleloplt
Copy link

Aleloplt commented Jul 31, 2024

Quality Assurance Tester/Trainee Report

Discord : Alelo
Object of testing: 8136
Tier of Testing : (1/2)
Date : 31/07/2024

Testing Process:
Initial flight from EGLL - EGFF.
Full start up to pushback in normal time
Approach into EGFF and multiple go arounds to test different modes
First Test - Mode 4C

  • AP disconnected
  • TOGA thrust engaged
  • Pitch reduced to minimise height gain - steady 100'RA flight
  • "too low terrain audible"
  • Pitched up to gain altitude and eventually GPWS call out disappeared
    -IGNORE VFE OVSPD - i did this myself

Second Test - Mode 4A

  • Normal approach w/ AP on right down to MNM.
  • Flaps full, LDG gear up, VAPP 140kn
  • "too low gear" audible upon passing 490'RA
  • Go around and tested again - including mode 4C test
  • Descent towards terrain using FPA -3.0 at 195knots
  • "Too low Terrain" only audible roughly at 600'RA

Third Test - Mode 4B

  • Normal approach using FPA -3.0
  • LDG down, Flap 3 160 knots
  • "too low terrain" audible 250'RA
  • "too low flaps" audible instantly at 240'RA

Negatives:
The exact call outs dont seem to match the FCOM document provided. I.e should be hearing too low terrain less than 1000'RA without the gear and at 196knots but that was coming in far later and im not sure if thats meant to be correct

Testing Results:
Mode 4C - Passed
Mode 4A - Gear call out - Passed
Mode 4B - Flaps call - Passed

Conclusions:
Overall working really well to what its needed fore in terms of FLAPS and GEAR comparable to the sims ive been in. Just needs more clarity on the 'too low terrain calls and whether not hearing them as per the FCOM provided is allowable.

Media:
Media files are too big to be sent here. If you PM me on discord ill send them across

@beheh
Copy link
Member

beheh commented Jul 31, 2024

Thanks for the QA! Merging this is then just pending an accuracy check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Quality Assurance
🟣 QA Team Review: Ready to Test
Development

Successfully merging this pull request may close these issues.

GPWS Mode 4 behaviour