1
0
Fork 0

Merge branch 'dev' into 3D

This commit is contained in:
legoboyvdlp R 2020-07-25 01:23:56 +01:00
commit 8d150121b5
14 changed files with 1576 additions and 555 deletions

View file

@ -1394,6 +1394,14 @@
<steep-ils-avail type="bool">0</steep-ils-avail> <steep-ils-avail type="bool">0</steep-ils-avail>
<enable-ecam-actions>0</enable-ecam-actions> <enable-ecam-actions>0</enable-ecam-actions>
<test-canvas type="bool">0</test-canvas> <test-canvas type="bool">0</test-canvas>
<model-options>
<registration type="string">G-EZTB</registration>
<three-letter type="string">EZY</three-letter>
<two-letter type="string">U2</two-letter>
<sharklet type="bool">0</sharklet>
<wifi-aft type="bool">0</wifi-aft> <!-- Iridium / inmarsat satcom + wireless -->
<wifi-fwd type="bool">0</wifi-fwd> <!-- Fly-fy-->
</model-options>
</options> </options>
<instrumentation n="0"> <instrumentation n="0">
@ -4335,6 +4343,9 @@
<atc> <atc>
<file>Aircraft/A320-family/Nasal/Panels/atc.nas</file> <file>Aircraft/A320-family/Nasal/Panels/atc.nas</file>
</atc> </atc>
<atsu>
<file>Aircraft/A320-family/Nasal/Systems/Comm/Notification.nas</file>
</atsu>
<dmc> <dmc>
<file>Aircraft/A320-family/Nasal/Displays/DMC.nas</file> <file>Aircraft/A320-family/Nasal/Displays/DMC.nas</file>
</dmc> </dmc>

File diff suppressed because it is too large Load diff

View file

@ -58,7 +58,7 @@
<object-name>BRT</object-name> <object-name>BRT</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>false</repeatable> <repeatable>true</repeatable>
<binding> <binding>
<condition> <condition>
<greater-than-equals> <greater-than-equals>
@ -70,7 +70,7 @@
<property>controls/lighting/DU/mcdu1</property> <property>controls/lighting/DU/mcdu1</property>
<min>0.0</min> <min>0.0</min>
<max>1.0</max> <max>1.0</max>
<step>0.2</step> <step>0.05</step>
<wrap>false</wrap> <wrap>false</wrap>
</binding> </binding>
</action> </action>
@ -81,7 +81,7 @@
<object-name>DIM</object-name> <object-name>DIM</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>false</repeatable> <repeatable>true</repeatable>
<binding> <binding>
<condition> <condition>
<greater-than-equals> <greater-than-equals>
@ -93,7 +93,7 @@
<property>controls/lighting/DU/mcdu1</property> <property>controls/lighting/DU/mcdu1</property>
<min>0.0</min> <min>0.0</min>
<max>1.0</max> <max>1.0</max>
<step>-0.2</step> <step>-0.05</step>
<wrap>false</wrap> <wrap>false</wrap>
</binding> </binding>
</action> </action>
@ -174,6 +174,31 @@
</action> </action>
</animation> </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> <animation>
<type>pick</type> <type>pick</type>
<object-name>mcdu</object-name> <object-name>mcdu</object-name>

View file

