-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
feat(rmp): RMP navigation tuning #7241
feat(rmp): RMP navigation tuning #7241
Conversation
Requested changes Co-authored-by: Benedict Etzel <developer@beheh.de>
Requested changes: code and VHF3 VOICE format Co-authored-by: Benedict Etzel <developer@beheh.de>
Requested changes: code VHF3 voice Co-authored-by: Benedict Etzel <developer@beheh.de>
Requested changes: code VHF3 voice Co-authored-by: Benedict Etzel <developer@beheh.de>
Requested changes: textDataModeVHF3 to TEXT_DATA_MODE_VHF3
COPY THIS INTO A FILE WITH EXTENSION ".simvars" then load it into SimVarWatcher. ADF SOUND:1,Bool,False |
Good to go from QA side. |
* fix: RMP behavior and lights [issue 344] * Update src/instruments/src/EWD/elements/PseudoFWC.tsx Requested changes Co-authored-by: Benedict Etzel <developer@beheh.de> * Update src/instruments/src/Common/EWDMessages.tsx Requested changes: code and VHF3 VOICE format Co-authored-by: Benedict Etzel <developer@beheh.de> * Update src/instruments/src/EWD/elements/PseudoFWC.tsx Requested changes: code VHF3 voice Co-authored-by: Benedict Etzel <developer@beheh.de> * Update src/instruments/src/EWD/elements/PseudoFWC.tsx Requested changes: code VHF3 voice Co-authored-by: Benedict Etzel <developer@beheh.de> * Update RadioPanelDisplay.tsx Requested changes: textDataModeVHF3 to TEXT_DATA_MODE_VHF3 * Fix bug with ANN LT involved * Added comments about commented out code * Fix RMPs elec buses * add of SEL word backlight * Default init of transmit and volume buttons * fix SEL light behavior * fix SEL light behavior flybywiresim#2 * Removal of commented out code * SEL backlight code * VOR, ILS, ADF tunable. MLS missing. Logic with NAV button * Add of files * ILS standby frequency to active * Instruments knobs are now pushable * VORs ident * Fix due to double comment in the xml * MKR ident * ADF ident * RADNAV page blank once NAV button pushed * AUTO/MAN/RMP status in Navaids page * Fix switch between NAV backup and radio tuning * VOICE button * fix: inhibit auto-tuning * Changelog * Changelog * NAV 1/2 ADF 1 default volume set to 0 * NAV 3/4 ADF 2 (not existing yet) default volume set to 0 * Fix ILS and default values * ILS/MLS DME distance not displayed if RMP tuned * Display of M/R if manual/rmp tuned * Display of M/R if manual/rmp tuned * Revert "Display of M/R if manual/rmp tuned" This reverts commit ec363f6. * Reset of all nav frequencies when RMP tuning is cancelled * Removal of MLS + somes fixes for ADF and tuning based on real life * Change of default course value * Removal of useless code * Fix of display flickering when switching between ADF and VOR/ILS * ILS/MLS volume knobs + fix * Management greatest volume within pair of knobs * Fix previous commit * Fix previous commit * Revert "Revert commit by mistake" This reverts commit 556f5ac. * Removal of useless newlines * Table separator * Merge similar simvars as requested * French tooltips for knobs and voice button * Use of default tooltips + update homemade ones + english tooltips * Use of default tooltips + update homemade ones + english tooltips * Revert "Revert commit pushed my mistake" This reverts commit d61e0d5. * Dim light * ILS tunable only if both RMPs in nav backup mode. FCOM compliant * Back to frequency mode when switching between receivers * Fix for vPilot * Changelog update Removal of useless changelogs * Changelog from 0.4.0 to 0.9.0 as requested From 0.4.0 to 0.8.0 for another one * Fix COM3 Transmit + it is now possible to transmit on no COM * Fix knob animation * Revert "Merge branch 'RMP_fix_behavior_lights'" This reverts commit b21b690, reversing changes made to b71ebfb. * Reorder Changelog * Fix simvars when switching between CALLS p/b * Comment * MLS disabled * Fix bad merge * Fix bad merge * A32NX_RMP_ILS_MLS_TUNED to A32NX_RMP_ILS_TUNED * Update a320-simvars.md * Fix for vPilot * Comment * Inhibit at low altitude * Knobs lights * Revert on Rust files due to bad merge * Copy changelog from master and add of my line * Fix ILS tuning * Comment * Comment * Fix knobs lit when cold & dark Co-authored-by: Benedict Etzel <developer@beheh.de> Co-authored-by: Michael Corcoran <tracer@outlook.co.nz> Co-authored-by: Saschl <19493808+Saschl@users.noreply.github.com> Co-authored-by: Benjamin Dupont <benjozorkfr@gmail.com>
@@ -11,11 +11,11 @@ export enum NavAidMode { | |||
|
|||
export type RadioNavInfoProps = { index: 1 | 2, side: EfisSide } | |||
|
|||
const TuningModeIndicator: React.FC<{ index: 1 | 2, frequency: number }> = ({ index, frequency }) => { | |||
const [tuningMode] = useSimVar(`L:A32NX_FMGC_RADIONAV_${index}_TUNING_MODE`, 'enum'); | |||
const TuningModeIndicator: React.FC<{ index: 1 | 2 }> = ({ index }) => { |
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.
This needed to remain per-side. VOR1 can be manually tuned while VOR2 is auto-tuned for example. At the moment it will incorrectly show M on both sides of the ND even though only 1 side is manually tuned through the FMGC.
SimVar.SetSimVarValue('K:NAV1_RADIO_SET_HZ', 'Hz', 0); | ||
SimVar.SetSimVarValue('K:NAV2_RADIO_SET_HZ', 'Hz', 0); | ||
SimVar.SetSimVarValue('K:NAV3_RADIO_SET_HZ', 'Hz', 0); | ||
} |
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.
This logic all belongs in the RMP, which actually does the tuning (unless the onside is failed and the offside is tuning it).
Fixes #4044
Fixes #7457
Summary of Changes
This PR makes:
Screenshots (if necessary)
References
https://www.smartcockpit.com/docs/A320-Navigation.pdf (PAGE 24)
https://youtu.be/qpL23wnNNEI?t=1770
Real life tests
Additional context
Tune via RMPs:
MCDU:
ND:
Ident knobs:
Discord username (if different from GitHub):
Testing instructions
REQUIREMENTS
Good luck and thank you for your time.
TEST N°1: enabling/disabling of knobs and volume
Make sure all buttons/knobs are independent.
Make sure to play with buttons/knobs of both RMPs
It's normal the RMP 2 does not transmit on any channel by default.
It was made to avoid deselect the transmit channel on the RMP 2 to be able to switch between COM1 and 2 on vPilot/Alitude
TEST N°2: Tuning
Information: Left RMP manages VOR1/ADF1. Right RMP manages VOR2/ADF2. Both RMPs can manage ILS ONLY IF both FMGCs are in nav backup mode (i.e respective NAV push buttons pushed)
Therefore VOR1 = NAV1 VOR2 = NAV2
Repeat for both RMPs
TEST N°3: Inhibit at low altitude
This test to be FCOM compliant.
You should not be able to tune anything via the RMP if below 700 RA, APPR engaged, at least one AP/FD engaged.
In this part, I'm assuming the transfer button does not allow us to switch frequencies. I don't know the real behavior though.
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.