1
0
Fork 0

More animations - fix some axises, APU switches, pedestal center

This commit is contained in:
Jonathan Redpath 2022-02-19 12:20:35 +00:00
parent 8fe4a3a8a8
commit 2e17259c60
3 changed files with 1298 additions and 1174 deletions

File diff suppressed because it is too large Load diff

View file

@ -4964,136 +4964,7 @@
</animation>
<!-- APU -->
<animation>
<name>APU master switch pick</name>
<type>pick</type>
<object-name>APUMasterBtn1</object-name>
<object-name>APUMasterBtn1F</object-name>
<object-name>APUMasterBtn2</object-name>
<object-name>APUMasterBtn2O</object-name>
<action>
<button>0</button>
<repeatable>false</repeatable>
<binding>
<condition>
<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>
</condition>
<command>property-toggle</command>
<property>controls/apu/master</property>
</binding>
<binding>
<command>nasal</command>
<script>libraries.pushbutton();</script>
</binding>
</action>
</animation>
<animation>
<type>select</type>
<object-name>APUMasterBtn1F</object-name>
<condition>
<or>
<property>systems/apu/fault</property>
<equals>
<property>controls/switches/annun-test</property>
<value>1</value>
</equals>
</or>
</condition>
</animation>
<animation>
<type>select</type>
<object-name>APUMasterBtn2O</object-name>
<condition>
<or>
<equals>
<property>controls/apu/master</property>
<value>1</value>
</equals>
<equals>
<property>controls/switches/annun-test</property>
<value>1</value>
</equals>
</or>
</condition>
</animation>
<animation>
<name>APU starter pick</name>
<type>pick</type>
<object-name>APUStartBtn1</object-name>
<object-name>APUStartBtn2</object-name>
<object-name>APUStartBtn1A</object-name>
<object-name>APUStartBtn2O</object-name>
<action>
<button>0</button>
<repeatable>false</repeatable>
<binding>
<condition>
<or>
<greater-than-equals>
<property>systems/electrical/bus/dc-bat</property>
<value>25</value>
</greater-than-equals>
</or>
</condition>
<command>nasal</command>
<script>
if (systems.APUNodes.Controls.master.getBoolValue()) {
systems.APUController.APU.startCommand();
}
</script>
</binding>
<binding>
<command>nasal</command>
<script>libraries.pushbutton();</script>
</binding>
</action>
</animation>
<animation>
<type>select</type>
<object-name>APUStartBtn1A</object-name>
<condition>
<or>
<equals>
<property>systems/apu/available</property>
<value>1</value>
</equals>
<equals>
<property>controls/switches/annun-test</property>
<value>1</value>
</equals>
</or>
</condition>
</animation>
<animation>
<type>select</type>
<object-name>APUStartBtn2O</object-name>
<condition>
<or>
<equals>
<property>systems/apu/start</property>
<value>1</value>
</equals>
<equals>
<property>controls/switches/annun-test</property>
<value>1</value>
</equals>
</or>
</condition>
</animation>
<!-- Manual Start -->
<animation>
@ -6196,195 +6067,7 @@
</binding>
</action>
</animation>
<animation>
<type>pick</type>
<object-name>LeftRainTest</object-name>
<action>
<button>0</button>
<repeatable>false</repeatable>
<binding>
<condition>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<or>
<not>
<property>gear/gear[1]/wow</property>
</not>
<equals>
<property>/engines/engine[0]/state</property>
<value>3</value>
</equals>
<equals>
<property>/engines/engine[1]/state</property>
<value>3</value>
</equals>
</or>
</and>
</condition>
<command>property-assign</command>
<property>controls/switches/LrainRpt</property>
<value>1</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>controls/switches/LrainRpt</property>
<value>0</value>
</binding>
</mod-up>
<binding>
<command>nasal</command>
<script>libraries.pushbutton();</script>
</binding>
</action>
</animation>
<animation>
<type>pick</type>
<object-name>RightRainTest</object-name>
<action>
<button>0</button>
<repeatable>false</repeatable>
<binding>
<condition>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-2</property>
<value>25</value>
</greater-than-equals>
<or>
<not>
<property>gear/gear[1]/wow</property>
</not>
<equals>
<property>/engines/engine[0]/state</property>
<value>3</value>
</equals>
<equals>
<property>/engines/engine[1]/state</property>
<value>3</value>
</equals>
</or>
</and>
</condition>
<command>property-assign</command>
<property>controls/switches/RrainRpt</property>
<value>1</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>controls/switches/RrainRpt</property>
<value>0</value>
</binding>
</mod-up>
<binding>
<command>nasal</command>
<script>libraries.pushbutton();</script>
</binding>
</action>
</animation>
<animation>
<type>rotate</type>
<object-name>LeftWiperKnb</object-name>
<property>controls/switches/wiperLspd</property>
<interpolation>
<entry><ind>0</ind><dep>0</dep></entry>
<entry><ind>1</ind><dep>-60</dep></entry>
<entry><ind>2</ind><dep>-110</dep></entry>
</interpolation>
<axis>
<x1-m>-0.003475</x1-m>
<y1-m>-0.216042</y1-m>
<z1-m>-0.267275</z1-m>
<x2-m>-0.002396</x2-m>
<y2-m>-0.215907</y2-m>
<z2-m>-0.267275</z2-m>
</axis>
</animation>
<animation>
<type>pick</type>
<object-name>LeftWiperKnb</object-name>
<action>
<button>0</button>
<button>3</button>
<repeatable>false</repeatable>
<binding>
<command>property-adjust</command>
<property>controls/switches/wiperLspd</property>
<step>1</step>
<min>0</min>
<max>2</max>
</binding>
</action>
<action>
<button>1</button>
<button>4</button>
<repeatable>false</repeatable>
<binding>
<command>property-adjust</command>
<property>controls/switches/wiperLspd</property>
<step>-1</step>
<min>0</min>
<max>2</max>
</binding>
</action>
</animation>
<animation>
<type>rotate</type>
<object-name>RightWiperKnb</object-name>
<property>controls/switches/wiperRspd</property>
<interpolation>
<entry><ind>0</ind><dep>0</dep></entry>
<entry><ind>1</ind><dep>-60</dep></entry>
<entry><ind>2</ind><dep>-110</dep></entry>
</interpolation>
<axis>
<x1-m>-0.003475</x1-m>
<y1-m>0.216042</y1-m>
<z1-m>-0.267275</z1-m>
<x2-m>-0.002396</x2-m>
<y2-m>0.215907</y2-m>
<z2-m>-0.267275</z2-m>
</axis>
</animation>
<animation>
<type>pick</type>
<object-name>RightWiperKnb</object-name>
<action>
<button>0</button>
<button>3</button>
<repeatable>false</repeatable>
<binding>
<command>property-adjust</command>
<property>controls/switches/wiperRspd</property>
<step>1</step>
<min>0</min>
<max>2</max>
</binding>
</action>
<action>
<button>1</button>
<button>4</button>
<repeatable>false</repeatable>
<binding>
<command>property-adjust</command>
<property>controls/switches/wiperRspd</property>
<step>-1</step>
<min>0</min>
<max>2</max>
</binding>
</action>
</animation>
<animation>
<type>select</type>
<object-name>PassOxyInd1S</object-name>

View file

@ -294,6 +294,21 @@
<input>/controls/cockpit/emer-canc-cover</input>
<c1>20</c1>
</lag_filter>
<lag_filter name="/controls/switches/wiperLspd-pos">
<input>/controls/switches/wiperLspd</input>
<c1>20</c1>
</lag_filter>
<lag_filter name="/controls/switches/wiperRspd-pos">
<input>/controls/switches/wiperRspd</input>
<c1>20</c1>
</lag_filter>
<lag_filter name="/controls/cockpit/wxr-radar-sw-pos">
<input>/instrumentation/wxr/enabled</input>
<c1>20</c1>
</lag_filter>
</channel>