1
0
Fork 0

Add stow RAT option

This commit is contained in:
Jonathan Redpath 2021-11-17 14:44:07 +00:00
parent 0cd3549867
commit 1799bfe630
3 changed files with 78 additions and 50 deletions

View file

@ -398,6 +398,26 @@
<value>0</value>
</binding>
</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>
</PropertyList>

View file

@ -2064,8 +2064,9 @@
</greater-than-equals>
</and>
</condition>
<command>property-toggle</command>
<command>property-assign</command>
<property>controls/hydraulic/switches/rat-man</property>
<value>1</value>
</binding>
<binding>
<condition>
@ -2077,29 +2078,34 @@
<command>nasal</command>
<script>libraries.pushbutton();</script>
</binding>
<binding>
<condition>
<and>
<equals>
<property>controls/OH/protectors/ratman</property>
<value>1</value>
</equals>
<or>
<greater-than-equals>
<property>systems/electrical/bus/dc-bat</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
</or>
</and>
</condition>
<command>property-assign</command>
<property>controls/OH/protectors/ratman</property>
<value>0</value>
</binding>
<mod-up>
<binding>
<condition>
<and>
<equals>
<property>controls/OH/protectors/ratman</property>
<value>1</value>
</equals>
</and>
</condition>
<command>property-assign</command>
<property>controls/hydraulic/switches/rat-man</property>
<value>0</value>
</binding>
<binding>
<condition>
<and>
<equals>
<property>controls/OH/protectors/ratman</property>
<value>1</value>
</equals>
</and>
</condition>
<command>property-assign</command>
<property>controls/OH/protectors/ratman</property>
<value>0</value>
</binding>
</mod-up>
</action>
</animation>
@ -3911,29 +3917,34 @@
<command>nasal</command>
<script>libraries.pushbutton();</script>
</binding>
<binding>
<condition>
<and>
<equals>
<property>controls/OH/protectors/elecratman</property>
<value>1</value>
</equals>
<or>
<greater-than-equals>
<property>systems/electrical/bus/dc-bat</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
</or>
</and>
</condition>
<command>property-assign</command>
<property>controls/OH/protectors/elecratman</property>
<value>0</value>
</binding>
<mod-up>
<binding>
<condition>
<and>
<equals>
<property>controls/OH/protectors/elecratman</property>
<value>1</value>
</equals>
</and>
</condition>
<command>property-assign</command>
<property>controls/electrical/switches/emer-elec-man-on</property>
<value>0</value>
</binding>
<binding>
<condition>
<and>
<equals>
<property>controls/OH/protectors/elecratman</property>
<value>1</value>
</equals>
</and>
</condition>
<command>property-assign</command>
<property>controls/OH/protectors/elecratman</property>
<value>0</value>
</binding>
</mod-up>
</action>
</animation>

View file

@ -855,9 +855,6 @@
/controls/hydraulic/switches/rat-man eq 1
/controls/electrical/switches/emer-elec-man-on eq 1
</test>
<!--<test value="0">
/controls/hydraulic/switches/ground-rat-retraction eq 1
</test>-->
</switch>
<switch name="/systems/electrical/some-electric-thingie/emer-gen-operate">