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

Tuning backup nav with rmp #24

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions Models/Instruments/MCDU/MCDU.nas
Original file line number Diff line number Diff line change
Expand Up @@ -727,6 +727,31 @@ var canvas_MCDU_base = {
me["Simple_R3S"].setText("CHAN/ MLS");
me["Simple_R4S"].setText("SLOPE CRS");
me["Simple_R5S"].setText("FREQ/ADF2");

if (getprop("systems/radio/rmp[0]/nav") or getprop("systems/radio/rmp[1]/nav")) {
me["Simple_L1"].hide();
me["Simple_L2"].hide();
me["Simple_L3"].hide();
me["Simple_L4"].hide();
me["Simple_L5"].hide();
me["Simple_R1"].hide();
me["Simple_R2"].hide();
me["Simple_R3"].hide();
me["Simple_R4"].hide();
me["Simple_R5"].hide();
} else {
me["Simple_L1"].show();
me["Simple_L2"].show();
me["Simple_L3"].show();
me["Simple_L4"].show();
me["Simple_L5"].show();
me["Simple_R1"].show();
me["Simple_R2"].show();
me["Simple_R3"].show();
me["Simple_R4"].show();
me["Simple_R5"].show();
}

} else if (page == "INITA") {
if (!pageSwitch[i].getBoolValue()) {
me["Simple"].show();
Expand Down
4 changes: 2 additions & 2 deletions Models/Instruments/ND/canvas/style.nas
Original file line number Diff line number Diff line change
Expand Up @@ -1529,7 +1529,7 @@ canvas.NDStyles["Airbus"] = {
nd.symbols.vorLId.setText(navID);
else
nd.symbols.vorLId.setText(frq);
if(getprop(dme~ "in-range"))
if(getprop(dme~ "in-range") and !getprop("systems/radio/rmp[0]/nav") and !getprop("systems/radio/rmp[1]/nav"))
nd.symbols.dmeLDist.setText(sprintf("%3.1f",
dst));
else nd.symbols.dmeLDist.setText(" ---");
Expand Down Expand Up @@ -1584,7 +1584,7 @@ canvas.NDStyles["Airbus"] = {
nd.symbols.vorRId.setText(navID);
else
nd.symbols.vorRId.setText(frq);
if(getprop(dme~ "in-range"))
if(getprop(dme~ "in-range") and !getprop("systems/radio/rmp[0]/nav") and !getprop("systems/radio/rmp[1]/nav"))
nd.symbols.dmeRDist.setText(sprintf("%3.1f",
dst));
else nd.symbols.dmeRDist.setText(" ---");
Expand Down
Loading