1
0
Fork 0

Hide speed symbols on align, VFE NEXT now corresponds to next flap setting, fix MCDU font size

This commit is contained in:
hayden2000 2020-02-25 04:13:24 -05:00
parent 6fbabe9c4f
commit f5280f7d1e
3 changed files with 45 additions and 23 deletions

View file

@ -1377,8 +1377,8 @@ var canvas_MCDU_base = {
me.fontRight(default, symbol, symbol, symbol, default, default);
me.fontRightS(default, default, default, default, default, default);
me.fontSizeLeft(small, small, small, small, small, small);
me.fontSizeRight(small, small, small, small, 0, small);
me.fontSizeLeft(small, small, small, small, small, normal);
me.fontSizeRight(small, small, small, small, 0, normal);
me.fontSizeCenter(small, small, small, 0, small, 0);
me.colorLeft("blu", "blu", "blu", "blu", "blu", "wht");
@ -1475,6 +1475,7 @@ var canvas_MCDU_base = {
me["Simple_C2"].hide();
me["Simple_C3"].hide();
me["Simple_C4"].hide();
me["Simple_C5"].hide();
me["Simple_C6"].hide();
me["Simple_C1S"].show();
me["Simple_C2S"].hide();

View file

@ -1397,6 +1397,13 @@ var canvas_PFD_1 = {
me["ASI_group"].hide();
me["ASI_error"].show();
me["ASI_frame"].setColor(1,0,0);
me["clean_speed"].hide();
me["S_target"].hide();
me["F_target"].hide();
me["flap_max"].hide();
me["v1_group"].hide();
me["v1_text"].hide();
me["vr_speed"].hide();
}
if (dmc.DMController.DMCs[0].outputs[2] != nil) {
@ -1514,6 +1521,7 @@ var canvas_PFD_1 = {
me["ALT_group"].hide();
me["ALT_group2"].hide();
me["ALT_scale"].hide();
me["ALT_box_flash"].hide();
}
me.updateCommonFast();
@ -1866,10 +1874,7 @@ var canvas_PFD_2 = {
me["S_target"].hide();
}
tgt_flap = 215;
if (ind_spd >= 210) {
tgt_flap = 230;
}
tgt_flap = 200;
me.flaptrgt = tgt_flap - 30 - me.ASI;
me.SPDflaptrgtdiff = tgt_flap - ind_spd;
@ -1903,7 +1908,7 @@ var canvas_PFD_2 = {
me["F_target"].hide();
}
tgt_flap = 200;
tgt_flap = 185;
me.flaptrgt = tgt_flap - 30 - me.ASI;
me.SPDflaptrgtdiff = tgt_flap - ind_spd;
@ -1938,7 +1943,7 @@ var canvas_PFD_2 = {
me["F_target"].hide();
}
tgt_flap = 185;
tgt_flap = 177;
me.flaptrgt = tgt_flap - 30 - me.ASI;
me.SPDflaptrgtdiff = tgt_flap - ind_spd;
@ -1953,23 +1958,31 @@ var canvas_PFD_2 = {
me["S_target"].hide();
me["F_target"].hide();
me["clean_speed"].hide();
tgt_flap = 177;
me.flaptrgt = tgt_flap - 30 - me.ASI;
me.SPDflaptrgtdiff = tgt_flap - ind_spd;
if (me.SPDflaptrgtdiff >= -42 and me.SPDflaptrgtdiff <= 42) {
me["flap_max"].show();
me["flap_max"].setTranslation(0, me.flaptrgt * -6.6);
} else {
me["flap_max"].hide();
}
me["flap_max"].hide();
} else {
me["S_target"].hide();
me["F_target"].hide();
me["flap_max"].hide();
me.altitude = dmc.DMController.DMCs[0].outputs[1].getValue();
if (altitude.getValue() < 20000) {
tgt_flap = 215;
if (ind_spd >= 210) {
tgt_flap = 230;
}
me.flaptrgt = tgt_flap - 30 - me.ASI;
me.SPDflaptrgtdiff = tgt_flap - ind_spd;
if (me.SPDflaptrgtdiff >= -42 and me.SPDflaptrgtdiff <= 42) {
me["flap_max"].show();
me["flap_max"].setTranslation(0, me.flaptrgt * -6.6);
} else {
me["flap_max"].hide();
}
}
tgt_clean = 2 * weight_lbs.getValue() * 0.00045359237 + 85;
if (altitude.getValue() > 20000) {
tgt_clean += (altitude.getValue() - 20000) / 1000;
@ -1983,7 +1996,7 @@ var canvas_PFD_2 = {
me["clean_speed"].setTranslation(0, me.cleantrgt * -6.6);
} else {
me["clean_speed"].hide();
}
}
}
me.ASItrend = dmc.DMController.DMCs[1].outputs[6].getValue() - me.ASI;
@ -2002,8 +2015,15 @@ var canvas_PFD_2 = {
}
} else {
me["ASI_error"].show();
me["ASI_frame"].setColor(1,0,0);
me["ASI_group"].hide();
me["ASI_frame"].setColor(1,0,0);
me["clean_speed"].hide();
me["S_target"].hide();
me["F_target"].hide();
me["flap_max"].hide();
me["v1_group"].hide();
me["v1_text"].hide();
me["vr_speed"].hide();
}
if (dmc.DMController.DMCs[1].outputs[2] != nil) {
@ -2121,6 +2141,7 @@ var canvas_PFD_2 = {
me["ALT_group"].hide();
me["ALT_group2"].hide();
me["ALT_scale"].hide();
me["ALT_box_flash"].hide();
}
me.updateCommonFast();

View file

@ -127,7 +127,7 @@ var lskbutton = func(btn, i) {
initInputA("L5",i);
} else if (getprop("MCDU[" ~ i ~ "]/page") == "DATA") {
dataInput("L2",i);
} else if (getprop("MCDU[" ~ i ~ "]/page") == "PRINTFUNC") {
} else if (getprop("MCDU[" ~ i ~ "]/page") == "PRINTFUNC") {
printInput("L2",i);
} else if (getprop("MCDU[" ~ i ~ "]/page") == "PRINTFUNC2") {
printInput2("L2",i);