@ -58,7 +58,7 @@
<object-name>BRT</object-name> <object-name>BRT</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>false</repeatable> <repeatable>true</repeatable>
<binding> <binding>
<condition> <condition>
<greater-than-equals> <greater-than-equals>
@ -70,7 +70,7 @@
<property>controls/lighting/DU/mcdu2</property> <property>controls/lighting/DU/mcdu2</property>
<min>0.0</min> <min>0.0</min>
<max>1.0</max> <max>1.0</max>
<step>0.2</step> <step>0.05</step>
<wrap>false</wrap> <wrap>false</wrap>
</binding> </binding>
</action> </action>
@ -81,7 +81,7 @@
<object-name>DIM</object-name> <object-name>DIM</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>false</repeatable> <repeatable>true</repeatable>
<binding> <binding>
<condition> <condition>
<greater-than-equals> <greater-than-equals>
@ -93,7 +93,7 @@
<property>controls/lighting/DU/mcdu2</property> <property>controls/lighting/DU/mcdu2</property>
<min>0.0</min> <min>0.0</min>
<max>1.0</max> <max>1.0</max>
<step>-0.2</step> <step>-0.05</step>
<wrap>false</wrap> <wrap>false</wrap>
</binding> </binding>
</action> </action>
@ -174,6 +174,31 @@
</action> </action>
</animation> </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> <animation>
<type>pick</type> <type>pick</type>
<object-name>mcdu</object-name> <object-name>mcdu</object-name>

View file

@ -12,7 +12,7 @@
viewBox="0 0 1024 864" viewBox="0 0 1024 864"
version="1.1" version="1.1"
id="svg2" id="svg2"
inkscape:version="1.0beta2 (2b71d25, 2019-12-03)" inkscape:version="0.92.4 (5da689c313, 2019-01-14)"
sodipodi:docname="mcdu.svg"> sodipodi:docname="mcdu.svg">
<metadata <metadata
id="metadata375"> id="metadata375">
@ -37,17 +37,17 @@
guidetolerance="20" guidetolerance="20"
inkscape:pageopacity="1" inkscape:pageopacity="1"
inkscape:pageshadow="2" inkscape:pageshadow="2"
inkscape:window-width="1920" inkscape:window-width="1366"
inkscape:window-height="1035" inkscape:window-height="705"
id="namedview371" id="namedview371"
showgrid="true" showgrid="true"
inkscape:zoom="1.1488097" inkscape:zoom="1.1488097"
inkscape:cx="846.91312" inkscape:cx="1021.6506"
inkscape:cy="326.27773" inkscape:cy="302.3673"
inkscape:window-x="0" inkscape:window-x="-8"
inkscape:window-y="23" inkscape:window-y="-8"
inkscape:window-maximized="0" inkscape:window-maximized="1"
inkscape:current-layer="FUELPRED" inkscape:current-layer="svg2"
showguides="false" showguides="false"
inkscape:snap-global="false" inkscape:snap-global="false"
units="px" units="px"
@ -2711,4 +2711,279 @@
y="385.6102" 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> 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>
<g
style="stroke:#179ab7;stroke-opacity:1;opacity:0.94000004"
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>
<g
transform="matrix(1.0807111,0,0,1.0807111,-76.372598,-141.09805)"
inkscape:label="#g4324"
id="COCALL"
style="opacity:0.94000005;stroke:#179ab7;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 998.71909,284.70793 H 970.18944"
id="path1272"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cc" />
<path
sodipodi:nodetypes="cc"
inkscape:connector-curvature="0"
id="path1274"
d="m 994.54102,294.79468 -20.17351,-20.1735"
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 984.45427,298.97275 -10e-6,-28.52964"
id="path1276"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cc" />
<path
sodipodi:nodetypes="cc"
inkscape:connector-curvature="0"
id="path1278"
d="m 974.36752,294.79468 20.17349,-20.1735"
style="fill:none;stroke:#179ab7;stroke-width:4.07999992;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
</g>
<g
style="opacity:0.88;stroke:#ffffff;stroke-opacity:1"
id="COCALLTUNE"
inkscape:label="#g4324"
transform="matrix(1.0807111,0,0,1.0807111,-1029.0108,-141.09805)">
<path
sodipodi:nodetypes="cc"
inkscape:connector-curvature="0"
id="path1280"
d="M 998.71909,284.70793 H 970.18944"
style="fill:none;stroke:#ffffff;stroke-width:4.07999992;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<path
style="fill:none;stroke:#ffffff;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="path1282"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cc" />
<path
sodipodi:nodetypes="cc"
inkscape:connector-curvature="0"
id="path1284"
d="m 984.45427,298.97275 -10e-6,-28.52964"
style="fill:none;stroke:#ffffff;stroke-width:4.07999992;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<path
style="fill:none;stroke:#ffffff;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="path1286"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cc" />
</g>
<g
style="opacity:0.97000002;stroke:#179ab7;stroke-opacity:1"
id="COMM-ADS"
inkscape:label="#g4324"
transform="matrix(1.0807111,0,0,1.0807111,-1029.7034,213.33078)">
<path
sodipodi:nodetypes="cc"
inkscape:connector-curvature="0"
id="path1273"
d="M 998.71909,284.70793 H 970.18944"
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="path1275"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cc" />
<path
sodipodi:nodetypes="cc"
inkscape:connector-curvature="0"
id="path1277"
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="path1279"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cc" />
</g>
<g
style="stroke:#ffffff;stroke-opacity:1"
id="PRINTPAGE"
inkscape:label="#g4324"
transform="matrix(1.0807111,0,0,1.0807111,-76.462145,451.30193)">
<path
sodipodi:nodetypes="cc"
inkscape:connector-curvature="0"
id="path1281"
d="M 998.71909,284.70793 H 970.18944"
style="fill:none;stroke:#ffffff;stroke-width:4.07999992;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<path
style="fill:none;stroke:#ffffff;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="path1283"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cc" />
<path
sodipodi:nodetypes="cc"
inkscape:connector-curvature="0"
id="path1285"
d="m 984.45427,298.97275 -10e-6,-28.52964"
style="fill:none;stroke:#ffffff;stroke-width:4.07999992;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<path
style="fill:none;stroke:#ffffff;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="path1287"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cc" />
</g>
<g
transform="matrix(1.0807111,0,0,1.0807111,-76.462145,331.52578)"
inkscape:label="#g4324"
id="MODEVHF3"
style="stroke:#ffffff;stroke-opacity:1">
<path
style="fill:none;stroke:#ffffff;stroke-width:4.07999992;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 998.71909,284.70793 H 970.18944"
id="path1288"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cc" />
<path
sodipodi:nodetypes="cc"
inkscape:connector-curvature="0"
id="path1290"
d="m 994.54102,294.79468 -20.17351,-20.1735"
style="fill:none;stroke:#ffffff;stroke-width:4.07999992;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<path
style="fill:none;stroke:#ffffff;stroke-width:4.07999992;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 984.45427,298.97275 -10e-6,-28.52964"
id="path1292"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cc" />
<path
sodipodi:nodetypes="cc"
inkscape:connector-curvature="0"
id="path1294"
d="m 974.36752,294.79468 20.17349,-20.1735"
style="fill:none;stroke:#ffffff;stroke-width:4.07999992;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
</g>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 143 KiB

