Skip to content

Commit

Permalink
Display of M/R if manual/rmp tuned
Browse files Browse the repository at this point in the history
  • Loading branch information
juliansebline committed Jun 11, 2022
1 parent f801b65 commit ec363f6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/instruments/src/RMP/Components/BaseRadioPanels.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ const PoweredRadioPanel = (props: Props) => {
if (navButtonPressed) {
setPanelMode(previousPanelMode);
setNavTransceiverType(TransceiverType.RADIO_VHF);

SimVar.SetSimVarValue('K:ADF1_ACTIVE_SET', 'Frequency ADF BCD32', 0);
SimVar.SetSimVarValue('K:ADF2_ACTIVE_SET', 'Frequency ADF BCD32', 0);
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);
}

setNavButton(!navButtonPressed);
Expand Down

0 comments on commit ec363f6

Please sign in to comment.