Add stow RAT option
This commit is contained in:
parent
0cd3549867
commit
1799bfe630
3 changed files with 78 additions and 50 deletions
|
@ -398,6 +398,26 @@
|
||||||
<value>0</value>
|
<value>0</value>
|
||||||
</binding>
|
</binding>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
<button>
|
||||||
|
<legend>Stow RAT</legend>
|
||||||
|
<halign>center</halign>
|
||||||
|
<padding>5</padding>
|
||||||
|
<enable>
|
||||||
|
<and>
|
||||||
|
<property>/gear/gear[1]/wow</property>
|
||||||
|
<less-than>
|
||||||
|
<property>/velocities/groundspeed-kt</property>
|
||||||
|
<value>100</value>
|
||||||
|
</less-than>
|
||||||
|
</and>
|
||||||
|
</enable>
|
||||||
|
<binding>
|
||||||
|
<command>property-assign</command>
|
||||||
|
<property>/systems/electrical/some-electric-thingie/rat-deploy</property>
|
||||||
|
<value>0</value>
|
||||||
|
</binding>
|
||||||
|
</button>
|
||||||
</group>
|
</group>
|
||||||
|
|
||||||
</PropertyList>
|
</PropertyList>
|
||||||
|
|
|
@ -2064,8 +2064,9 @@
|
||||||
</greater-than-equals>
|
</greater-than-equals>
|
||||||
</and>
|
</and>
|
||||||
</condition>
|
</condition>
|
||||||
<command>property-toggle</command>
|
<command>property-assign</command>
|
||||||
<property>controls/hydraulic/switches/rat-man</property>
|
<property>controls/hydraulic/switches/rat-man</property>
|
||||||
|
<value>1</value>
|
||||||
</binding>
|
</binding>
|
||||||
<binding>
|
<binding>
|
||||||
<condition>
|
<condition>
|
||||||
|
@ -2077,29 +2078,34 @@
|
||||||
<command>nasal</command>
|
<command>nasal</command>
|
||||||
<script>libraries.pushbutton();</script>
|
<script>libraries.pushbutton();</script>
|
||||||
</binding>
|
</binding>
|
||||||
<binding>
|
<mod-up>
|
||||||
<condition>
|
<binding>
|
||||||
<and>
|
<condition>
|
||||||
<equals>
|
<and>
|
||||||
<property>controls/OH/protectors/ratman</property>
|
<equals>
|
||||||
<value>1</value>
|
<property>controls/OH/protectors/ratman</property>
|
||||||
</equals>
|
<value>1</value>
|
||||||
<or>
|
</equals>
|
||||||
<greater-than-equals>
|
</and>
|
||||||
<property>systems/electrical/bus/dc-bat</property>
|
</condition>
|
||||||
<value>25</value>
|
<command>property-assign</command>
|
||||||
</greater-than-equals>
|
<property>controls/hydraulic/switches/rat-man</property>
|
||||||
<greater-than-equals>
|
<value>0</value>
|
||||||
<property>systems/electrical/bus/dc-ess</property>
|
</binding>
|
||||||
<value>25</value>
|
<binding>
|
||||||
</greater-than-equals>
|
<condition>
|
||||||
</or>
|
<and>
|
||||||
</and>
|
<equals>
|
||||||
</condition>
|
<property>controls/OH/protectors/ratman</property>
|
||||||
<command>property-assign</command>
|
<value>1</value>
|
||||||
<property>controls/OH/protectors/ratman</property>
|
</equals>
|
||||||
<value>0</value>
|
</and>
|
||||||
</binding>
|
</condition>
|
||||||
|
<command>property-assign</command>
|
||||||
|
<property>controls/OH/protectors/ratman</property>
|
||||||
|
<value>0</value>
|
||||||
|
</binding>
|
||||||
|
</mod-up>
|
||||||
</action>
|
</action>
|
||||||
</animation>
|
</animation>
|
||||||
|
|
||||||
|
@ -3911,29 +3917,34 @@
|
||||||
<command>nasal</command>
|
<command>nasal</command>
|
||||||
<script>libraries.pushbutton();</script>
|
<script>libraries.pushbutton();</script>
|
||||||
</binding>
|
</binding>
|
||||||
<binding>
|
<mod-up>
|
||||||
<condition>
|
<binding>
|
||||||
<and>
|
<condition>
|
||||||
<equals>
|
<and>
|
||||||
<property>controls/OH/protectors/elecratman</property>
|
<equals>
|
||||||
<value>1</value>
|
<property>controls/OH/protectors/elecratman</property>
|
||||||
</equals>
|
<value>1</value>
|
||||||
<or>
|
</equals>
|
||||||
<greater-than-equals>
|
</and>
|
||||||
<property>systems/electrical/bus/dc-bat</property>
|
</condition>
|
||||||
<value>25</value>
|
<command>property-assign</command>
|
||||||
</greater-than-equals>
|
<property>controls/electrical/switches/emer-elec-man-on</property>
|
||||||
<greater-than-equals>
|
<value>0</value>
|
||||||
<property>systems/electrical/bus/dc-ess</property>
|
</binding>
|
||||||
<value>25</value>
|
<binding>
|
||||||
</greater-than-equals>
|
<condition>
|
||||||
</or>
|
<and>
|
||||||
</and>
|
<equals>
|
||||||
</condition>
|
<property>controls/OH/protectors/elecratman</property>
|
||||||
<command>property-assign</command>
|
<value>1</value>
|
||||||
<property>controls/OH/protectors/elecratman</property>
|
</equals>
|
||||||
<value>0</value>
|
</and>
|
||||||
</binding>
|
</condition>
|
||||||
|
<command>property-assign</command>
|
||||||
|
<property>controls/OH/protectors/elecratman</property>
|
||||||
|
<value>0</value>
|
||||||
|
</binding>
|
||||||
|
</mod-up>
|
||||||
</action>
|
</action>
|
||||||
</animation>
|
</animation>
|
||||||
|
|
||||||
|
|
|
@ -855,9 +855,6 @@
|
||||||
/controls/hydraulic/switches/rat-man eq 1
|
/controls/hydraulic/switches/rat-man eq 1
|
||||||
/controls/electrical/switches/emer-elec-man-on eq 1
|
/controls/electrical/switches/emer-elec-man-on eq 1
|
||||||
</test>
|
</test>
|
||||||
<!--<test value="0">
|
|
||||||
/controls/hydraulic/switches/ground-rat-retraction eq 1
|
|
||||||
</test>-->
|
|
||||||
</switch>
|
</switch>
|
||||||
|
|
||||||
<switch name="/systems/electrical/some-electric-thingie/emer-gen-operate">
|
<switch name="/systems/electrical/some-electric-thingie/emer-gen-operate">
|
||||||
|
|
Loading…
Add table
Reference in a new issue