After

Width:  |  Height:  |  Size: 156 KiB

View file

@ -2385,6 +2385,12 @@ var messages_right_memo = func {
ignition.active = 0; ignition.active = 0;
} }
if ((phaseVarMemo3 <= 2 or phaseVarMemo3 == 6 or phaseVarMemo3 >= 9) and atsu.CompanyCall.frequency != 999.99 and !atsu.CompanyCall.received) {
company_call.active = 1;
} else {
company_call.active = 0;
}
if (getprop("controls/pneumatics/switches/apu") == 1 and getprop("engines/engine[2]/n1") >= 95) { if (getprop("controls/pneumatics/switches/apu") == 1 and getprop("engines/engine[2]/n1") >= 95) {
apu_bleed.active = 1; apu_bleed.active = 1;
} else { } else {

View file

@ -489,7 +489,7 @@ var memos = std.Vector.new([
var terr_stby = memo.new(msg: "TERR STBY" ), # Not yet implemented var terr_stby = memo.new(msg: "TERR STBY" ), # Not yet implemented
var tcas_stby = memo.new(msg: "TCAS STBY" ), # Not yet implemented var tcas_stby = memo.new(msg: "TCAS STBY" ), # Not yet implemented
var acars_call = memo.new(msg: "ACARS CALL" ), # Not yet implemented var acars_call = memo.new(msg: "ACARS CALL" ), # Not yet implemented
var company_call = memo.new(msg: "COMPANY CALL"), # Not yet implemented var company_call = memo.new(msg: "COMPANY CALL"),
var satcom_alert = memo.new(msg: "SATCOM ALERT"), # Not yet implemented var satcom_alert = memo.new(msg: "SATCOM ALERT"), # Not yet implemented
var acars_msg = memo.new(msg: "ACARS MSG" ), # Not yet implemented var acars_msg = memo.new(msg: "ACARS MSG" ), # Not yet implemented
var company_msg = memo.new(msg: "COMPANY MSG" ), # Not yet implemented var company_msg = memo.new(msg: "COMPANY MSG" ), # Not yet implemented

View file

@ -208,6 +208,7 @@ var systemsInit = func {
dmc.DMController.init(); dmc.DMController.init();
fmgc.flightPlanController.init(); fmgc.flightPlanController.init();
fmgc.windController.init(); fmgc.windController.init();
atsu.CompanyCall.init();
} }
setlistener("/sim/signals/fdm-initialized", func { setlistener("/sim/signals/fdm-initialized", func {

View file

@ -144,6 +144,9 @@ var Position = {
var Sim = { var Sim = {
aero: props.globals.getNode("/sim/aero"), aero: props.globals.getNode("/sim/aero"),
Multiplay: {
online: props.globals.getNode("/sim/multiplay/online"),
},
pause: props.globals.getNode("/sim/freeze/master"), pause: props.globals.getNode("/sim/freeze/master"),
Replay: { Replay: {
replayActive: props.globals.getNode("/sim/replay/replay-state"), replayActive: props.globals.getNode("/sim/replay/replay-state"),

33
Nasal/MCDU/ATC.nas Normal file
View file

@ -0,0 +1,33 @@
var latReq = {
title: [nil, nil, nil],
titleColour: "wht",
subtitle: [nil, nil],
fontMatrix: [[0, 0, 0, 0, 0, 0],[0, 0, 0, 0, 0, 0]],
arrowsMatrix: [[0, 0, 0, 0, 0, 0],[0, 0, 0, 0, 0, 0]],
arrowsColour: [["ack", "ack", "ack", "ack", "ack", "ack"],["ack", "ack", "ack", "ack", "ack", "ack"]],
L1: [nil, nil, "ack"], # content, title, colour
L2: [nil, nil, "ack"],
L3: [nil, nil, "ack"],
L4: [nil, nil, "ack"],
L5: [nil, nil, "ack"],
L6: [nil, nil, "ack"],
R1: [nil, nil, "ack"],
R2: [nil, nil, "ack"],
R3: [nil, nil, "ack"],
R4: [nil, nil, "ack"],
R5: [nil, nil, "ack"],
R6: [nil, nil, "ack"],
computer: nil,
new: func(computer) {
var lr = {parents:[latReq]};
lr.computer = computer;
lr._setupPageWithData();
return lr;
},
del: func() {
return nil;
},
_setupPageWithData: func() {
},
}

View file

@ -10,9 +10,10 @@ var MCDU_init = func(i) {
var MCDU_reset = func(i) { var MCDU_reset = func(i) {
setprop("/MCDU[" ~ i ~ "]/active", 0); setprop("/MCDU[" ~ i ~ "]/active", 0);
setprop("/MCDU[" ~ i ~ "]/atsu-active", 0);
setprop("it-autoflight/settings/togaspd", 157); #aka v2 clone 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-fmgc-page", "STATUS");
setprop("/MCDU[" ~ i ~ "]/last-atsu-page", "ATSUDLINK");
setprop("/MCDU[" ~ i ~ "]/page", "MCDU"); setprop("/MCDU[" ~ i ~ "]/page", "MCDU");
setprop("/FMGC/keyboard-left", 0); setprop("/FMGC/keyboard-left", 0);
@ -199,17 +200,21 @@ var setMode = func(will) {
var lskbutton = func(btn, i) { var lskbutton = func(btn, i) {
if (btn == "1") { if (btn == "1") {
if (getprop("/MCDU[" ~ i ~ "]/page") == "MCDU") { if (getprop("/MCDU[" ~ i ~ "]/page") == "MCDU") {
if (getprop("/MCDU[" ~ i ~ "]/active") != 2) { if (getprop("/MCDU[" ~ i ~ "]/atsu-active") == 1) {
mcdu_message(i, "WAIT FOR SYSTEM RESPONSE"); mcdu_message(i, "NOT ALLOWED");
setprop("/MCDU[" ~ i ~ "]/active", 1); } else {
settimer(func(){ 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")); setprop("/MCDU[" ~ i ~ "]/page", getprop("/MCDU[" ~ i ~ "]/last-fmgc-page"));
mcdu_scratchpad.scratchpads[i].empty(); 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") { } else if (getprop("/MCDU[" ~ i ~ "]/page") == "IRSINIT") {
initInputIRS("L1",i); initInputIRS("L1",i);
@ -258,11 +263,38 @@ var lskbutton = func(btn, i) {
canvas_mcdu.myDirTo[i].fieldL1(mcdu_scratchpad.scratchpads[i].scratchpad); canvas_mcdu.myDirTo[i].fieldL1(mcdu_scratchpad.scratchpads[i].scratchpad);
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "DUPLICATENAMES") { } else if (getprop("/MCDU[" ~ i ~ "]/page") == "DUPLICATENAMES") {
canvas_mcdu.myDuplicate[i].pushButtonLeft(1); canvas_mcdu.myDuplicate[i].pushButtonLeft(1);
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "ATSUDLINK") {
setprop("/MCDU[" ~ i ~ "]/page", "ATCMENU");
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "COMMMENU") {
setprop("/MCDU[" ~ i ~ "]/page", "COMMINIT");
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "COMPANYCALL") {
if (atsu.CompanyCall.frequency != 999.99) {
atsu.CompanyCall.tune();
} else {
mcdu_message(i, "NOT ALLOWED");
}
} else { } else {
mcdu_message(i, "NOT ALLOWED"); mcdu_message(i, "NOT ALLOWED");
} }
} else if (btn == "2") { } 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); initInputA("L2",i);
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "WINDCLB") { } else if (getprop("/MCDU[" ~ i ~ "]/page") == "WINDCLB") {
canvas_mcdu.myCLBWIND[i].pushButtonLeft(2); canvas_mcdu.myCLBWIND[i].pushButtonLeft(2);
@ -298,6 +330,17 @@ var lskbutton = func(btn, i) {
canvas_mcdu.myDirTo[i].leftFieldBtn(2); canvas_mcdu.myDirTo[i].leftFieldBtn(2);
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "DUPLICATENAMES") { } else if (getprop("/MCDU[" ~ i ~ "]/page") == "DUPLICATENAMES") {
canvas_mcdu.myDuplicate[i].pushButtonLeft(2); 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 if (getprop("/MCDU[" ~ i ~ "]/page") == "COMMMENU") {
setprop("/MCDU[" ~ i ~ "]/page", "DATAMODE");
} else { } else {
mcdu_message(i, "NOT ALLOWED"); mcdu_message(i, "NOT ALLOWED");
} }
@ -347,6 +390,8 @@ var lskbutton = func(btn, i) {
} }
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "DUPLICATENAMES") { } else if (getprop("/MCDU[" ~ i ~ "]/page") == "DUPLICATENAMES") {
canvas_mcdu.myDuplicate[i].pushButtonLeft(3); canvas_mcdu.myDuplicate[i].pushButtonLeft(3);
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "COMMMENU") {
setprop("/MCDU[" ~ i ~ "]/page", "VOICEDIRECTORY");
} else { } else {
mcdu_message(i, "NOT ALLOWED"); mcdu_message(i, "NOT ALLOWED");
} }
@ -381,6 +426,18 @@ var lskbutton = func(btn, i) {
canvas_mcdu.myDirTo[i].leftFieldBtn(4); canvas_mcdu.myDirTo[i].leftFieldBtn(4);
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "DUPLICATENAMES") { } else if (getprop("/MCDU[" ~ i ~ "]/page") == "DUPLICATENAMES") {
canvas_mcdu.myDuplicate[i].pushButtonLeft(4); canvas_mcdu.myDuplicate[i].pushButtonLeft(4);
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "CONNECTSTATUS") {
if (atsu.ADS.state != 0) {
atsu.ADS.setState(0);
} else {
atsu.ADS.setState(1);
}
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "VOICEDIRECTORY") {
if (atsu.CompanyCall.frequency != 999.99) {
atsu.CompanyCall.tune();
} else {
mcdu_message(i, "NOT ALLOWED");
}
} else { } else {
mcdu_message(i, "NOT ALLOWED"); mcdu_message(i, "NOT ALLOWED");
} }
@ -434,6 +491,8 @@ var lskbutton = func(btn, i) {
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "CLOSESTAIRPORT") { } else if (getprop("/MCDU[" ~ i ~ "]/page") == "CLOSESTAIRPORT") {
canvas_mcdu.myClosestAirport[i].manAirportCall(mcdu_scratchpad.scratchpads[i].scratchpad); canvas_mcdu.myClosestAirport[i].manAirportCall(mcdu_scratchpad.scratchpads[i].scratchpad);
mcdu_scratchpad.scratchpads[i].empty(); mcdu_scratchpad.scratchpads[i].empty();
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "ATCMENU") {
setprop("/MCDU[" ~ i ~ "]/page", "NOTIFICATION");
} else { } else {
mcdu_message(i, "NOT ALLOWED"); mcdu_message(i, "NOT ALLOWED");
} }
@ -491,6 +550,14 @@ var lskbutton = func(btn, i) {
canvas_mcdu.myDirTo[i].fieldL6(); canvas_mcdu.myDirTo[i].fieldL6();
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "CLOSESTAIRPORT") { } else if (getprop("/MCDU[" ~ i ~ "]/page") == "CLOSESTAIRPORT") {
canvas_mcdu.myClosestAirport[i].freeze(); 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" or getprop("/MCDU[" ~ i ~ "]/page") == "CONNECTSTATUS") {
setprop("/MCDU[" ~ i ~ "]/page", "ATCMENU");
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "COMMMENU") {
setprop("/MCDU[" ~ i ~ "]/page", "ATSUDLINK");
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "COMMINIT" or getprop("/MCDU[" ~ i ~ "]/page") == "VOICEDIRECTORY" or getprop("/MCDU[" ~ i ~ "]/page") == "DATAMODE" or getprop("/MCDU[" ~ i ~ "]/page") == "COMMSTATUS" or getprop("/MCDU[" ~ i ~ "]/page") == "COMPANYCALL") {
setprop("/MCDU[" ~ i ~ "]/page", "COMMMENU");
} else { } else {
mcdu_message(i, "NOT ALLOWED"); mcdu_message(i, "NOT ALLOWED");
} }
@ -545,6 +612,14 @@ var rskbutton = func(btn, i) {
} else { } else {
mcdu_message(i, "NOT ALLOWED"); # todo spawn new waypoints page mcdu_message(i, "NOT ALLOWED"); # todo spawn new waypoints page
} }
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "COMMMENU") {
setprop("/MCDU[" ~ i ~ "]/page", "COMMSTATUS");
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "COMPANYCALL") {
if (atsu.CompanyCall.frequency != 999.99) {
atsu.CompanyCall.ack();
} else {
mcdu_message(i, "NOT ALLOWED");
}
} else { } else {
mcdu_message(i, "NOT ALLOWED"); mcdu_message(i, "NOT ALLOWED");
} }
@ -565,6 +640,13 @@ var rskbutton = func(btn, i) {
canvas_mcdu.myArrival[i].arrPushbuttonRight(2); canvas_mcdu.myArrival[i].arrPushbuttonRight(2);
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "F-PLNA" or getprop("/MCDU[" ~ i ~ "]/page") == "F-PLNB") { } else if (getprop("/MCDU[" ~ i ~ "]/page") == "F-PLNA" or getprop("/MCDU[" ~ i ~ "]/page") == "F-PLNB") {
canvas_mcdu.myFpln[i].pushButtonRight(2); 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 if (getprop("/MCDU[" ~ i ~ "]/page") == "COMMMENU") {
setprop("/MCDU[" ~ i ~ "]/page", "COMPANYCALL");
} else { } else {
mcdu_message(i, "NOT ALLOWED"); mcdu_message(i, "NOT ALLOWED");
} }
@ -730,18 +812,19 @@ var rskbutton = func(btn, i) {
} else { } else {
mcdu_message(i, "NOT ALLOWED"); mcdu_message(i, "NOT ALLOWED");
} }
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "ATCMENU") {
setprop("/MCDU[" ~ i ~ "]/page", "CONNECTSTATUS");
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "VOICEDIRECTORY") {
for (var i = 0; i < 3; i = i + 1) {
if (getprop("/systems/radio/rmp[" ~ i ~ "]/sel_chan") == "vhf3") {
rmp.transfer(i + 1);
}
}
} else { } else {
mcdu_message(i, "NOT ALLOWED"); mcdu_message(i, "NOT ALLOWED");
} }
} else if (btn == "6") { } else if (btn == "6") {
if (getprop("/MCDU[" ~ i ~ "]/page") == "MCDU") { if (getprop("/MCDU[" ~ i ~ "]/page") == "INITA") {
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") {
initInputA("R6",i); initInputA("R6",i);
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "IRSINIT") { } else if (getprop("/MCDU[" ~ i ~ "]/page") == "IRSINIT") {
initInputIRS("R6",i); initInputIRS("R6",i);
@ -783,6 +866,12 @@ var rskbutton = func(btn, i) {
canvas_mcdu.myPilotWP[i].deleteCmd(); canvas_mcdu.myPilotWP[i].deleteCmd();
} }
} }
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "NOTIFICATION") {
setprop("/MCDU[" ~ i ~ "]/page", "CONNECTSTATUS");
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "ATSUDLINK") {
setprop("/MCDU[" ~ i ~ "]/page", "COMMMENU");
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "CONNECTSTATUS") {
setprop("/MCDU[" ~ i ~ "]/page", "NOTIFICATION");
} else { } else {
mcdu_message(i, "NOT ALLOWED"); mcdu_message(i, "NOT ALLOWED");
} }
@ -813,6 +902,10 @@ var arrowbutton = func(btn, i) {
canvas_mcdu.myArrival[i].scrollLeft(); canvas_mcdu.myArrival[i].scrollLeft();
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "PILOTWP") { } else if (getprop("/MCDU[" ~ i ~ "]/page") == "PILOTWP") {
canvas_mcdu.myPilotWP[i].scrollLeft(); 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") { } else if (btn == "right") {
if (getprop("/MCDU[" ~ i ~ "]/page") == "DATA") { if (getprop("/MCDU[" ~ i ~ "]/page") == "DATA") {
@ -837,6 +930,10 @@ var arrowbutton = func(btn, i) {
canvas_mcdu.myArrival[i].scrollRight(); canvas_mcdu.myArrival[i].scrollRight();
} else if (getprop("/MCDU[" ~ i ~ "]/page") == "PILOTWP") { } else if (getprop("/MCDU[" ~ i ~ "]/page") == "PILOTWP") {
canvas_mcdu.myPilotWP[i].scrollRight(); 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") { } else if (btn == "up") {
if (getprop("/MCDU[" ~ i ~ "]/page") == "F-PLNA" or getprop("/MCDU[" ~ i ~ "]/page") == "F-PLNB") { if (getprop("/MCDU[" ~ i ~ "]/page") == "F-PLNA" or getprop("/MCDU[" ~ i ~ "]/page") == "F-PLNB") {
@ -908,8 +1005,12 @@ var pagebutton = func(btn, i) {
} else if (btn == "data") { } else if (btn == "data") {
setprop("/MCDU[" ~ i ~ "]/page", "DATA"); setprop("/MCDU[" ~ i ~ "]/page", "DATA");
} else if (btn == "mcdu") { } else if (btn == "mcdu") {
setprop("/MCDU[" ~ i ~ "]/last-page", getprop("/MCDU[" ~ i ~ "]/page")); var page = getprop("/MCDU[" ~ i ~ "]/page");
setprop("/MCDU[" ~ i ~ "]/last-fmgc-page", getprop("/MCDU[" ~ i ~ "]/page")); if (page != "ATSUDLINK" and page != "ATCMENU" and page != "ATCMENU2" and page != "NOTIFICATION" and page != "CONNECTSTATUS" and page != "COMPANYCALL" and page != "VOICEDIRECTORY" and page != "DATAMODE" and page != "COMMMENU" and page != "COMMSTATUS" and page != "COMMINIT") {
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"); mcdu_message(i, "SELECT DESIRED SYSTEM");
setprop("/MCDU[" ~ i ~ "]/page", "MCDU"); setprop("/MCDU[" ~ i ~ "]/page", "MCDU");
} else if (btn == "f-pln" or btn == "airport") { } else if (btn == "f-pln" or btn == "airport") {
@ -941,6 +1042,18 @@ var pagebutton = func(btn, i) {
canvas_mcdu.myDirTo[i] = dirTo.new(i); canvas_mcdu.myDirTo[i] = dirTo.new(i);
} }
setprop("/MCDU[" ~ i ~ "]/page", "DIRTO"); 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,81 @@
# 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;
}
},
automaticTransfer: func(station) {
var airportList = findAirportsByICAO(station);
if (size(airportList) == 0) { return 2; }
me.notifyAirport = airportList[0].id;
return 0;
},
};
var ADS = {
state: 1,
connections: [nil, nil, nil, nil],
setState: func(state) {
me.state = state;
},
getCount: func() {
var count = 0;
for (var i = 0; i < 4; i = i + 1) {
if (me.connections[i] != nil) {
count += 1;
}
}
return count;
},
};
var CompanyCall = {
activeMsg: "",
frequency: 999.99,
received: 0,
tuned: 0,
init: func() {
me.activeMsg = "";
me.frequency = 999.99;
me.received = 0;
},
newMsg: func(msg, freq) {
me.activeMsg = msg;
me.frequency = freq;
me.received = 0;
},
ack: func() {
me.received = 1;
## assume that call remains until you receive another one or aircraft is reset
},
tune: func() {
if (!me.received) { me.ack(); }
if (rmp.act_vhf3.getValue() == 0) {
for (var i = 0; i < 3; i = i + 1) {
if (getprop("/systems/radio/rmp[" ~ i ~ "]/sel_chan") == "vhf3") {
setprop("/systems/radio/rmp[" ~ i ~ "]/vhf3-standby", me.frequency);
rmp.transfer(i + 1);
me.tuned = 1;
}
}
}
},
};

View file

@ -466,6 +466,16 @@
<legend>ATC</legend> <legend>ATC</legend>
<pref-height>25</pref-height> <pref-height>25</pref-height>
<pref-width>40</pref-width> <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>
<button> <button>

View file

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