IESI: fix power source; also fix the baro knob so that it changes inHg only, and works with emergency power.
This commit is contained in:
parent
e47f4ed009
commit
668030b515
5 changed files with 41 additions and 67 deletions
|
@ -1643,7 +1643,6 @@
|
||||||
</altimeter>
|
</altimeter>
|
||||||
|
|
||||||
<altimeter n="6">
|
<altimeter n="6">
|
||||||
<inhg type="bool">0</inhg>
|
|
||||||
<indicated-altitude-ft type="double">0</indicated-altitude-ft>
|
<indicated-altitude-ft type="double">0</indicated-altitude-ft>
|
||||||
<indicated-altitude-ft-pfd type="double">0</indicated-altitude-ft-pfd>
|
<indicated-altitude-ft-pfd type="double">0</indicated-altitude-ft-pfd>
|
||||||
<oldqnh type="double">29.92</oldqnh>
|
<oldqnh type="double">29.92</oldqnh>
|
||||||
|
|
|
@ -3066,10 +3066,19 @@
|
||||||
<repeatable>false</repeatable>
|
<repeatable>false</repeatable>
|
||||||
<binding>
|
<binding>
|
||||||
<condition>
|
<condition>
|
||||||
<greater-than-equals>
|
<or>
|
||||||
<property>systems/electrical/bus/dc-ess</property>
|
<greater-than-equals>
|
||||||
<value>25</value>
|
<property>systems/electrical/bus/dc-ess</property>
|
||||||
</greater-than-equals>
|
<value>25</value>
|
||||||
|
</greater-than-equals>
|
||||||
|
<and>
|
||||||
|
<greater-than-equals>
|
||||||
|
<property>/systems/electrical/bus/sub-bus/dc-hot-1-703</property>
|
||||||
|
<value>25</value>
|
||||||
|
</greater-than-equals>
|
||||||
|
<property>/systems/electrical/sources/si-1/inverter-control/relay-7xb</property>
|
||||||
|
</and>
|
||||||
|
</or>
|
||||||
</condition>
|
</condition>
|
||||||
<command>nasal</command>
|
<command>nasal</command>
|
||||||
<script>
|
<script>
|
||||||
|
@ -3087,40 +3096,23 @@
|
||||||
</script>
|
</script>
|
||||||
<condition>
|
<condition>
|
||||||
<and>
|
<and>
|
||||||
<equals>
|
|
||||||
<property>instrumentation/altimeter[6]/inhg</property>
|
|
||||||
<value>1</value>
|
|
||||||
</equals>
|
|
||||||
<equals>
|
<equals>
|
||||||
<property>instrumentation/altimeter[6]/std</property>
|
<property>instrumentation/altimeter[6]/std</property>
|
||||||
<value>0</value>
|
<value>0</value>
|
||||||
</equals>
|
</equals>
|
||||||
<greater-than-equals>
|
<or>
|
||||||
<property>systems/electrical/bus/dc-ess</property>
|
<greater-than-equals>
|
||||||
<value>25</value>
|
<property>systems/electrical/bus/dc-ess</property>
|
||||||
</greater-than-equals>
|
<value>25</value>
|
||||||
</and>
|
</greater-than-equals>
|
||||||
</condition>
|
<and>
|
||||||
</binding>
|
<greater-than-equals>
|
||||||
<binding>
|
<property>/systems/electrical/bus/sub-bus/dc-hot-1-703</property>
|
||||||
<command>nasal</command>
|
<value>25</value>
|
||||||
<script>
|
</greater-than-equals>
|
||||||
setprop("/instrumentation/altimeter[6]/setting-hpa", getprop("/instrumentation/altimeter[6]/setting-hpa") + 1.0);
|
<property>/systems/electrical/sources/si-1/inverter-control/relay-7xb</property>
|
||||||
</script>
|
</and>
|
||||||
<condition>
|
</or>
|
||||||
<and>
|
|
||||||
<equals>
|
|
||||||
<property>instrumentation/altimeter[6]/inhg</property>
|
|
||||||
<value>0</value>
|
|
||||||
</equals>
|
|
||||||
<equals>
|
|
||||||
<property>instrumentation/altimeter[6]/std</property>
|
|
||||||
<value>0</value>
|
|
||||||
</equals>
|
|
||||||
<greater-than-equals>
|
|
||||||
<property>systems/electrical/bus/dc-ess</property>
|
|
||||||
<value>25</value>
|
|
||||||
</greater-than-equals>
|
|
||||||
</and>
|
</and>
|
||||||
</condition>
|
</condition>
|
||||||
</binding>
|
</binding>
|
||||||
|
@ -3143,40 +3135,23 @@
|
||||||
</script>
|
</script>
|
||||||
<condition>
|
<condition>
|
||||||
<and>
|
<and>
|
||||||
<equals>
|
|
||||||
<property>instrumentation/altimeter[6]/inhg</property>
|
|
||||||
<value>1</value>
|
|
||||||
</equals>
|
|
||||||
<equals>
|
<equals>
|
||||||
<property>instrumentation/altimeter[6]/std</property>
|
<property>instrumentation/altimeter[6]/std</property>
|
||||||
<value>0</value>
|
<value>0</value>
|
||||||
</equals>
|
</equals>
|
||||||
<greater-than-equals>
|
<or>
|
||||||
<property>systems/electrical/bus/dc-ess</property>
|
<greater-than-equals>
|
||||||
<value>25</value>
|
<property>systems/electrical/bus/dc-ess</property>
|
||||||
</greater-than-equals>
|
<value>25</value>
|
||||||
</and>
|
</greater-than-equals>
|
||||||
</condition>
|
<and>
|
||||||
</binding>
|
<greater-than-equals>
|
||||||
<binding>
|
<property>/systems/electrical/bus/sub-bus/dc-hot-1-703</property>
|
||||||
<command>nasal</command>
|
<value>25</value>
|
||||||
<script>
|
</greater-than-equals>
|
||||||
setprop("/instrumentation/altimeter[6]/setting-hpa", getprop("/instrumentation/altimeter[6]/setting-hpa") - 1.0);
|
<property>/systems/electrical/sources/si-1/inverter-control/relay-7xb</property>
|
||||||
</script>
|
</and>
|
||||||
<condition>
|
</or>
|
||||||
<and>
|
|
||||||
<equals>
|
|
||||||
<property>instrumentation/altimeter[6]/inhg</property>
|
|
||||||
<value>0</value>
|
|
||||||
</equals>
|
|
||||||
<equals>
|
|
||||||
<property>instrumentation/altimeter[6]/std</property>
|
|
||||||
<value>0</value>
|
|
||||||
</equals>
|
|
||||||
<greater-than-equals>
|
|
||||||
<property>systems/electrical/bus/dc-ess</property>
|
|
||||||
<value>25</value>
|
|
||||||
</greater-than-equals>
|
|
||||||
</and>
|
</and>
|
||||||
</condition>
|
</condition>
|
||||||
</binding>
|
</binding>
|
||||||
|
|
|
@ -269,7 +269,7 @@ var canvas_IESI = {
|
||||||
me.canReset = 1;
|
me.canReset = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (notification.dcEss >= 25 or (notification.relay7XB and notification.dcHot1 >= 25)) {
|
if (notification.dcEss >= 25 or (notification.relay7XB and notification.dcHot1703 >= 25)) {
|
||||||
_showIESI = 1;
|
_showIESI = 1;
|
||||||
if (notification.acconfig != 1 and notification.iesiInit != 1) {
|
if (notification.acconfig != 1 and notification.iesiInit != 1) {
|
||||||
iesi_init.setBoolValue(1);
|
iesi_init.setBoolValue(1);
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
var dualFailNode = props.globals.initNode("/ECAM/dual-failure-enabled", 0, "BOOL");
|
var dualFailNode = props.globals.initNode("/ECAM/dual-failure-enabled", 0, "BOOL");
|
||||||
var apWarn = props.globals.getNode("/it-autoflight/output/ap-warning", 1);
|
var apWarn = props.globals.getNode("/it-autoflight/output/ap-warning", 1);
|
||||||
var athrWarn = props.globals.getNode("/it-autoflight/output/athr-warning", 1);
|
var athrWarn = props.globals.getNode("/it-autoflight/output/athr-warning", 1);
|
||||||
var emerGen = props.globals.getNode("/controls/electrical/switches/emer-gen", 1);
|
|
||||||
|
|
||||||
var acconfig_weight_kgs = props.globals.getNode("/systems/acconfig/options/weight-kgs", 1);
|
var acconfig_weight_kgs = props.globals.getNode("/systems/acconfig/options/weight-kgs", 1);
|
||||||
var state1Node = props.globals.getNode("/engines/engine[0]/state", 1);
|
var state1Node = props.globals.getNode("/engines/engine[0]/state", 1);
|
||||||
|
|
|
@ -264,6 +264,7 @@ var input = {
|
||||||
"dcEss": "/systems/electrical/bus/dc-ess",
|
"dcEss": "/systems/electrical/bus/dc-ess",
|
||||||
"dcEssShed": "/systems/electrical/bus/dc-ess-shed",
|
"dcEssShed": "/systems/electrical/bus/dc-ess-shed",
|
||||||
"dcHot1": "/systems/electrical/bus/dc-hot-1",
|
"dcHot1": "/systems/electrical/bus/dc-hot-1",
|
||||||
|
"dcHot1703": "/systems/electrical/bus/sub-bus/dc-hot-1-703",
|
||||||
"dcHot2": "/systems/electrical/bus/dc-hot-2",
|
"dcHot2": "/systems/electrical/bus/dc-hot-2",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue