1
0
Fork 0

Fix power source on right hand side MCDU

This commit is contained in:
legoboyvdlp R 2020-07-22 18:35:09 +01:00
parent a1d20d78fb
commit b1a71ccfbf
9 changed files with 672 additions and 94 deletions

View file

@ -4314,6 +4314,9 @@
<atc>
<file>Aircraft/A320-family/Nasal/Panels/atc.nas</file>
</atc>
<atsu>
<file>Aircraft/A320-family/Nasal/Systems/Comm/Notification.nas</file>
</atsu>
<dmc>
<file>Aircraft/A320-family/Nasal/Displays/DMC.nas</file>
</dmc>

View file

@ -197,6 +197,7 @@ var ldg_config_f_set = props.globals.getNode("/FMGC/internal/ldg-config-f-set",
# Fetch nodes into vectors
var pageProp = [props.globals.getNode("/MCDU[0]/page", 1), props.globals.getNode("/MCDU[1]/page", 1)];
var active = [props.globals.getNode("/MCDU[0]/active", 1), props.globals.getNode("/MCDU[1]/active", 1)];
var activeAtsu = [props.globals.getNode("/MCDU[0]/atsu-active", 1), props.globals.getNode("/MCDU[1]/atsu-active", 1)];
# Create Nodes:
var pageSwitch = [props.globals.initNode("/MCDU[0]/internal/switch", 0, "BOOL"), props.globals.initNode("/MCDU[1]/internal/switch", 0, "BOOL")];
@ -270,7 +271,7 @@ var canvas_MCDU_base = {
"FUELPRED_ZFWCG","FUELPRED_ZFWCG_S","PROG","PROG_UPDATE","PERFTO","PERFTO_V1","PERFTO_VR","PERFTO_V2","PERFTO_FE","PERFTO_SE","PERFTO_OE","PERFAPPR",
"PERFAPPR_FE","PERFAPPR_SE","PERFAPPR_OE","PERFAPPR_LDG_3","PERFAPPR_LDG_F","PERFGA","PERFGA_FE","PERFGA_SE","PERFGA_OE","FPLN","FPLN_From",
"FPLN_TMPY_group","FPLN_FROM","FPLN_Callsign","departureTMPY", "arrowsDepArr","arrow1L","arrow2L","arrow3L","arrow4L","arrow5L","arrow1R","arrow2R",
"arrow3R","arrow4R","arrow5R","DIRTO_TMPY_group","IRSINIT","IRSINIT_1","IRSINIT_2","IRSINIT_star"];
"arrow3R","arrow4R","arrow5R","DIRTO_TMPY_group","IRSINIT","IRSINIT_1","IRSINIT_2","IRSINIT_star","NOTIFY","NOTIFY_FLTNBR","NOTIFY_AIRPORT"];
},
update: func() {
if (systems.ELEC.Bus.ac1.getValue() >= 110 and mcdu1_lgt.getValue() > 0.01) {
@ -288,6 +289,11 @@ var canvas_MCDU_base = {
},
updateCommon: func(i) {
page = pageProp[i].getValue();
if (page != "NOTIFICATION") {
me["NOTIFY"].hide();
me["NOTIFY_FLTNBR"].hide();
me["NOTIFY_AIRPORT"].hide();
}
if (page == "F-PLNA" or page == "F-PLNB") {
if (!pageSwitch[i].getBoolValue()) {
me["Simple"].show();
@ -429,9 +435,9 @@ var canvas_MCDU_base = {
me["Simple_L0S"].hide();
me.showLeftS(-1, -1, -1, -1, -1, -1);
me.showLeftArrow(1, 1, 1, 1, -1, -1);
me.showRight(-1, -1, -1, -1, -1, 1);
me.showRight(-1, -1, -1, -1, -1, -1);
me.showRightS(-1, -1, -1, -1, -1, -1);
me.showRightArrow(-1, -1, -1, -1, -1, 1);
me.showRightArrow(-1, -1, -1, -1, -1, -1);
me["Simple_C3B"].hide();
me["Simple_C4B"].hide();
@ -450,6 +456,8 @@ var canvas_MCDU_base = {
me.colorRightS("wht", "wht", "wht", "wht", "wht", "wht");
me.colorRightArrow("wht", "wht", "wht", "wht", "wht", "wht");
me["Simple_L3"].setText(" AIDS");
me["Simple_L4"].setText(" CFDS");
pageSwitch[i].setBoolValue(1);
}
@ -463,10 +471,296 @@ var canvas_MCDU_base = {
me["Simple_L1"].setText(" FMGC");
me["Simple_L1"].setColor(0.0509,0.7529,0.2941);
}
me["Simple_L2"].setText(" ACARS");
me["Simple_L3"].setText(" AIDS");
me["Simple_L4"].setText(" CFDS");
me["Simple_R6"].setText("RETURN ");
if (activeAtsu[i].getValue() == 0) {
me["Simple_L2"].setText(" ATSU");
me["Simple_L2"].setColor(1,1,1);
} else if (activeAtsu[i].getValue() == 1) {
me["Simple_L2"].setText(" ATSU(SEL)");
me["Simple_L2"].setColor(0.0901,0.6039,0.7176);
} else if (activeAtsu[i].getValue() == 2) {
me["Simple_L2"].setText(" ATSU");
me["Simple_L2"].setColor(0.0509,0.7529,0.2941);
}
} else if (page == "ATSUDLINK") {
if (!pageSwitch[i].getBoolValue()) {
me["Simple"].show();
me["Simple_Center"].hide();
me["FPLN"].hide();
me["DIRTO_TMPY_group"].hide();
me["INITA"].hide();
me["IRSINIT"].hide();
me["INITB"].hide();
me["FUELPRED"].hide();
me["PROG"].hide();
me["PERFTO"].hide();
me["arrowsDepArr"].hide();
me["PERFAPPR"].hide();
me["PERFGA"].hide();
me["Simple_Title"].show();
me["Simple_Title"].setText("ATSU DATALINK");
me["Simple_Title"].setColor(1, 1, 1);
me["Simple_PageNum"].setText("X/X");
me["Simple_PageNum"].hide();
me["ArrowLeft"].hide();
me["ArrowRight"].hide();
me.showLeft(1, -1, -1, -1, -1, -1);
me["Simple_L0S"].hide();
me.showLeftS(-1, -1, -1, -1, -1, -1);
me.showLeftArrow(1, -1, -1, -1, -1, -1);
me.showRight(1, -1, -1, -1, 1, 1);
me.showRightS(-1, -1, -1, -1, 1, -1);
me.showRightArrow(1, -1, -1, -1, 1, 1);
me["Simple_C3B"].hide();
me["Simple_C4B"].hide();
me.fontLeft(default, default, default, default, default, default);
me.fontLeftS(default, default, default, default, default, default);
me.fontRight(default, default, default, default, default, default);
me.fontRightS(default, default, default, default, default, default);
me.fontSizeLeft(normal, normal, normal, normal, normal, normal);
me.fontSizeRight(normal, normal, normal, normal, normal, normal);
me.colorLeft("wht", "wht", "wht", "wht", "wht", "wht");
me.colorLeftS("wht", "wht", "wht", "wht", "wht", "wht");
me.colorLeftArrow("wht", "wht", "wht", "wht", "wht", "wht");
me.colorRight("wht", "wht", "wht", "wht", "wht", "wht");
me.colorRightS("wht", "wht", "wht", "wht", "wht", "wht");
me.colorRightArrow("wht", "wht", "wht", "wht", "wht", "wht");
me["Simple_L1"].setText(" ATC MENU");
me["Simple_R1"].setText("AOC MENU ");
me["Simple_R5S"].setText("DATALINK ");
me["Simple_R5"].setText("STATUS ");
me["Simple_R6"].setText("COMM MENU ");
pageSwitch[i].setBoolValue(1);
}
} else if (page == "ATCMENU") {
if (!pageSwitch[i].getBoolValue()) {
me["Simple"].show();
me["Simple_Center"].hide();
me["FPLN"].hide();
me["DIRTO_TMPY_group"].hide();
me["INITA"].hide();
me["IRSINIT"].hide();
me["INITB"].hide();
me["FUELPRED"].hide();
me["PROG"].hide();
me["PERFTO"].hide();
me["arrowsDepArr"].hide();
me["PERFAPPR"].hide();
me["PERFGA"].hide();
me["Simple_Title"].show();
me["Simple_Title"].setText("ATC MENU");
me["Simple_Title"].setColor(1, 1, 1);
me["Simple_PageNum"].setText("1/2");
me["Simple_PageNum"].show();
me["ArrowLeft"].show();
me["ArrowRight"].show();
me.showLeft(1, 1, -1, 1, 1, 1);
me["Simple_L0S"].hide();
me.showLeftS(-1, -1, -1, -1, -1, 1);
me.showLeftArrow(1, 1, -1, 1, 1, 1);
me.showRight(1, 1, 1, -1, 1, 1);
me.showRightS(-1, -1, -1, -1, 1, -1);
me.showRightArrow(1, 1, 1, -1, 1, 1);
me["Simple_C3B"].hide();
me["Simple_C4B"].hide();
me.fontLeft(default, default, default, default, default, default);
me.fontLeftS(default, default, default, default, default, default);
me.fontRight(default, default, default, default, default, default);
me.fontRightS(default, default, default, default, default, default);
me.fontSizeLeft(normal, normal, normal, normal, normal, normal);
me.fontSizeRight(normal, normal, normal, normal, normal, normal);
me.colorLeft("wht", "wht", "wht", "wht", "wht", "wht");
me.colorLeftS("wht", "wht", "wht", "wht", "wht", "wht");
me.colorLeftArrow("wht", "wht", "wht", "wht", "wht", "wht");
me.colorRight("wht", "wht", "wht", "wht", "wht", "amb");
me.colorRightS("wht", "wht", "wht", "wht", "wht", "wht");
me.colorRightArrow("wht", "wht", "wht", "wht", "wht", "amb");
me["Simple_L1"].setText(" LAT REQ");
me["Simple_L2"].setText(" WHEN CAN WE");
me["Simple_L4"].setText(" MSG LOG");
me["Simple_L5"].setText(" NOTIFICATION");
me["Simple_L6S"].setText(" ATSU DLK");
me["Simple_L6"].setText(" RETURN");
me["Simple_R1"].setText("VERT REQ ");
me["Simple_R2"].setText("OTHER ");
me["Simple_R3"].setText("TEXT ");
me["Simple_R3"].setText("REPORTS ");
me["Simple_R5"].setText("STATUS ");
me["Simple_R5S"].setText("CONNECTION ");
me["Simple_R6"].setText("EMERGENCY ");
pageSwitch[i].setBoolValue(1);
}
} else if (page == "ATCMENU2") {
if (!pageSwitch[i].getBoolValue()) {
me["Simple"].show();
me["Simple_Center"].hide();
me["FPLN"].hide();
me["DIRTO_TMPY_group"].hide();
me["INITA"].hide();
me["IRSINIT"].hide();
me["INITB"].hide();
me["FUELPRED"].hide();
me["PROG"].hide();
me["PERFTO"].hide();
me["arrowsDepArr"].hide();
me["PERFAPPR"].hide();
me["PERFGA"].hide();
me["Simple_Title"].show();
me["Simple_Title"].setText("ATC MENU");
me["Simple_Title"].setColor(1, 1, 1);
me["Simple_PageNum"].setText("2/2");
me["Simple_PageNum"].show();
me["ArrowLeft"].show();
me["ArrowRight"].show();
me.showLeft(1, 1, -1, -1, -1, 1);
me["Simple_L0S"].hide();
me.showLeftS(-1, -1, -1, -1, -1, 1);
me.showLeftArrow(1, 1, -1, -1, -1, 1);
me.showRight(1, -1, -1, -1, -1, -1);
me.showRightS(-1, -1, -1, -1, -1, -1);
me.showRightArrow(1, -1, -1, -1, -1, -1);
me["Simple_C3B"].hide();
me["Simple_C4B"].hide();
me.fontLeft(default, default, default, default, default, default);
me.fontLeftS(default, default, default, default, default, default);
me.fontRight(default, default, default, default, default, default);
me.fontRightS(default, default, default, default, default, default);
me.fontSizeLeft(normal, normal, normal, normal, normal, normal);
me.fontSizeRight(normal, normal, normal, normal, normal, normal);
me.colorLeft("wht", "wht", "wht", "wht", "wht", "wht");
me.colorLeftS("wht", "wht", "wht", "wht", "wht", "wht");
me.colorLeftArrow("wht", "wht", "wht", "wht", "wht", "wht");
me.colorRight("wht", "wht", "wht", "wht", "wht", "wht");
me.colorRightS("wht", "wht", "wht", "wht", "wht", "wht");
me.colorRightArrow("wht", "wht", "wht", "wht", "wht", "wht");
me["Simple_L1"].setText(" DEPART REQ");
me["Simple_L2"].setText(" OCEANIC REQ");
me["Simple_L6S"].setText(" ATSU DLK");
me["Simple_L6"].setText(" RETURN");
me["Simple_R1"].setText("ATIS ");
pageSwitch[i].setBoolValue(1);
}
} else if (page == "NOTIFICATION") {
if (!pageSwitch[i].getBoolValue()) {
me["Simple"].show();
me["Simple_Center"].show();
me["FPLN"].hide();
me["DIRTO_TMPY_group"].hide();
me["INITA"].hide();
me["IRSINIT"].hide();
me["INITB"].hide();
me["FUELPRED"].hide();
me["PROG"].hide();
me["PERFTO"].hide();
me["arrowsDepArr"].hide();
me["PERFAPPR"].hide();
me["PERFGA"].hide();
me["Simple_Title"].show();
me["Simple_Title"].setText("NOTIFICATION");
me["Simple_Title"].setColor(1, 1, 1);
me["Simple_PageNum"].setText("X/X");
me["Simple_PageNum"].hide();
me["ArrowLeft"].hide();
me["ArrowRight"].hide();
me.showLeft(1, 1, -1, -1, -1, 1);
me["Simple_L0S"].hide();
me.showLeftS(1, 1, -1, -1, -1, 1);
me.showLeftArrow(-1, -1, -1, -1, -1, 1);
me.showCenter(-1, 1, -1, -1, -1, -1);
me.showCenterS(-1, -1, -1, -1, -1, -1);
me.showRight(-1, 1, -1, -1, -1, 1);
me.showRightS(-1, -1, -1, -1, -1, 1);
me.showRightArrow(-1, -1, -1, -1, -1, 1);
me["Simple_C3B"].hide();
me["Simple_C4B"].hide();
me.fontLeft(default, default, default, default, default, default);
me.fontLeftS(default, default, default, default, default, default);
me.fontRight(default, default, default, default, default, default);
me.fontRightS(default, default, default, default, default, default);
me.fontSizeLeft(small, normal, normal, normal, normal, normal);
me.fontSizeCenter(normal, normal, normal, normal, small, normal);
me.fontSizeRight(normal, normal, normal, normal, normal, normal);
me.colorLeft("grn", "blu", "grn", "wht", "wht", "wht");
me.colorLeftS("wht", "wht", "wht", "wht", "wht", "wht");
me.colorLeftArrow("wht", "wht", "wht", "wht", "wht", "wht");
me.colorCenter("wht", "wht", "wht", "wht", "amb", "wht");
me.colorRight("wht", "blu", "wht", "wht", "wht", "wht");
me.colorRightS("wht", "wht", "wht", "wht", "wht", "wht");
me.colorRightArrow("wht", "wht", "wht", "wht", "wht", "wht");
me["Simple_L1S"].setText(" ATC FLT NBR");
me["Simple_L2S"].setText(" ATC CENTER");
me["Simple_C2"].setText("------------ ");
me["Simple_R2"].setText("NOTIFY ");
me["Simple_C5"].setText("NOTIFICATION UNAVAILABLE");
me["Simple_L6S"].setText(" ATC MENU");
me["Simple_L6"].setText(" RETURN");
me["Simple_R6"].setText("STATUS ");
me["Simple_R6S"].setText("CONNECTION ");
if (fmgc.FMGCInternal.flightNumSet) {
me["NOTIFY_FLTNBR"].hide();
me["Simple_L1"].setText(fmgc.FMGCInternal.flightNum);
me["Simple_L1"].show();
me["Simple_C5"].hide();
} else {
me["Simple_L1"].hide();
me["NOTIFY_FLTNBR"].show();
me["Simple_C5"].show();
}
pageSwitch[i].setBoolValue(1);
}
if (atsu.notificationSystem.notifyAirport != nil) {
if (!atsu.notificationSystem.hasNotified) {
me["Simple_L2"].setText(atsu.notificationSystem.notifyAirport);
me["Simple_L2"].show();
me["NOTIFY_AIRPORT"].hide();
} else {
me["Simple_L2"].hide();
me["NOTIFY_AIRPORT"].show();
}
} else {
me["Simple_L2"].hide();
me["NOTIFY_AIRPORT"].show();
}
if (atsu.notificationSystem.hasNotified) {
me["NOTIFY"].hide();
me["Simple_L3"].setText(atsu.notificationSystem.notifyAirport);
me["Simple_L3"].show();
me["Simple_L3S"].setText(" ATC NOTIFIED");
me["Simple_L3S"].show();
} else {
me["NOTIFY"].show();
me["Simple_L3"].hide();
me["Simple_L3S"].hide();
}
} else if (page == "STATUS") {
if (!pageSwitch[i].getBoolValue()) {
me["Simple"].show();

View file

@ -174,6 +174,31 @@
</action>
</animation>
<animation>
<type>pick</type>
<object-name>atc_comm</object-name>
<action>
<button>0</button>
<repeatable>false</repeatable>
<binding>
<command>nasal</command>
<script>mcdu.pagebutton("atc", 0);</script>
<condition>
<and>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<value>110</value>
</greater-than-equals>
<greater-than>
<property>controls/lighting/DU/mcdu1</property>
<value>0.01</value>
</greater-than>
</and>
</condition>
</binding>
</action>
</animation>
<animation>
<type>pick</type>
<object-name>mcdu</object-name>

View file

@ -174,6 +174,31 @@
</action>
</animation>
<animation>
<type>pick</type>
<object-name>atc_comm</object-name>
<action>
<button>0</button>
<repeatable>false</repeatable>
<binding>
<command>nasal</command>
<script>mcdu.pagebutton("atc", 1);</script>
<condition>
<and>
<greater-than-equals>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
<greater-than>
<property>controls/lighting/DU/mcdu2</property>
<value>0.01</value>
</greater-than>
</and>
</condition>
</binding>
</action>
</animation>
<animation>
<type>pick</type>
<object-name>mcdu</object-name>

View file

@ -2711,4 +2711,129 @@
y="385.6102"
style="font-style:normal;font-variant:normal;font-weight:500;font-stretch:normal;font-size:63.9924px;line-height:1.25;font-family:'Helvetica Medium';-inkscape-font-specification:'Helvetica Medium, Medium';text-align:start;text-anchor:start;fill:#ffffff;fill-opacity:1">=</tspan></text>
</g>
<g
style="stroke:#179ab7;stroke-opacity:1;opacity:0.98"
id="NOTIFY"
inkscape:label="#g4324"
transform="matrix(1.0807111,0,0,1.0807111,-76.372598,-23.411021)">
<path
sodipodi:nodetypes="cc"
inkscape:connector-curvature="0"
id="path1243"
d="m 998.71909,284.70793 -28.52965,0"
style="fill:none;stroke:#179ab7;stroke-width:4.07999992;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<path
style="fill:none;stroke:#179ab7;stroke-width:4.07999992;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 994.54102,294.79468 -20.17351,-20.1735"
id="path1245"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cc" />
<path
sodipodi:nodetypes="cc"
inkscape:connector-curvature="0"
id="path1247"
d="m 984.45427,298.97275 -10e-6,-28.52964"
style="fill:none;stroke:#179ab7;stroke-width:4.07999992;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<path
style="fill:none;stroke:#179ab7;stroke-width:4.07999992;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 974.36752,294.79468 20.17349,-20.1735"
id="path1249"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cc" />
</g>
<g
style="opacity:0.87000002"
transform="translate(-833.84414,-0.00452979)"
id="NOTIFY_FLTNBR"
inkscape:label="#g4310-0">
<rect
y="145.3544"
x="968.38361"
height="41.350403"
width="39.4547"
id="rect1248"
style="fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#bb6100;stroke-width:4.03199005;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke" />
<rect
style="fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#bb6100;stroke-width:4.03199005;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke"
id="rect1250"
width="39.4547"
height="41.350403"
x="928.92468"
y="145.3544" />
<rect
y="145.3544"
x="889.46741"
height="41.350403"
width="39.4547"
id="rect1252"
style="fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#bb6100;stroke-width:4.03199005;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke" />
<rect
style="fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#bb6100;stroke-width:4.03199005;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke"
id="rect1254"
width="39.4547"
height="41.350403"
x="850.01111"
y="145.3544" />
<rect
style="fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#bb6100;stroke-width:4.03199005;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke"
id="rect1256"
width="39.4547"
height="41.350403"
x="1126.2086"
y="145.35753" />
<rect
y="145.35753"
x="1086.7496"
height="41.350403"
width="39.4547"
id="rect1258"
style="fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#bb6100;stroke-width:4.03199005;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke" />
<rect
style="fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#bb6100;stroke-width:4.03199005;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke"
id="rect1260"
width="39.4547"
height="41.350403"
x="1047.2924"
y="145.35753" />
<rect
y="145.35753"
x="1007.8361"
height="41.350403"
width="39.4547"
id="rect1262"
style="fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#bb6100;stroke-width:4.03199005;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke" />
</g>
<g
id="NOTIFY_AIRPORT"
transform="translate(-549.98102,-4.468198)"
inkscape:label="#g1271">
<rect
style="fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#bb6100;stroke-width:4.03199005;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke"
id="rect4312-2"
width="39.4547"
height="41.350403"
x="684.51605"
y="268.18988" />
<rect
y="268.18988"
x="645.05713"
height="41.350403"
width="39.4547"
id="rect4314-6"
style="fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#bb6100;stroke-width:4.03199005;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke" />
<rect
style="fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#bb6100;stroke-width:4.03199005;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke"
id="rect4316-8"
width="39.4547"
height="41.350403"
x="605.59985"
y="268.18988" />
<rect
y="268.18988"
x="566.14355"
height="41.350403"
width="39.4547"
id="rect4318-9"
style="fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#bb6100;stroke-width:4.03199005;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 143 KiB

After

Width:  |  Height:  |  Size: 148 KiB

View file

@ -10,9 +10,10 @@ var MCDU_init = func(i) {
var MCDU_reset = func(i) {
setprop("/MCDU[" ~ i ~ "]/active", 0);
setprop("/MCDU[" ~ i ~ "]/atsu-active", 0);
setprop("it-autoflight/settings/togaspd", 157); #aka v2 clone
setprop("/MCDU[" ~ i ~ "]/last-page", "NONE");
setprop("/MCDU[" ~ i ~ "]/last-fmgc-page", "STATUS");
setprop("/MCDU[" ~ i ~ "]/last-atsu-page", "ATSUDLINK");
setprop("/MCDU[" ~ i ~ "]/page", "MCDU");
setprop("/FMGC/keyboard-left", 0);
@ -199,17 +200,21 @@ var setMode = func(will) {
var lskbutton = func(btn, i) {
if (btn == "1") {
if (getprop("/MCDU[" ~ i ~ "]/page") == "MCDU") {
if (getprop("/MCDU[" ~ i ~ "]/active") != 2) {
mcdu_message(i, "WAIT FOR SYSTEM RESPONSE");
setprop("/MCDU[" ~ i ~ "]/active", 1);
settimer(func(){
if (getprop("/MCDU[" ~ i ~ "]/atsu-active") == 1) {
mcdu_message(i, "NOT ALLOWED");
} else {
if (getprop("/MCDU[" ~ i ~ "]/active") != 2) {
mcdu_message(i, "WAIT FOR SYSTEM RESPONSE");
setprop("/MCDU[" ~ i ~ "]/active", 1);
settimer(func(){
setprop("/MCDU[" ~ i ~ "]/page", getprop("/MCDU[" ~ i ~ "]/last-fmgc-page"));
mcdu_scratchpad.scratchpads[i].empty();
setprop("/MCDU[" ~ i ~ "]/active", 2);
}, 2);
} else {
setprop("/MCDU[" ~ i ~ "]/page", getprop("/MCDU[" ~ i ~ "]/last-fmgc-page"));
mcdu_scratchpad.scratchpads[i].empty();
setprop("/MCDU[" ~ i ~ "]/active", 2);
}, 2);
} else {
setprop("/MCDU[" ~ i ~ "]/page", getprop("/MCDU[" ~ i ~ "]/last-fmgc-page"));
mcdu_scratchpad.scratchpads[i].empty();
}
}
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "IRSINIT") {
initInputIRS("L1",i);
@ -258,11 +263,30 @@ var lskbutton = func(btn, i) {
canvas_mcdu.myDirTo[i].fieldL1(mcdu_scratchpad.scratchpads[i].scratchpad);
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "DUPLICATENAMES") {
canvas_mcdu.myDuplicate[i].pushButtonLeft(1);
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "ATSUDLINK") {
setprop("/MCDU[" ~ i ~ "]/page", "ATCMENU");
} else {
mcdu_message(i, "NOT ALLOWED");
}
} else if (btn == "2") {
if (getprop("/MCDU[" ~ i ~ "]/page") == "INITA") {
if (getprop("/MCDU[" ~ i ~ "]/page") == "MCDU") {
if (getprop("/MCDU[" ~ i ~ "]/active") == 1) {
mcdu_message(i, "NOT ALLOWED");
} else {
if (getprop("/MCDU[" ~ i ~ "]/atsu-active") != 2) {
mcdu_message(i, "WAIT FOR SYSTEM RESPONSE");
setprop("/MCDU[" ~ i ~ "]/atsu-active", 1);
settimer(func(){
setprop("/MCDU[" ~ i ~ "]/page", getprop("/MCDU[" ~ i ~ "]/last-atsu-page"));
mcdu_scratchpad.scratchpads[i].empty();
setprop("/MCDU[" ~ i ~ "]/atsu-active", 2);
}, 2);
} else {
setprop("/MCDU[" ~ i ~ "]/page", getprop("/MCDU[" ~ i ~ "]/last-atsu-page"));
mcdu_scratchpad.scratchpads[i].empty();
}
}
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "INITA") {
initInputA("L2",i);
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "WINDCLB") {
canvas_mcdu.myCLBWIND[i].pushButtonLeft(2);
@ -298,6 +322,15 @@ var lskbutton = func(btn, i) {
canvas_mcdu.myDirTo[i].leftFieldBtn(2);
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "DUPLICATENAMES") {
canvas_mcdu.myDuplicate[i].pushButtonLeft(2);
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "NOTIFICATION") {
var result = atsu.notificationSystem.inputAirport(mcdu_scratchpad.scratchpads[i].scratchpad);
if (result == 1) {
mcdu_message(i, "NOT ALLOWED");
} elsif (result == 2) {
mcdu_message(i, "NOT IN DATA BASE");
} else {
mcdu_scratchpad.scratchpads[i].empty();
}
} else {
mcdu_message(i, "NOT ALLOWED");
}
@ -434,6 +467,8 @@ var lskbutton = func(btn, i) {
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "CLOSESTAIRPORT") {
canvas_mcdu.myClosestAirport[i].manAirportCall(mcdu_scratchpad.scratchpads[i].scratchpad);
mcdu_scratchpad.scratchpads[i].empty();
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "ATCMENU") {
setprop("/MCDU[" ~ i ~ "]/page", "NOTIFICATION");
} else {
mcdu_message(i, "NOT ALLOWED");
}
@ -491,6 +526,10 @@ var lskbutton = func(btn, i) {
canvas_mcdu.myDirTo[i].fieldL6();
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "CLOSESTAIRPORT") {
canvas_mcdu.myClosestAirport[i].freeze();
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "ATCMENU" or getprop("/MCDU[" ~ i ~ "]/page") == "ATCMENU2") {
setprop("/MCDU[" ~ i ~ "]/page", "ATSUDLINK");
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "NOTIFICATION") {
setprop("/MCDU[" ~ i ~ "]/page", "ATCMENU");
} else {
mcdu_message(i, "NOT ALLOWED");
}
@ -565,6 +604,11 @@ var rskbutton = func(btn, i) {
canvas_mcdu.myArrival[i].arrPushbuttonRight(2);
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "F-PLNA" or getprop("/MCDU[" ~ i ~ "]/page") == "F-PLNB") {
canvas_mcdu.myFpln[i].pushButtonRight(2);
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "NOTIFICATION") {
var result = atsu.notificationSystem.notify();
if (result == 1) {
mcdu_message(i, "NOT ALLOWED");
}
} else {
mcdu_message(i, "NOT ALLOWED");
}
@ -734,14 +778,7 @@ var rskbutton = func(btn, i) {
mcdu_message(i, "NOT ALLOWED");
}
} else if (btn == "6") {
if (getprop("/MCDU[" ~ i ~ "]/page") == "MCDU") {
if (getprop("/MCDU[" ~ i ~ "]/last-page") != "NONE") {
setprop("/MCDU[" ~ i ~ "]/page", getprop("/MCDU[" ~ i ~ "]/last-page"));
mcdu_scratchpad.scratchpads[i].empty();
} else {
mcdu_message(i, "NOT ALLOWED");
}
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "INITA") {
if (getprop("/MCDU[" ~ i ~ "]/page") == "INITA") {
initInputA("R6",i);
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "IRSINIT") {
initInputIRS("R6",i);
@ -813,6 +850,10 @@ var arrowbutton = func(btn, i) {
canvas_mcdu.myArrival[i].scrollLeft();
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "PILOTWP") {
canvas_mcdu.myPilotWP[i].scrollLeft();
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "ATCMENU") {
setprop("/MCDU[" ~ i ~ "]/page", "ATCMENU2");
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "ATCMENU2") {
setprop("/MCDU[" ~ i ~ "]/page", "ATCMENU");
}
} else if (btn == "right") {
if (getprop("/MCDU[" ~ i ~ "]/page") == "DATA") {
@ -837,6 +878,10 @@ var arrowbutton = func(btn, i) {
canvas_mcdu.myArrival[i].scrollRight();
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "PILOTWP") {
canvas_mcdu.myPilotWP[i].scrollRight();
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "ATCMENU") {
setprop("/MCDU[" ~ i ~ "]/page", "ATCMENU2");
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "ATCMENU2") {
setprop("/MCDU[" ~ i ~ "]/page", "ATCMENU");
}
} else if (btn == "up") {
if (getprop("/MCDU[" ~ i ~ "]/page") == "F-PLNA" or getprop("/MCDU[" ~ i ~ "]/page") == "F-PLNB") {
@ -908,8 +953,12 @@ var pagebutton = func(btn, i) {
} else if (btn == "data") {
setprop("/MCDU[" ~ i ~ "]/page", "DATA");
} else if (btn == "mcdu") {
setprop("/MCDU[" ~ i ~ "]/last-page", getprop("/MCDU[" ~ i ~ "]/page"));
setprop("/MCDU[" ~ i ~ "]/last-fmgc-page", getprop("/MCDU[" ~ i ~ "]/page"));
var page = getprop("/MCDU[" ~ i ~ "]/page");
if (page != "ATSUDLINK" and page != "ATCMENU" and page != "ATCMENU2" and page != "NOTIFICATION") {
setprop("/MCDU[" ~ i ~ "]/last-fmgc-page", getprop("/MCDU[" ~ i ~ "]/page"));
} else {
setprop("/MCDU[" ~ i ~ "]/last-atsu-page", getprop("/MCDU[" ~ i ~ "]/page"));
}
mcdu_message(i, "SELECT DESIRED SYSTEM");
setprop("/MCDU[" ~ i ~ "]/page", "MCDU");
} else if (btn == "f-pln" or btn == "airport") {
@ -941,6 +990,18 @@ var pagebutton = func(btn, i) {
canvas_mcdu.myDirTo[i] = dirTo.new(i);
}
setprop("/MCDU[" ~ i ~ "]/page", "DIRTO");
} else if (btn == "atc") {
if (getprop("/MCDU[" ~ i ~ "]/atsu-active") != 2) {
mcdu_message(i, "WAIT FOR SYSTEM RESPONSE");
setprop("/MCDU[" ~ i ~ "]/atsu-active", 1);
settimer(func(){
setprop("/MCDU[" ~ i ~ "]/page", "ATCMENU");
mcdu_scratchpad.scratchpads[i].empty();
setprop("/MCDU[" ~ i ~ "]/atsu-active", 2);
}, 2);
} else {
setprop("/MCDU[" ~ i ~ "]/page", "ATCMENU");
}
}
}
}

View file

@ -0,0 +1,25 @@
# A3XX Notification System
# Jonathan Redpath
# Copyright (c) 2020 Josh Davidson (Octal450)
var notificationSystem = {
notifyAirport: nil,
hasNotified: 0,
inputAirport: func(airport) {
if (!fmgc.FMGCInternal.flightNumSet or size(airport) != 4) { return 1; }
var airportList = findAirportsByICAO(airport);
if (size(airportList) == 0) { return 2; }
if (me.hasNotified) { me.hasNotified = 0; }
me.notifyAirport = airportList[0].id;
return 0;
},
notify: func() {
if (me.notifyAirport != nil) {
me.hasNotified = 1;
# todo - send notification to ATC
return 0;
} else {
return 1;
}
},
};

View file

@ -466,6 +466,16 @@
<legend>ATC</legend>
<pref-height>25</pref-height>
<pref-width>40</pref-width>
<binding>
<command>nasal</command>
<script>mcdu.pagebutton("atc", 0);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<value>110</value>
</greater-than-equals>
</condition>
</binding>
</button>
<button>

View file

@ -77,7 +77,7 @@
<script>mcdu.lskbutton("1", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -93,7 +93,7 @@
<script>mcdu.lskbutton("2", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -109,7 +109,7 @@
<script>mcdu.lskbutton("3", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -125,7 +125,7 @@
<script>mcdu.lskbutton("4", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -141,7 +141,7 @@
<script>mcdu.lskbutton("5", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -157,7 +157,7 @@
<script>mcdu.lskbutton("6", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -212,7 +212,7 @@
<script>mcdu.rskbutton("1", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -228,7 +228,7 @@
<script>mcdu.rskbutton("2", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -244,7 +244,7 @@
<script>mcdu.rskbutton("3", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -260,7 +260,7 @@
<script>mcdu.rskbutton("4", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -276,7 +276,7 @@
<script>mcdu.rskbutton("5", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -292,7 +292,7 @@
<script>mcdu.rskbutton("6", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -335,7 +335,7 @@
<script>mcdu.pagebutton("prog", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -351,7 +351,7 @@
<script>mcdu.pagebutton("perf", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -367,7 +367,7 @@
<script>mcdu.pagebutton("init", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -383,7 +383,7 @@
<script>mcdu.pagebutton("data", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -417,7 +417,7 @@
<script>mcdu.pagebutton("f-pln", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -433,7 +433,7 @@
<script>mcdu.pagebutton("radnav", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -449,7 +449,7 @@
<script>mcdu.pagebutton("fuel-pred", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -466,6 +466,16 @@
<legend>ATC</legend>
<pref-height>25</pref-height>
<pref-width>40</pref-width>
<binding>
<command>nasal</command>
<script>mcdu.pagebutton("atc", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
</binding>
</button>
<button>
@ -477,7 +487,7 @@
<script>mcdu.pagebutton("mcdu", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -538,7 +548,7 @@
<script>mcdu.arrowbutton("left", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -556,7 +566,7 @@
<script>mcdu.arrowbutton("right", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -582,7 +592,7 @@
<script>mcdu.arrowbutton("up", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -600,7 +610,7 @@
<script>mcdu.arrowbutton("down", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -622,7 +632,7 @@
<script>mcdu.button("1", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -640,7 +650,7 @@
<script>mcdu.button("4", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -658,7 +668,7 @@
<script>mcdu.button("7", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -676,7 +686,7 @@
<script>mcdu.button("DOT", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -694,7 +704,7 @@
<script>mcdu.button("2", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -712,7 +722,7 @@
<script>mcdu.button("5", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -730,7 +740,7 @@
<script>mcdu.button("8", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -748,7 +758,7 @@
<script>mcdu.button("0", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -766,7 +776,7 @@
<script>mcdu.button("3", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -784,7 +794,7 @@
<script>mcdu.button("6", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -802,7 +812,7 @@
<script>mcdu.button("9", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -820,7 +830,7 @@
<script>mcdu.button("PLUSMINUS", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -843,7 +853,7 @@
<script>mcdu.button("A", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -861,7 +871,7 @@
<script>mcdu.button("F", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -879,7 +889,7 @@
<script>mcdu.button("K", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -897,7 +907,7 @@
<script>mcdu.button("P", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -915,7 +925,7 @@
<script>mcdu.button("U", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -933,7 +943,7 @@
<script>mcdu.button("Z", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -951,7 +961,7 @@
<script>mcdu.button("B", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -969,7 +979,7 @@
<script>mcdu.button("G", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -987,7 +997,7 @@
<script>mcdu.button("L", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -1005,7 +1015,7 @@
<script>mcdu.button("Q", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -1023,7 +1033,7 @@
<script>mcdu.button("V", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -1041,7 +1051,7 @@
<script>mcdu.button("SLASH", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -1059,7 +1069,7 @@
<script>mcdu.button("C", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -1077,7 +1087,7 @@
<script>mcdu.button("H", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -1095,7 +1105,7 @@
<script>mcdu.button("M", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -1113,7 +1123,7 @@
<script>mcdu.button("R", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -1131,7 +1141,7 @@
<script>mcdu.button("W", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -1149,7 +1159,7 @@
<script>mcdu.button("SP", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -1167,7 +1177,7 @@
<script>mcdu.button("D", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -1185,7 +1195,7 @@
<script>mcdu.button("I", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -1203,7 +1213,7 @@
<script>mcdu.button("N", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -1221,7 +1231,7 @@
<script>mcdu.button("S", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -1239,7 +1249,7 @@
<script>mcdu.button("X", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -1257,7 +1267,7 @@
<script>mcdu.button("OVFY", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -1275,7 +1285,7 @@
<script>mcdu.button("E", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -1293,7 +1303,7 @@
<script>mcdu.button("J", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -1311,7 +1321,7 @@
<script>mcdu.button("O", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -1329,7 +1339,7 @@
<script>mcdu.button("T", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -1347,7 +1357,7 @@
<script>mcdu.button("Y", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>
@ -1365,7 +1375,7 @@
<script>mcdu.button("CLR", 1);</script>
<condition>
<greater-than-equals>
<property>systems/electrical/bus/ac-1</property>
<property>systems/electrical/bus/ac-2</property>
<value>110</value>
</greater-than-equals>
</condition>