<?xml version="1.0"?>

<PropertyList>

    <path>RDMI.ac</path>


    <animation>
    <type>material</type>
    <object-name>face</object-name>
    <object-name>tacan</object-name>
    <object-name>vor</object-name>
    <object-name>pointer</object-name>
    <emission>
    <red>0.6</red>
    <green>0.3</green>
    <blue>0.3</blue>
    <factor-prop>controls/lighting/instruments-norm</factor-prop>
    </emission> 
    </animation> 

    <animation>
    <type>rotate</type>
    <object-name>face</object-name>
    <property>orientation/heading-magnetic-deg</property>
    <factor>1</factor>
        <axis>
            <x1-m>-0.0432</x1-m>
            <y1-m> 0.0000</y1-m>
            <z1-m>-0.0062</z1-m>
            <x2-m>-0.0057</x2-m>
            <y2-m> 0.0000</y2-m>
            <z2-m>-0.0062</z2-m>
        </axis>
    </animation>  

    <animation>
    <type>select</type>
    <object-name>tacan</object-name>
    <condition>
    <equals>
    <property>instrumentation/rdmi-mode</property>
    <value>0</value>  
    </equals> 
    </condition>
    </animation>

    <animation>
    <type>rotate</type>
    <object-name>tacan</object-name>
    <property>orientation/heading-magnetic-deg</property>
    <factor>1</factor>
        <axis>
            <x1-m>-0.0432</x1-m>
            <y1-m> 0.0000</y1-m>
            <z1-m>-0.0062</z1-m>
            <x2-m>-0.0057</x2-m>
            <y2-m> 0.0000</y2-m>
            <z2-m>-0.0062</z2-m>
        </axis>
    </animation>

    <animation>
    <type>rotate</type>
    <object-name>tacan</object-name>
    <property>instrumentation/tacan/indicated-bearing-true-deg</property>
    <factor>-1</factor>
        <axis>
            <x1-m>-0.0432</x1-m>
            <y1-m> 0.0000</y1-m>
            <z1-m>-0.0062</z1-m>
            <x2-m>-0.0057</x2-m>
            <y2-m> 0.0000</y2-m>
            <z2-m>-0.0062</z2-m>
        </axis>
    </animation> 

    <animation>
    <type>rotate</type>
    <object-name>tacan</object-name>
    <property>environment/magnetic-variation-deg</property>
    <factor>-1</factor>
        <axis>
            <x1-m>-0.0432</x1-m>
            <y1-m> 0.0000</y1-m>
            <z1-m>-0.0062</z1-m>
            <x2-m>-0.0057</x2-m>
            <y2-m> 0.0000</y2-m>
            <z2-m>-0.0062</z2-m>
        </axis>
    </animation> 

    <animation>
    <type>select</type>
    <object-name>vor</object-name>
    <condition>
    <equals>
    <property>instrumentation/rdmi-mode</property>
    <value>1</value>  
    </equals> 
    </condition>
    </animation>

    <animation>
    <type>rotate</type>
    <object-name>vor</object-name>
    <property>orientation/heading-magnetic-deg</property>
    <factor>1</factor>
        <axis>
            <x1-m>-0.0432</x1-m>
            <y1-m> 0.0000</y1-m>
            <z1-m>-0.0062</z1-m>
            <x2-m>-0.0057</x2-m>
            <y2-m> 0.0000</y2-m>
            <z2-m>-0.0062</z2-m>
        </axis>
    </animation>

    <animation>
    <type>rotate</type>
    <object-name>vor</object-name>
    <property>instrumentation/nav[0]/radials/actual-deg</property>
    <factor>-1</factor>
        <axis>
            <x1-m>-0.0432</x1-m>
            <y1-m> 0.0000</y1-m>
            <z1-m>-0.0062</z1-m>
            <x2-m>-0.0057</x2-m>
            <y2-m> 0.0000</y2-m>
            <z2-m>-0.0062</z2-m>
        </axis>
    </animation> 

    <animation>
    <type>select</type>
    <object-name>adf</object-name>
    <condition>
    <equals>
    <property>instrumentation/rdmi-mode</property>
    <value>2</value>  
    </equals> 
    </condition>
    </animation>

    <animation>
    <type>rotate</type>
    <object-name>adf</object-name>
    <property>instrumentation/adf/indicated-bearing-deg</property>
    <axis>
    <x>-1</x>
    <y>0</y>
    <z>0</z>
    </axis>
    </animation> 

    <animation>
    <type>pick</type>
    <object-name>knob</object-name>
    <condition>
    <and>
    <equals>
    <property>instrumentation/rdmi-mode</property>
    <value>0</value>  
    </equals> 
    <property>instrumentation/tacan/in-range</property>
    </and>
    </condition>
    </animation>

    <animation>
    <type>pick</type>
    <object-name>knob</object-name>
    <condition>
    <and>
    <equals>
    <property>instrumentation/rdmi-mode</property>
    <value>1</value>  
    </equals> 
    <property>instrumentation/nav/in-range</property>
    </and>
    </condition>
    </animation>

    <animation>
    <type>pick</type>
    <object-name>knob</object-name>
    <condition>
    <and>
    <equals>
    <property>instrumentation/rdmi-mode</property>
    <value>2</value>  
    </equals> 
    <property>instrumentation/adf/in-range</property>
    </and>
    </condition>
    </animation>

    <animation>
    <type>pick</type>
    <object-name>knob</object-name>
    <condition>
    <or>
    <and>
    <equals>
    <property>instrumentation/rdmi-mode</property>
    <value>0</value>  
    </equals>
    <not> 
    <property>instrumentation/tacan/in-range</property>
    </not>
    </and>
    <and>
    <equals>
    <property>instrumentation/rdmi-mode</property>
    <value>1</value>  
    </equals>
    <not> 
    <property>instrumentation/nav/in-range</property>
    </not>
    </and>
    <and>
    <equals>
    <property>instrumentation/rdmi-mode</property>
    <value>2</value>  
    </equals>
    <not> 
    <property>instrumentation/adf/in-range</property>
    </not>
    </and>
    </or>
    </condition>
    </animation>
    
<!-- Label text -->

<text>
	<name>LabelText</name>
	<type type="string">literal</type>
		<text type="string">Radio Distance Magnetic Indicator</text>
	<draw-text type="bool">true</draw-text>
	<font>Helvetica.txf</font>
		<character-size type="double">0.012</character-size>
		<character-aspect-ratio type="double">1.0</character-aspect-ratio>
	<axis-alignment>yz-plane</axis-alignment>
	<max-height>0.2</max-height>
	<max-width>0.07</max-width>
	<font-resolution>
		<width type="int">32</width>
		<height type="int">32</height>
	</font-resolution>
	<alignment>center-center</alignment>
	<offsets>
		<x-m> 0.01</x-m>
		<y-m> 0.0 </y-m>
		<z-m> 0.0 </z-m>
	</offsets>
</text>

<animation>
	<type>material</type>
		<object-name>LabelText</object-name>
	<emission>
		<red>1.0</red>
		<green>0.8</green>
		<blue>0.0</blue>
	</emission>
</animation>

<animation>
	<type>select</type>
		<object-name>LabelText</object-name>
	<condition>
		<property>/sim/panel-hotspots</property>
	</condition>
</animation>

</PropertyList>
