1
0
Fork 0

TERR GPWS button switch terr-on-nd off updating only not buttons state

This commit is contained in:
Inuyaksa 2021-02-22 22:33:47 +01:00
parent 7774678ac0
commit a09003f642
2 changed files with 22 additions and 63 deletions

View file

@ -1446,10 +1446,6 @@
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<equals>
<property>instrumentation/mk-viii/inputs/discretes/ta-tcf-inhibit</property>
<value>0</value>
</equals>
</and>
</condition>
<command>property-toggle</command>
@ -1462,7 +1458,7 @@
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<equals>
<equals>
<property>instrumentation/mk-viii/inputs/discretes/ta-tcf-inhibit</property>
<value>0</value>
</equals>
@ -1509,10 +1505,6 @@
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<equals>
<property>instrumentation/mk-viii/inputs/discretes/ta-tcf-inhibit</property>
<value>0</value>
</equals>
</and>
</condition>
<command>property-toggle</command>

View file

@ -1700,50 +1700,10 @@
</binding>
<binding>
<condition>
<and>
<equals>
<property>instrumentation/mk-viii/inputs/discretes/ta-tcf-inhibit</property>
<value>1</value>
</equals>
<equals>
<property>controls/switches/terr_on_nd_l</property>
<value>1</value>
</equals>
</and>
</condition>
<command>property-assign</command>
<property>controls/switches/terr_on_nd_l</property>
<value>0</value>
</binding>
<binding>
<condition>
<and>
<equals>
<property>instrumentation/mk-viii/inputs/discretes/ta-tcf-inhibit</property>
<value>1</value>
</equals>
<equals>
<property>controls/switches/terr_on_nd_r</property>
<value>1</value>
</equals>
</and>
</condition>
<command>property-assign</command>
<property>controls/switches/terr_on_nd_r</property>
<value>0</value>
</binding>
<binding>
<condition>
<and>
<equals>
<property>instrumentation/mk-viii/inputs/discretes/ta-tcf-inhibit</property>
<value>1</value>
</equals>
<equals>
<property>instrumentation/efis/inputs/terr</property>
<value>1</value>
</equals>
</and>
<equals>
<property>instrumentation/mk-viii/inputs/discretes/ta-tcf-inhibit</property>
<value>1</value>
</equals>
</condition>
<command>property-assign</command>
<property>instrumentation/efis/inputs/terr</property>
@ -1751,21 +1711,28 @@
</binding>
<binding>
<condition>
<and>
<equals>
<property>instrumentation/mk-viii/inputs/discretes/ta-tcf-inhibit</property>
<value>1</value>
</equals>
<equals>
<property>instrumentation/efis[1]/inputs/terr</property>
<value>1</value>
</equals>
</and>
<equals>
<property>instrumentation/mk-viii/inputs/discretes/ta-tcf-inhibit</property>
<value>1</value>
</equals>
</condition>
<command>property-assign</command>
<property>instrumentation/efis[1]/inputs/terr</property>
<value>0</value>
</binding>
<binding>
<condition>
<equals>
<property>instrumentation/mk-viii/inputs/discretes/ta-tcf-inhibit</property>
<value>0</value>
</equals>
</condition>
<command>nasal</command>
<script>
setprop("instrumentation/efis/inputs/terr",getprop("controls/switches/terr_on_nd_l"));
setprop("instrumentation/efis[1]/inputs/terr",getprop("controls/switches/terr_on_nd_r"));
</script>
</binding>
<binding>
<command>nasal</command>
<script>libraries.pushbutton();</script>