A3XX: Add dynamic block limits
This commit is contained in:
parent
4113260d3b
commit
c422fce981
10 changed files with 22 additions and 12 deletions
|
@ -103,9 +103,10 @@
|
||||||
|
|
||||||
</sim>
|
</sim>
|
||||||
|
|
||||||
<options>
|
<options n="0">
|
||||||
<EIS2 type="bool">0</EIS2>
|
<EIS2 type="bool">0</EIS2>
|
||||||
<eng>CFM</eng>
|
<eng>CFM</eng>
|
||||||
|
<maxblock>52.3</maxblock>
|
||||||
</options>
|
</options>
|
||||||
|
|
||||||
<sharklet type="bool">0</sharklet>
|
<sharklet type="bool">0</sharklet>
|
||||||
|
|
|
@ -103,9 +103,10 @@
|
||||||
|
|
||||||
</sim>
|
</sim>
|
||||||
|
|
||||||
<options>
|
<options n="0">
|
||||||
<EIS2 type="bool">0</EIS2>
|
<EIS2 type="bool">0</EIS2>
|
||||||
<eng>IAE</eng>
|
<eng>IAE</eng>
|
||||||
|
<maxblock>52.3</maxblock>
|
||||||
</options>
|
</options>
|
||||||
|
|
||||||
<sharklet type="bool">0</sharklet>
|
<sharklet type="bool">0</sharklet>
|
||||||
|
|
|
@ -103,9 +103,10 @@
|
||||||
|
|
||||||
</sim>
|
</sim>
|
||||||
|
|
||||||
<options>
|
<options n="0">
|
||||||
<EIS2 type="bool">0</EIS2>
|
<EIS2 type="bool">0</EIS2>
|
||||||
<eng>CFM</eng>
|
<eng>CFM</eng>
|
||||||
|
<maxblock>52.3</maxblock>
|
||||||
</options>
|
</options>
|
||||||
|
|
||||||
<sharklet type="bool">0</sharklet>
|
<sharklet type="bool">0</sharklet>
|
||||||
|
|
|
@ -103,9 +103,10 @@
|
||||||
|
|
||||||
</sim>
|
</sim>
|
||||||
|
|
||||||
<options>
|
<options n="0">
|
||||||
<EIS2 type="bool">0</EIS2>
|
<EIS2 type="bool">0</EIS2>
|
||||||
<eng>IAE</eng>
|
<eng>IAE</eng>
|
||||||
|
<maxblock>52.3</maxblock>
|
||||||
</options>
|
</options>
|
||||||
|
|
||||||
<sharklet type="bool">0</sharklet>
|
<sharklet type="bool">0</sharklet>
|
||||||
|
|
|
@ -103,9 +103,10 @@
|
||||||
|
|
||||||
</sim>
|
</sim>
|
||||||
|
|
||||||
<options>
|
<options n="0">
|
||||||
<EIS2 type="bool">1</EIS2>
|
<EIS2 type="bool">1</EIS2>
|
||||||
<eng>CFM</eng>
|
<eng>CFM</eng>
|
||||||
|
<maxblock>52.3</maxblock>
|
||||||
</options>
|
</options>
|
||||||
|
|
||||||
<sharklet type="bool">1</sharklet>
|
<sharklet type="bool">1</sharklet>
|
||||||
|
|
|
@ -103,9 +103,10 @@
|
||||||
|
|
||||||
</sim>
|
</sim>
|
||||||
|
|
||||||
<options>
|
<options n="0">
|
||||||
<EIS2 type="bool">0</EIS2>
|
<EIS2 type="bool">0</EIS2>
|
||||||
<eng>CFM</eng>
|
<eng>CFM</eng>
|
||||||
|
<maxblock>52.0</maxblock>
|
||||||
</options>
|
</options>
|
||||||
|
|
||||||
<sharklet type="bool">0</sharklet>
|
<sharklet type="bool">0</sharklet>
|
||||||
|
|
|
@ -103,9 +103,10 @@
|
||||||
|
|
||||||
</sim>
|
</sim>
|
||||||
|
|
||||||
<options>
|
<options n="0">
|
||||||
<EIS2 type="bool">0</EIS2>
|
<EIS2 type="bool">0</EIS2>
|
||||||
<eng>IAE</eng>
|
<eng>IAE</eng>
|
||||||
|
<maxblock>52.0</maxblock>
|
||||||
</options>
|
</options>
|
||||||
|
|
||||||
<sharklet type="bool">0</sharklet>
|
<sharklet type="bool">0</sharklet>
|
||||||
|
|
|
@ -103,9 +103,10 @@
|
||||||
|
|
||||||
</sim>
|
</sim>
|
||||||
|
|
||||||
<options>
|
<options n="0">
|
||||||
<EIS2 type="bool">1</EIS2>
|
<EIS2 type="bool">1</EIS2>
|
||||||
<eng>CFM</eng>
|
<eng>CFM</eng>
|
||||||
|
<maxblock>52.0</maxblock>
|
||||||
</options>
|
</options>
|
||||||
|
|
||||||
<sharklet type="bool">1</sharklet>
|
<sharklet type="bool">1</sharklet>
|
||||||
|
|
|
@ -453,8 +453,9 @@ var initInputB = func(key) {
|
||||||
setprop("/MCDU[0]/scratchpad", "");
|
setprop("/MCDU[0]/scratchpad", "");
|
||||||
} else {
|
} else {
|
||||||
var tfs = size(scratchpad);
|
var tfs = size(scratchpad);
|
||||||
if (tfs == 2 or tfs == 4) {
|
var maxblock = getprop("/options/maxblock");
|
||||||
if (scratchpad >= 1.0 and scratchpad <= 45.0) {
|
if (tfs == 2 or tfs == 4 or tfs == 5) {
|
||||||
|
if (scratchpad >= 1.0 and scratchpad <= maxblock) {
|
||||||
setprop("/FMGC/internal/block", scratchpad);
|
setprop("/FMGC/internal/block", scratchpad);
|
||||||
setprop("/FMGC/internal/block-set", 1);
|
setprop("/FMGC/internal/block-set", 1);
|
||||||
setprop("/MCDU[0]/scratchpad", "");
|
setprop("/MCDU[0]/scratchpad", "");
|
||||||
|
|
|
@ -453,8 +453,9 @@ var initInputB = func(key) {
|
||||||
setprop("/MCDU[1]/scratchpad", "");
|
setprop("/MCDU[1]/scratchpad", "");
|
||||||
} else {
|
} else {
|
||||||
var tfs = size(scratchpad);
|
var tfs = size(scratchpad);
|
||||||
if (tfs == 2 or tfs == 4) {
|
var maxblock = getprop("/options/maxblock");
|
||||||
if (scratchpad >= 1.0 and scratchpad <= 45.0) {
|
if (tfs == 2 or tfs == 4 or tfs == 5) {
|
||||||
|
if (scratchpad >= 1.0 and scratchpad <= maxblock) {
|
||||||
setprop("/FMGC/internal/block", scratchpad);
|
setprop("/FMGC/internal/block", scratchpad);
|
||||||
setprop("/FMGC/internal/block-set", 1);
|
setprop("/FMGC/internal/block-set", 1);
|
||||||
setprop("/MCDU[1]/scratchpad", "");
|
setprop("/MCDU[1]/scratchpad", "");
|
||||||
|
|
Reference in a new issue