1
0
Fork 0
This commit is contained in:
Matthew Maring 2020-04-19 16:04:52 -04:00 committed by Jonathan Redpath
parent 1b1687afb1
commit 128000eff2

View file

@ -2437,15 +2437,20 @@ var canvas_PFD_2 = {
if (ground_diff_cur >= -565 and ground_diff_cur <= 565) { if (ground_diff_cur >= -565 and ground_diff_cur <= 565) {
me["ground_ref"].setTranslation(0, (ground_diff_cur / 100) * -48.66856); me["ground_ref"].setTranslation(0, (ground_diff_cur / 100) * -48.66856);
me["ground_ref"].show(); me["ground_ref"].show();
} else {
me["ground_ref"].hide();
}
landing_diff_cur = landing_diff.getValue();
if (landing_diff_cur >= -565 and landing_diff_cur <= 565) {
if ((FMGCphase.getValue() == 5 or FMGCphase.getValue() == 6) and !wow1.getValue() and !wow2.getValue()) { #add std too if ((FMGCphase.getValue() == 5 or FMGCphase.getValue() == 6) and !wow1.getValue() and !wow2.getValue()) { #add std too
me["ground"].setTranslation(0, (ground_diff_cur / 100) * -48.66856); me["ground"].setTranslation(0, (landing_diff_cur / 100) * -48.66856);
me["ground"].show(); me["ground"].show();
} else { } else {
me["ground"].hide(); me["ground"].hide();
} }
} else { } else {
me["ground"].hide(); me["ground"].hide();
me["ground_ref"].hide();
} }
if (!getprop("ECAM/alt-alert-flash") and !getprop("ECAM/alt-alert-steady")) { if (!getprop("ECAM/alt-alert-flash") and !getprop("ECAM/alt-alert-steady")) {