VC: Refactor DDRMI animations
This commit is contained in:
parent
8e8c0cac50
commit
ccdc77e555
6 changed files with 5646 additions and 5638 deletions
|
@ -798,6 +798,11 @@
|
|||
<volume type="double">0.6</volume>
|
||||
</comm>
|
||||
|
||||
<ddrmi n="0">
|
||||
<vor-adf-1 type="int">1</vor-adf-1>
|
||||
<vor-adf-2 type="int">1</vor-adf-2>
|
||||
</ddrmi>
|
||||
|
||||
<dme n="0">
|
||||
<frequencies>
|
||||
<selected-mhz type="double">111.15</selected-mhz>
|
||||
|
@ -834,20 +839,6 @@
|
|||
<volume type="double">0</volume>
|
||||
</dme>
|
||||
|
||||
<efis n="0">
|
||||
<input n="0">
|
||||
<vor-adf-1 type="int">2</vor-adf-1>
|
||||
<vor-adf-2 type="int">2</vor-adf-2>
|
||||
</input>
|
||||
</efis>
|
||||
|
||||
<efis n="1">
|
||||
<input n="0">
|
||||
<vor-adf-1 type="int">2</vor-adf-1>
|
||||
<vor-adf-2 type="int">2</vor-adf-2>
|
||||
</input>
|
||||
</efis>
|
||||
|
||||
<nav n="0">
|
||||
<frequencies>
|
||||
<selected-mhz type="double">111.15</selected-mhz>
|
||||
|
|
|
@ -2706,14 +2706,7 @@
|
|||
<repeatable type="bool">false</repeatable>
|
||||
<binding>
|
||||
<command>property-cycle</command>
|
||||
<property>instrumentation/efis/input/vor-adf-1</property>
|
||||
<value>0</value> <!-- OFF -->
|
||||
<value>1</value> <!-- VOR -->
|
||||
<value>2</value> <!-- ADF -->
|
||||
</binding>
|
||||
<binding>
|
||||
<command>property-cycle</command>
|
||||
<property>instrumentation/efis/input/lh-vor-adf</property>
|
||||
<property>instrumentation/efis[0]/input/lh-vor-adf</property>
|
||||
<value>0</value> <!-- OFF -->
|
||||
<value>1</value> <!-- VOR -->
|
||||
<value>-1</value> <!-- ADF -->
|
||||
|
@ -2724,14 +2717,7 @@
|
|||
<repeatable type="bool">false</repeatable>
|
||||
<binding>
|
||||
<command>property-cycle</command>
|
||||
<property>instrumentation/efis/input/vor-adf-1</property>
|
||||
<value>2</value> <!-- ADF -->
|
||||
<value>1</value> <!-- VOR -->
|
||||
<value>0</value> <!-- OFF -->
|
||||
</binding>
|
||||
<binding>
|
||||
<command>property-cycle</command>
|
||||
<property>instrumentation/efis/input/lh-vor-adf</property>
|
||||
<property>instrumentation/efis[0]/input/lh-vor-adf</property>
|
||||
<value>-1</value> <!-- ADF -->
|
||||
<value>1</value> <!-- VOR -->
|
||||
<value>0</value> <!-- OFF -->
|
||||
|
@ -2741,7 +2727,7 @@
|
|||
<animation>
|
||||
<type>rotate</type>
|
||||
<object-name>vor-adf-1</object-name>
|
||||
<property>instrumentation/efis/input/lh-vor-adf</property>
|
||||
<property>instrumentation/efis[0]/input/lh-vor-adf</property>
|
||||
<interpolation>
|
||||
<entry><ind>-1</ind><dep>-25</dep></entry>
|
||||
<entry><ind> 0</ind><dep> 0</dep></entry>
|
||||
|
@ -2758,13 +2744,6 @@
|
|||
<action>
|
||||
<button>0</button>
|
||||
<repeatable type="bool">false</repeatable>
|
||||
<binding>
|
||||
<command>property-cycle</command>
|
||||
<property>instrumentation/efis[1]/input/vor-adf-1</property>
|
||||
<value>0</value> <!-- OFF -->
|
||||
<value>1</value> <!-- VOR -->
|
||||
<value>2</value> <!-- ADF -->
|
||||
</binding>
|
||||
<binding>
|
||||
<command>property-cycle</command>
|
||||
<property>instrumentation/efis[1]/input/lh-vor-adf</property>
|
||||
|
@ -2776,13 +2755,6 @@
|
|||
<action>
|
||||
<button>1</button>
|
||||
<repeatable type="bool">false</repeatable>
|
||||
<binding>
|
||||
<command>property-cycle</command>
|
||||
<property>instrumentation/efis[1]/input/vor-adf-1</property>
|
||||
<value>2</value> <!-- ADF -->
|
||||
<value>1</value> <!-- VOR -->
|
||||
<value>0</value> <!-- OFF -->
|
||||
</binding>
|
||||
<binding>
|
||||
<command>property-cycle</command>
|
||||
<property>instrumentation/efis[1]/input/lh-vor-adf</property>
|
||||
|
@ -2814,14 +2786,7 @@
|
|||
<repeatable type="bool">false</repeatable>
|
||||
<binding>
|
||||
<command>property-cycle</command>
|
||||
<property>instrumentation/efis/input/vor-adf-2</property>
|
||||
<value>0</value> <!-- OFF -->
|
||||
<value>1</value> <!-- VOR -->
|
||||
<value>2</value> <!-- ADF -->
|
||||
</binding>
|
||||
<binding>
|
||||
<command>property-cycle</command>
|
||||
<property>instrumentation/efis/input/rh-vor-adf</property>
|
||||
<property>instrumentation/efis[0]/input/rh-vor-adf</property>
|
||||
<value>0</value> <!-- OFF -->
|
||||
<value>1</value> <!-- VOR -->
|
||||
<value>-1</value> <!-- ADF -->
|
||||
|
@ -2832,14 +2797,7 @@
|
|||
<repeatable type="bool">false</repeatable>
|
||||
<binding>
|
||||
<command>property-cycle</command>
|
||||
<property>instrumentation/efis/input/vor-adf-2</property>
|
||||
<value>2</value> <!-- ADF -->
|
||||
<value>1</value> <!-- VOR -->
|
||||
<value>0</value> <!-- OFF -->
|
||||
</binding>
|
||||
<binding>
|
||||
<command>property-cycle</command>
|
||||
<property>instrumentation/efis/input/rh-vor-adf</property>
|
||||
<property>instrumentation/efis[0]/input/rh-vor-adf</property>
|
||||
<value>-1</value> <!-- ADF -->
|
||||
<value>1</value> <!-- VOR -->
|
||||
<value>0</value> <!-- OFF -->
|
||||
|
@ -2849,7 +2807,7 @@
|
|||
<animation>
|
||||
<type>rotate</type>
|
||||
<object-name>vor-adf-2</object-name>
|
||||
<property>instrumentation/efis/input/rh-vor-adf</property>
|
||||
<property>instrumentation/efis[0]/input/rh-vor-adf</property>
|
||||
<interpolation>
|
||||
<entry><ind>-1</ind><dep>-25</dep></entry>
|
||||
<entry><ind> 0</ind><dep> 0</dep></entry>
|
||||
|
@ -2866,13 +2824,6 @@
|
|||
<action>
|
||||
<button>0</button>
|
||||
<repeatable type="bool">false</repeatable>
|
||||
<binding>
|
||||
<command>property-cycle</command>
|
||||
<property>instrumentation/efis[1]/input/vor-adf-2</property>
|
||||
<value>0</value> <!-- OFF -->
|
||||
<value>1</value> <!-- VOR -->
|
||||
<value>2</value> <!-- ADF -->
|
||||
</binding>
|
||||
<binding>
|
||||
<command>property-cycle</command>
|
||||
<property>instrumentation/efis[1]/input/rh-vor-adf</property>
|
||||
|
@ -2884,13 +2835,6 @@
|
|||
<action>
|
||||
<button>1</button>
|
||||
<repeatable type="bool">false</repeatable>
|
||||
<binding>
|
||||
<command>property-cycle</command>
|
||||
<property>instrumentation/efis[1]/input/vor-adf-2</property>
|
||||
<value>2</value> <!-- ADF -->
|
||||
<value>1</value> <!-- VOR -->
|
||||
<value>0</value> <!-- OFF -->
|
||||
</binding>
|
||||
<binding>
|
||||
<command>property-cycle</command>
|
||||
<property>instrumentation/efis[1]/input/rh-vor-adf</property>
|
||||
|
|
|
@ -7,9 +7,9 @@
|
|||
-->
|
||||
|
||||
<PropertyList>
|
||||
|
||||
|
||||
<path>res/DDRMI.ac</path>
|
||||
|
||||
|
||||
<!-- Lighting -->
|
||||
<animation>
|
||||
<name>DDRMI inside illumination</name>
|
||||
|
@ -22,219 +22,156 @@
|
|||
<object-name>ddrmi_vor_adf_flag_1</object-name>
|
||||
<object-name>ddrmi_vor_adf_flag_2</object-name>
|
||||
<object-name>ddrmi_hdg</object-name>
|
||||
<condition>
|
||||
<or>
|
||||
<greater-than-equals>
|
||||
<property>systems/electrical/bus/dcbat</property>
|
||||
<value>25</value>
|
||||
</greater-than-equals>
|
||||
<greater-than-equals>
|
||||
<property>systems/electrical/bus/dc1</property>
|
||||
<value>25</value>
|
||||
</greater-than-equals>
|
||||
<greater-than-equals>
|
||||
<property>systems/electrical/bus/dc2</property>
|
||||
<value>25</value>
|
||||
</greater-than-equals>
|
||||
</or>
|
||||
</condition>
|
||||
<emission>
|
||||
<red>0.50</red>
|
||||
<green>0.35</green>
|
||||
<blue>0.2</blue>
|
||||
<!--factor-prop>controls/lighting/instruments-norm</factor-prop-->
|
||||
<!--factor-prop>controls/lighting/main-panel-norm</factor-prop-->
|
||||
<factor-prop>controls/lighting/main-panel-norm</factor-prop>
|
||||
</emission>
|
||||
</animation>
|
||||
|
||||
|
||||
<!-- heading and pointer -->
|
||||
<animation>
|
||||
<name>Heading rotate</name>
|
||||
<type>rotate</type>
|
||||
<object-name>ddrmi_hdg</object-name>
|
||||
<property>orientation/heading-magnetic-deg</property>
|
||||
<property>instrumentation/ddrmi/heading</property>
|
||||
<axis>
|
||||
<object-name>ddrmi_hdg.axis</object-name>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<name>VOR1 select</name>
|
||||
<type>select</type>
|
||||
<object-name>ddrmi_pointer_1_vor</object-name>
|
||||
<condition>
|
||||
<equals>
|
||||
<property>instrumentation/efis/input/vor-adf-1</property>
|
||||
<value>0</value>
|
||||
</equals>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<name>VOR1 rotate</name>
|
||||
<object-name>ddrmi_pointer_1_vor</object-name>
|
||||
<object-name>ddrmi_pointer_1</object-name>
|
||||
<type>rotate</type>
|
||||
<property>instrumentation/nav[0]/heading-deg</property>
|
||||
<property>instrumentation/ddrmi/needle-1</property>
|
||||
<axis>
|
||||
<object-name>ddrmi_hdg.axis</object-name>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<name>ADF1 select</name>
|
||||
<type>select</type>
|
||||
<object-name>ddrmi_pointer_1_adf</object-name>
|
||||
<condition>
|
||||
<greater-than-equals>
|
||||
<property>instrumentation/efis/input/vor-adf-1</property>
|
||||
<value>1</value>
|
||||
</greater-than-equals>
|
||||
</condition>
|
||||
</animation>
|
||||
<animation>
|
||||
<name>ADF1 rotate</name>
|
||||
<object-name>ddrmi_pointer_1_adf</object-name>
|
||||
<type>rotate</type>
|
||||
<property>instrumentation/adf[0]/indicated-bearing-deg</property>
|
||||
<axis>
|
||||
<object-name>ddrmi_hdg.axis</object-name>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<name>VOR2 select</name>
|
||||
<type>select</type>
|
||||
<object-name>ddrmi_pointer_2_vor</object-name>
|
||||
<condition>
|
||||
<equals>
|
||||
<property>instrumentation/efis/input/vor-adf-2</property>
|
||||
<value>0</value>
|
||||
</equals>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<name>VOR2 rotate</name>
|
||||
<object-name>ddrmi_pointer_2_vor</object-name>
|
||||
<object-name>ddrmi_pointer_2</object-name>
|
||||
<type>rotate</type>
|
||||
<property>instrumentation/nav[1]/heading-deg</property>
|
||||
<property>instrumentation/ddrmi/needle-2</property>
|
||||
<axis>
|
||||
<object-name>ddrmi_hdg.axis</object-name>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<name>ADF2 select</name>
|
||||
<type>select</type>
|
||||
<object-name>ddrmi_pointer_2_adf</object-name>
|
||||
<condition>
|
||||
<greater-than-equals>
|
||||
<property>instrumentation/efis/input/vor-adf-2</property>
|
||||
<value>1</value>
|
||||
</greater-than-equals>
|
||||
</condition>
|
||||
</animation>
|
||||
<animation>
|
||||
<name>ADF2 rotate</name>
|
||||
<object-name>ddrmi_pointer_2_adf</object-name>
|
||||
<type>rotate</type>
|
||||
<property>instrumentation/adf[1]/indicated-bearing-deg</property>
|
||||
<axis>
|
||||
<object-name>ddrmi_hdg.axis</object-name>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
|
||||
<!-- Knobs -->
|
||||
<!-- Todo: implementation the "pick" currently link from the efis switches -->
|
||||
<animation>
|
||||
<type>pick</type>
|
||||
<object-name>ddrmi_vor_adf_select_1</object-name>
|
||||
<action>
|
||||
<button>0</button>
|
||||
<repeatable type="bool">false</repeatable>
|
||||
<binding>
|
||||
<command>property-cycle</command>
|
||||
<property>instrumentation/ddrmi/vor-adf-1</property>
|
||||
<value>0</value> <!-- OFF -->
|
||||
<value>1</value> <!-- VOR -->
|
||||
<value>-1</value> <!-- ADF -->
|
||||
</binding>
|
||||
</action>
|
||||
<action>
|
||||
<button>1</button>
|
||||
<repeatable type="bool">false</repeatable>
|
||||
<binding>
|
||||
<command>property-cycle</command>
|
||||
<property>instrumentation/ddrmi/vor-adf-1</property>
|
||||
<value>-1</value> <!-- ADF -->
|
||||
<value>1</value> <!-- VOR -->
|
||||
<value>0</value> <!-- OFF -->
|
||||
</binding>
|
||||
</action>
|
||||
</animation>
|
||||
<animation>
|
||||
<name>Knob 1 rotate</name>
|
||||
<object-name>ddrmi_vor_adf_select_1</object-name>
|
||||
<type>rotate</type>
|
||||
<property>instrumentation/efis/input/vor-adf-1</property>
|
||||
<property>instrumentation/ddrmi/vor-adf-1</property>
|
||||
<interpolation>
|
||||
<entry><ind>0</ind><dep>0</dep></entry>
|
||||
<entry><ind>2</ind><dep>45</dep></entry>
|
||||
<entry><ind>1</ind><dep>90</dep></entry>
|
||||
<entry><ind>-1</ind><dep>90</dep></entry>
|
||||
<entry><ind> 0</ind><dep>45</dep></entry>
|
||||
<entry><ind> 1</ind><dep> 0</dep></entry>
|
||||
</interpolation>
|
||||
<axis>
|
||||
<object-name>ddrmi_vor_adf_select_1.axis</object-name>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
|
||||
<animation>
|
||||
<type>pick</type>
|
||||
<object-name>ddrmi_vor_adf_select_2</object-name>
|
||||
<action>
|
||||
<button>0</button>
|
||||
<repeatable type="bool">false</repeatable>
|
||||
<binding>
|
||||
<command>property-cycle</command>
|
||||
<property>instrumentation/ddrmi/vor-adf-2</property>
|
||||
<value>0</value> <!-- OFF -->
|
||||
<value>1</value> <!-- VOR -->
|
||||
<value>-1</value> <!-- ADF -->
|
||||
</binding>
|
||||
</action>
|
||||
<action>
|
||||
<button>1</button>
|
||||
<repeatable type="bool">false</repeatable>
|
||||
<binding>
|
||||
<command>property-cycle</command>
|
||||
<property>instrumentation/ddrmi/vor-adf-2</property>
|
||||
<value>-1</value> <!-- ADF -->
|
||||
<value>1</value> <!-- VOR -->
|
||||
<value>0</value> <!-- OFF -->
|
||||
</binding>
|
||||
</action>
|
||||
</animation>
|
||||
<animation>
|
||||
<name>Knob 2 rotate</name>
|
||||
<object-name>ddrmi_vor_adf_select_2</object-name>
|
||||
<type>rotate</type>
|
||||
<property>instrumentation/efis/input/vor-adf-2</property>
|
||||
<property>instrumentation/ddrmi/vor-adf-2</property>
|
||||
<interpolation>
|
||||
<entry><ind>0</ind><dep>0</dep></entry>
|
||||
<entry><ind>2</ind><dep>-45</dep></entry>
|
||||
<entry><ind>1</ind><dep>-90</dep></entry>
|
||||
<entry><ind>-1</ind><dep>-90</dep></entry>
|
||||
<entry><ind> 0</ind><dep>-45</dep></entry>
|
||||
<entry><ind> 1</ind><dep> 0</dep></entry>
|
||||
</interpolation>
|
||||
<axis>
|
||||
<object-name>ddrmi_vor_adf_select_2.axis</object-name>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
|
||||
<!-- Flags -->
|
||||
|
||||
<animation>
|
||||
<name>Flag 1 visibility</name>
|
||||
<type>select</type>
|
||||
<name>Flag 1 rotate</name>
|
||||
<object-name>ddrmi_vor_adf_flag_1</object-name>
|
||||
<condition>
|
||||
<or>
|
||||
<!-- Shown if: power supply fails -->
|
||||
<and>
|
||||
<less-than>
|
||||
<property>systems/electrical/bus/dcbat</property>
|
||||
<value>25</value>
|
||||
</less-than>
|
||||
<less-than>
|
||||
<property>systems/electrical/bus/dc1</property>
|
||||
<value>25</value>
|
||||
</less-than>
|
||||
<less-than>
|
||||
<property>systems/electrical/bus/dc2</property>
|
||||
<value>25</value>
|
||||
</less-than>
|
||||
</and>
|
||||
<!-- not VOR and not ADF selected -->
|
||||
<equals>
|
||||
<property>instrumentation/efis/input/vor-adf-1</property>
|
||||
<value>2</value>
|
||||
</equals>
|
||||
<!-- Todo: Shown if: VOR or ADF receiver fails, RMI internal failure, ADIRS heading signal not valid -->
|
||||
</or>
|
||||
</condition>
|
||||
<type>rotate</type>
|
||||
<property>instrumentation/ddrmi/flag-1</property>
|
||||
<interpolation>
|
||||
<entry><ind>0</ind><dep>45</dep></entry>
|
||||
<entry><ind>1</ind><dep> 0</dep></entry>
|
||||
</interpolation>
|
||||
<axis>
|
||||
<object-name>ddrmi_vor_adf_flag_1.axis</object-name>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
|
||||
<animation>
|
||||
<name>Flag 2 visibility</name>
|
||||
<type>select</type>
|
||||
<name>Flag 2 rotate</name>
|
||||
<object-name>ddrmi_vor_adf_flag_2</object-name>
|
||||
<condition>
|
||||
<or>
|
||||
<!-- Shown if: power supply fails -->
|
||||
<and>
|
||||
<less-than>
|
||||
<property>systems/electrical/bus/dcbat</property>
|
||||
<value>25</value>
|
||||
</less-than>
|
||||
<less-than>
|
||||
<property>systems/electrical/bus/dc1</property>
|
||||
<value>25</value>
|
||||
</less-than>
|
||||
<less-than>
|
||||
<property>systems/electrical/bus/dc2</property>
|
||||
<value>25</value>
|
||||
</less-than>
|
||||
</and>
|
||||
<!-- not VOR and not ADF selected -->
|
||||
<equals>
|
||||
<property>instrumentation/efis/input/vor-adf-2</property>
|
||||
<value>2</value>
|
||||
</equals>
|
||||
</or>
|
||||
</condition>
|
||||
<type>rotate</type>
|
||||
<property>instrumentation/ddrmi/flag-2</property>
|
||||
<interpolation>
|
||||
<entry><ind>0</ind><dep>-45</dep></entry>
|
||||
<entry><ind>1</ind><dep> 0</dep></entry>
|
||||
</interpolation>
|
||||
<axis>
|
||||
<object-name>ddrmi_vor_adf_flag_2.axis</object-name>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
</PropertyList>
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -889,5 +889,309 @@
|
|||
<max>1.0</max>
|
||||
</config>
|
||||
</pi-simple-controller>
|
||||
|
||||
<filter>
|
||||
<name>DDRMI: Heading</name>
|
||||
<type>gain</type>
|
||||
<gain>1.0</gain>
|
||||
<enable>
|
||||
<condition>
|
||||
<or>
|
||||
<greater-than-equals>
|
||||
<property>/systems/electrical/bus/dcbat</property>
|
||||
<value>25</value>
|
||||
</greater-than-equals>
|
||||
<greater-than-equals>
|
||||
<property>/systems/electrical/bus/dc1</property>
|
||||
<value>25</value>
|
||||
</greater-than-equals>
|
||||
<greater-than-equals>
|
||||
<property>/systems/electrical/bus/dc2</property>
|
||||
<value>25</value>
|
||||
</greater-than-equals>
|
||||
</or>
|
||||
</condition>
|
||||
</enable>
|
||||
<input>/orientation/heading-magnetic-deg</input>
|
||||
<output>/instrumentation/ddrmi/heading</output>
|
||||
</filter>
|
||||
|
||||
<filter>
|
||||
<name>DDRMI: VOR 1 Error</name>
|
||||
<type>gain</type>
|
||||
<gain>1.0</gain>
|
||||
<input>
|
||||
<property>/instrumentation/nav[2]/heading-deg</property>
|
||||
<offset>
|
||||
<property>/orientation/heading-deg</property>
|
||||
<scale>-1.0</scale>
|
||||
</offset>
|
||||
</input>
|
||||
<output>/instrumentation/ddrmi/vor-1-error</output>
|
||||
<period>
|
||||
<min>-180</min>
|
||||
<max>180</max>
|
||||
</period>
|
||||
</filter>
|
||||
|
||||
<filter>
|
||||
<name>DDRMI: Needle 1</name>
|
||||
<debug>false</debug>
|
||||
<type>gain</type>
|
||||
<gain>1.0</gain>
|
||||
<input>
|
||||
<condition>
|
||||
<and>
|
||||
<or>
|
||||
<greater-than-equals>
|
||||
<property>/systems/electrical/bus/dcbat</property>
|
||||
<value>25</value>
|
||||
</greater-than-equals>
|
||||
<greater-than-equals>
|
||||
<property>/systems/electrical/bus/dc1</property>
|
||||
<value>25</value>
|
||||
</greater-than-equals>
|
||||
<greater-than-equals>
|
||||
<property>/systems/electrical/bus/dc2</property>
|
||||
<value>25</value>
|
||||
</greater-than-equals>
|
||||
</or>
|
||||
<equals>
|
||||
<property>/instrumentation/ddrmi/vor-adf-1</property>
|
||||
<value>1</value>
|
||||
</equals>
|
||||
<equals>
|
||||
<property>/instrumentation/nav[2]/in-range</property>
|
||||
<value>1</value>
|
||||
</equals>
|
||||
</and>
|
||||
</condition>
|
||||
<property>/instrumentation/ddrmi/vor-1-error</property>
|
||||
<scale>-1.0</scale>
|
||||
</input>
|
||||
<input>
|
||||
<condition>
|
||||
<and>
|
||||
<or>
|
||||
<greater-than-equals>
|
||||
<property>/systems/electrical/bus/dcbat</property>
|
||||
<value>25</value>
|
||||
</greater-than-equals>
|
||||
<greater-than-equals>
|
||||
<property>/systems/electrical/bus/dc1</property>
|
||||
<value>25</value>
|
||||
</greater-than-equals>
|
||||
<greater-than-equals>
|
||||
<property>/systems/electrical/bus/dc2</property>
|
||||
<value>25</value>
|
||||
</greater-than-equals>
|
||||
</or>
|
||||
<equals>
|
||||
<property>/instrumentation/ddrmi/vor-adf-1</property>
|
||||
<value>-1</value>
|
||||
</equals>
|
||||
<equals>
|
||||
<property>/instrumentation/adf[0]/in-range</property>
|
||||
<value>1</value>
|
||||
</equals>
|
||||
</and>
|
||||
</condition>
|
||||
<property>/instrumentation/adf[0]/indicated-bearing-deg</property>
|
||||
<scale>-1.0</scale>
|
||||
</input>
|
||||
<input>-90</input>
|
||||
<output>/instrumentation/ddrmi/needle-1</output>
|
||||
</filter>
|
||||
|
||||
<filter>
|
||||
<name>DDRMI: VOR 2 Error</name>
|
||||
<type>gain</type>
|
||||
<gain>1.0</gain>
|
||||
<input>
|
||||
<property>/instrumentation/nav[3]/heading-deg</property>
|
||||
<offset>
|
||||
<property>/orientation/heading-deg</property>
|
||||
<scale>-1.0</scale>
|
||||
</offset>
|
||||
</input>
|
||||
<output>/instrumentation/ddrmi/vor-2-error</output>
|
||||
<period>
|
||||
<min>-180</min>
|
||||
<max>180</max>
|
||||
</period>
|
||||
</filter>
|
||||
|
||||
<filter>
|
||||
<name>DDRMI: Needle 2</name>
|
||||
<debug>false</debug>
|
||||
<type>gain</type>
|
||||
<gain>1.0</gain>
|
||||
<input>
|
||||
<condition>
|
||||
<and>
|
||||
<or>
|
||||
<greater-than-equals>
|
||||
<property>/systems/electrical/bus/dcbat</property>
|
||||
<value>25</value>
|
||||
</greater-than-equals>
|
||||
<greater-than-equals>
|
||||
<property>/systems/electrical/bus/dc1</property>
|
||||
<value>25</value>
|
||||
</greater-than-equals>
|
||||
<greater-than-equals>
|
||||
<property>/systems/electrical/bus/dc2</property>
|
||||
<value>25</value>
|
||||
</greater-than-equals>
|
||||
</or>
|
||||
<equals>
|
||||
<property>/instrumentation/ddrmi/vor-adf-2</property>
|
||||
<value>1</value>
|
||||
</equals>
|
||||
<equals>
|
||||
<property>/instrumentation/nav[3]/in-range</property>
|
||||
<value>1</value>
|
||||
</equals>
|
||||
</and>
|
||||
</condition>
|
||||
<property>/instrumentation/ddrmi/vor-2-error</property>
|
||||
<scale>-1.0</scale>
|
||||
</input>
|
||||
<input>
|
||||
<condition>
|
||||
<and>
|
||||
<or>
|
||||
<greater-than-equals>
|
||||
<property>/systems/electrical/bus/dcbat</property>
|
||||
<value>25</value>
|
||||
</greater-than-equals>
|
||||
<greater-than-equals>
|
||||
<property>/systems/electrical/bus/dc1</property>
|
||||
<value>25</value>
|
||||
</greater-than-equals>
|
||||
<greater-than-equals>
|
||||
<property>/systems/electrical/bus/dc2</property>
|
||||
<value>25</value>
|
||||
</greater-than-equals>
|
||||
</or>
|
||||
<equals>
|
||||
<property>/instrumentation/ddrmi/vor-adf-2</property>
|
||||
<value>-1</value>
|
||||
</equals>
|
||||
<equals>
|
||||
<property>/instrumentation/adf[1]/in-range</property>
|
||||
<value>1</value>
|
||||
</equals>
|
||||
</and>
|
||||
</condition>
|
||||
<property>/instrumentation/adf[1]/indicated-bearing-deg</property>
|
||||
<scale>-1.0</scale>
|
||||
</input>
|
||||
<input>-90</input>
|
||||
<output>/instrumentation/ddrmi/needle-2</output>
|
||||
</filter>
|
||||
|
||||
<filter>
|
||||
<name>DDRMI: FLAG 1</name>
|
||||
<debug>false</debug>
|
||||
<type>exponential</type>
|
||||
<input>
|
||||
<condition>
|
||||
<and>
|
||||
<or>
|
||||
<greater-than-equals>
|
||||
<property>/systems/electrical/bus/dcbat</property>
|
||||
<value>25</value>
|
||||
</greater-than-equals>
|
||||
<greater-than-equals>
|
||||
<property>/systems/electrical/bus/dc1</property>
|
||||
<value>25</value>
|
||||
</greater-than-equals>
|
||||
<greater-than-equals>
|
||||
<property>/systems/electrical/bus/dc2</property>
|
||||
<value>25</value>
|
||||
</greater-than-equals>
|
||||
</or>
|
||||
<or>
|
||||
<and>
|
||||
<equals>
|
||||
<property>/instrumentation/ddrmi/vor-adf-1</property>
|
||||
<value>1</value>
|
||||
</equals>
|
||||
<equals>
|
||||
<property>/instrumentation/nav[2]/in-range</property>
|
||||
<value>1</value>
|
||||
</equals>
|
||||
</and>
|
||||
<and>
|
||||
<equals>
|
||||
<property>/instrumentation/ddrmi/vor-adf-1</property>
|
||||
<value>-1</value>
|
||||
</equals>
|
||||
<equals>
|
||||
<property>/instrumentation/adf[0]/in-range</property>
|
||||
<value>1</value>
|
||||
</equals>
|
||||
</and>
|
||||
</or>
|
||||
</and>
|
||||
</condition>
|
||||
<value>0</value>
|
||||
</input>
|
||||
<input>1</input>
|
||||
<output>/instrumentation/ddrmi/flag-1</output>
|
||||
<filter-time>0.64</filter-time>
|
||||
</filter>
|
||||
|
||||
<filter>
|
||||
<name>DDRMI: FLAG 2</name>
|
||||
<debug>false</debug>
|
||||
<type>exponential</type>
|
||||
<input>
|
||||
<condition>
|
||||
<and>
|
||||
<or>
|
||||
<greater-than-equals>
|
||||
<property>/systems/electrical/bus/dcbat</property>
|
||||
<value>25</value>
|
||||
</greater-than-equals>
|
||||
<greater-than-equals>
|
||||
<property>/systems/electrical/bus/dc1</property>
|
||||
<value>25</value>
|
||||
</greater-than-equals>
|
||||
<greater-than-equals>
|
||||
<property>/systems/electrical/bus/dc2</property>
|
||||
<value>25</value>
|
||||
</greater-than-equals>
|
||||
</or>
|
||||
<or>
|
||||
<and>
|
||||
<equals>
|
||||
<property>/instrumentation/ddrmi/vor-adf-2</property>
|
||||
<value>1</value>
|
||||
</equals>
|
||||
<equals>
|
||||
<property>/instrumentation/nav[3]/in-range</property>
|
||||
<value>1</value>
|
||||
</equals>
|
||||
</and>
|
||||
<and>
|
||||
<equals>
|
||||
<property>/instrumentation/ddrmi/vor-adf-2</property>
|
||||
<value>-1</value>
|
||||
</equals>
|
||||
<equals>
|
||||
<property>/instrumentation/adf[1]/in-range</property>
|
||||
<value>1</value>
|
||||
</equals>
|
||||
</and>
|
||||
</or>
|
||||
</and>
|
||||
</condition>
|
||||
<value>0</value>
|
||||
</input>
|
||||
<input>1</input>
|
||||
<output>/instrumentation/ddrmi/flag-2</output>
|
||||
<filter-time>0.64</filter-time>
|
||||
</filter>
|
||||
|
||||
</PropertyList>
|
||||
|
|
|
@ -1 +1 @@
|
|||
4675
|
||||
4676
|
Reference in a new issue