1
0
Fork 0

Implement model options more correctly.

This commit is contained in:
legoboyvdlp R 2020-09-04 21:10:47 +01:00
parent ed6613d973
commit af5363c2aa
9 changed files with 31 additions and 34 deletions

View file

@ -158,15 +158,9 @@
</limits>
<options n="0">
<EIS2 type="bool">0</EIS2>
<eng type="string">CFM</eng>
<maxblock type="double">52.3</maxblock>
<maxflap type="int">35</maxflap>
</options>
<MCDUC n="0">
<type>A320-111</type>
<eng>CFM56-5A1</eng>
</MCDUC>
</PropertyList>

View file

@ -158,15 +158,9 @@
</limits>
<options n="0">
<EIS2 type="bool">0</EIS2>
<eng type="string">CFM</eng>
<maxblock type="double">52.3</maxblock>
<maxflap type="int">35</maxflap>
</options>
<MCDUC n="0">
<type>A320-214</type>
<eng>CFM56-5B4</eng>
</MCDUC>
</PropertyList>

View file

@ -158,15 +158,9 @@
</limits>
<options n="0">
<EIS2 type="bool">0</EIS2>
<eng type="string">IAE</eng>
<maxblock type="double">52.3</maxblock>
<maxflap type="int">40</maxflap>
</options>
<MCDUC n="0">
<type>A320-232</type>
<eng>V2527-A5</eng>
</MCDUC>
</PropertyList>

View file

@ -1413,6 +1413,13 @@
<steep-ils-avail type="bool">0</steep-ils-avail>
<enable-ecam-actions>0</enable-ecam-actions>
<test-canvas type="bool">0</test-canvas>
<engine-name type="string"></engine-name>
<model-number type="string"></model-number>
<EIS2 type="bool">0</EIS2>
<company-options>
<idle-factor type="string">0.0</idle-factor>
<perf-factor type="string">0.0</perf-factor>
</company-options>
<model-options>
<registration type="string">G-EZTB</registration>
<three-letter type="string">EZY</three-letter>

View file

@ -158,15 +158,9 @@
</limits>
<options n="0">
<EIS2 type="bool">1</EIS2>
<eng type="string">CFM</eng>
<maxblock type="double">52.3</maxblock>
<maxflap type="int">35</maxflap>
</options>
<MCDUC n="0">
<type>A320-251N</type>
<eng>LEAP-1A26</eng>
</MCDUC>
</PropertyList>

View file

@ -158,15 +158,9 @@
</limits>
<options n="0">
<EIS2 type="bool">1</EIS2>
<eng type="string">CFM</eng> <!-- Apparently PW PurePower uses N1, not EPR.... sooo I use CFM ECAM, and no N1 mode switches -->
<maxblock type="double">52.3</maxblock>
<maxflap type="int">35</maxflap>
</options>
<MCDUC n="0">
<type>A320-271N</type>
<eng>PW1133-JM</eng>
</MCDUC>
</PropertyList>

View file

@ -76,8 +76,10 @@ var mcdu_keyboard_right = props.globals.getNode("/FMGC/keyboard-right", 0);
#ACCONFIG
var mcdu1_lgt = props.globals.getNode("/controls/lighting/DU/mcdu1", 1);
var mcdu2_lgt = props.globals.getNode("/controls/lighting/DU/mcdu2", 1);
var acType = props.globals.getNode("/MCDUC/type", 1);
var engType = props.globals.getNode("/MCDUC/eng", 1);
var acType = props.globals.getNode("/options/model-number", 1);
var engType = props.globals.getNode("/options/engine-name", 1);
var idleFactor = props.globals.getNode("/options/company-options/idle-factor", 1);
var perfFactor = props.globals.getNode("/options/company-options/perf-factor", 1);
var database1 = props.globals.getNode("/FMGC/internal/navdatabase", 1);
var database2 = props.globals.getNode("/FMGC/internal/navdatabase2", 1);
var databaseCode = props.globals.getNode("/FMGC/internal/navdatabasecode", 1);
@ -1454,7 +1456,7 @@ var canvas_MCDU_base = {
me["Simple_L5"].setText("[ ]");
me["Simple_L6"].setText("+4.0/+0.0");
me["Simple_L6"].setText(sprintf("%+3.1d/%+3.1d",idleFactor.getValue(),perfFactor.getValue());
me["Simple_L1S"].setText(" ENG");
me["Simple_L2S"].setText(" ACTIVE NAV DATA BASE");
me["Simple_L3S"].setText(" SECOND NAV DATA BASE");

View file

@ -12,8 +12,17 @@
</sim>
<options>
<EIS2 type="bool">0</EIS2>
<engine-name type="string">CFM56-5B4</engine-name>
<model-number type="string">A320-214</model-number>
<EIS2 type="bool">1</EIS2>
<company-options>
<idle-factor>0.0</idle-factor>
<perf-factor>0.0</perf-factor>
</company-options>
<model-options>
<registration type="string">AB-CDE</registration>
<three-letter type="string">ABC</three-letter>
<two-letter type="string">DE</two-letter>
<sharklet type="bool">0</sharklet>
<wifi-aft type="bool">0</wifi-aft>
<wifi-fwd type="bool">0</wifi-fwd>

View file

@ -12,8 +12,17 @@
</sim>
<options>
<engine-name type="string">V2527-A5</engine-name>
<model-number type="string">A320-232</model-number>
<EIS2 type="bool">1</EIS2>
<company-options>
<idle-factor type="string">0.0</idle-factor>
<perf-factor type="string">0.0</perf-factor>
</company-options>
<model-options>
<registration type="string">OY-KAM</registration>
<three-letter type="string">SAS</three-letter>
<two-letter type="string">SK</two-letter>
<sharklet type="bool">0</sharklet>
<wifi-aft type="bool">1</wifi-aft>
<wifi-fwd type="bool">0</wifi-fwd>