2016-02-10 21:32:19 +00:00
|
|
|
<?xml version="1.0"?>
|
2016-08-12 18:57:03 +00:00
|
|
|
|
2016-02-10 21:32:19 +00:00
|
|
|
<PropertyList>
|
|
|
|
|
2015-07-05 18:32:41 +00:00
|
|
|
<path>flaps.ac</path>
|
|
|
|
|
2016-02-10 21:32:19 +00:00
|
|
|
<params>
|
|
|
|
<flaps-lever>/sim/model/c172p/cockpit/flaps-lever</flaps-lever>
|
|
|
|
</params>
|
|
|
|
|
|
|
|
<effect>
|
2018-09-02 19:58:05 +00:00
|
|
|
<inherits-from>../../../Effects/interior/lm-flapsr</inherits-from>
|
2016-02-10 21:32:19 +00:00
|
|
|
<object-name>FlapSwitch</object-name>
|
|
|
|
<object-name>FlapPos</object-name>
|
2018-05-17 11:58:44 +00:00
|
|
|
</effect>
|
|
|
|
|
|
|
|
<effect>
|
2018-09-02 19:58:05 +00:00
|
|
|
<inherits-from>../../../Effects/interior/lm-flaps</inherits-from>
|
2016-02-10 21:32:19 +00:00
|
|
|
<object-name>rect</object-name>
|
2015-07-05 18:32:41 +00:00
|
|
|
</effect>
|
|
|
|
|
2016-02-10 21:32:19 +00:00
|
|
|
<!-- ================================================================== -->
|
|
|
|
<!-- Flaps position indicator -->
|
|
|
|
<!-- ================================================================== -->
|
|
|
|
|
|
|
|
<animation>
|
|
|
|
<type>translate</type>
|
|
|
|
<property>surface-positions/flap-pos-norm</property>
|
|
|
|
<object-name>FlapPos</object-name>
|
|
|
|
<axis>
|
|
|
|
<x>0.0</x>
|
|
|
|
<y>0.0</y>
|
|
|
|
<z>-1.0</z>
|
|
|
|
</axis>
|
|
|
|
<interpolation>
|
|
|
|
<entry>
|
|
|
|
<ind>0.0</ind>
|
|
|
|
<dep>0.0</dep>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
|
|
|
<ind>0.333333</ind>
|
|
|
|
<dep>0.022</dep>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
|
|
|
<ind>0.666666</ind>
|
|
|
|
<dep>0.034</dep>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
|
|
|
<ind>1.0</ind>
|
|
|
|
<dep>0.045</dep>
|
|
|
|
</entry>
|
|
|
|
</interpolation>
|
|
|
|
</animation>
|
|
|
|
|
|
|
|
<!-- ================================================================== -->
|
|
|
|
<!-- Flaps lever -->
|
|
|
|
<!-- ================================================================== -->
|
|
|
|
|
2015-06-16 21:20:54 +00:00
|
|
|
<animation>
|
2016-02-10 21:32:19 +00:00
|
|
|
<type>slider</type>
|
|
|
|
<drag-direction>vertical</drag-direction>
|
2016-05-18 21:11:05 +00:00
|
|
|
<drag-scale-px>30</drag-scale-px>
|
2016-02-10 21:32:19 +00:00
|
|
|
<property alias="/params/flaps-lever"/>
|
|
|
|
<object-name>FlapSwitch</object-name>
|
|
|
|
<axis>
|
|
|
|
<x>0.0</x>
|
|
|
|
<y>0.0</y>
|
|
|
|
<z>-1.0</z>
|
|
|
|
</axis>
|
|
|
|
<interpolation>
|
|
|
|
<entry>
|
|
|
|
<ind>0.0</ind>
|
|
|
|
<dep>0.0</dep>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
|
|
|
<ind>0.333333</ind>
|
|
|
|
<dep>0.022</dep>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
|
|
|
<ind>0.666666</ind>
|
|
|
|
<dep>0.036</dep>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
|
|
|
<ind>1.0</ind>
|
|
|
|
<dep>0.052</dep>
|
|
|
|
</entry>
|
|
|
|
</interpolation>
|
2016-05-18 21:11:05 +00:00
|
|
|
|
|
|
|
<!-- Flaps moving down -->
|
|
|
|
<decrease>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>controls.flapsDown(1);</script>
|
|
|
|
</binding>
|
|
|
|
</decrease>
|
|
|
|
|
|
|
|
<!-- Flaps moving up -->
|
|
|
|
<increase>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>controls.flapsDown(-1);</script>
|
|
|
|
</binding>
|
|
|
|
</increase>
|
2016-02-10 21:32:19 +00:00
|
|
|
</animation>
|
|
|
|
|
2015-06-16 21:20:54 +00:00
|
|
|
<animation>
|
2016-02-10 21:32:19 +00:00
|
|
|
<type>translate</type>
|
|
|
|
<property alias="/params/flaps-lever"/>
|
|
|
|
<object-name>FlapSwitch</object-name>
|
|
|
|
<axis>
|
|
|
|
<x>0.0</x>
|
|
|
|
<y>1.0</y>
|
|
|
|
<z>0.0</z>
|
|
|
|
</axis>
|
|
|
|
<interpolation>
|
|
|
|
<entry>
|
|
|
|
<ind>0.0</ind>
|
|
|
|
<dep>-0.001</dep>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
|
|
|
<ind>0.333333</ind>
|
|
|
|
<dep>-0.001</dep>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
|
|
|
<ind>0.345</ind>
|
|
|
|
<dep>0.0035</dep>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
|
|
|
<ind>0.666666</ind>
|
|
|
|
<dep>0.0035</dep>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
|
|
|
<ind>0.675</ind>
|
|
|
|
<dep>0.0055</dep>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
|
|
|
<ind>1.0</ind>
|
|
|
|
<dep>0.0055</dep>
|
|
|
|
</entry>
|
|
|
|
</interpolation>
|
|
|
|
</animation>
|
|
|
|
|
2018-09-16 17:13:13 +00:00
|
|
|
<animation>
|
|
|
|
<type>material</type>
|
|
|
|
<object-name>FlapSwitch</object-name>
|
|
|
|
<object-name>FlapPos</object-name>
|
|
|
|
<object-name>rect</object-name>
|
|
|
|
<condition>
|
|
|
|
<not>
|
|
|
|
<property>/sim/rendering/shaders/skydome</property>
|
|
|
|
</not>
|
|
|
|
</condition>
|
|
|
|
<emission>
|
|
|
|
<red-prop>/sim/model/c172p/lighting/rgb-ra-r-factor</red-prop>
|
|
|
|
<green-prop>/sim/model/c172p/lighting/rgb-ra-g-factor</green-prop>
|
|
|
|
<blue-prop>/sim/model/c172p/lighting/rgb-ra-b-factor</blue-prop>
|
|
|
|
</emission>
|
|
|
|
</animation>
|
|
|
|
|
2015-06-16 21:20:54 +00:00
|
|
|
</PropertyList>
|