<?xml version="1.0" encoding="UTF-8"?>
<PropertyList>

   <path>adf_ind.ac</path>

  <!--    <effect>
        <inherits-from>Aircraft/c152/Models/Effects/interior/c152-interior-compartment</inherits-from>
        <object-name>CompassRose</object-name>
        <object-name>ADFNeedle</object-name>
        <object-name>Chassis</object-name>
    </effect> -->

	<params>
		<rotation-deg>instrumentation/adf[0]/rotation-deg</rotation-deg>
		<adf-bearing-deg>instrumentation/adf[0]/indicated-bearing-deg</adf-bearing-deg>
	</params>
  
  <!--

  
  <animation>
    <type>noshadow</type>
  </animation>

  <animation>
    <type>range</type>
    <min-m>0</min-m>
    <max-m>10</max-m>
  </animation>
 
  <animation>
    <type>material</type>
    <object-name>CompassRose</object-name>
    <object-name>ADFNeedle</object-name>
    <object-name>Chassis</object-name>
    <emission>
        <red>0.98</red>
        <green>0.51</green>
        <blue>0.0</blue>
        <factor-prop>/sim/model/c152/lighting/instruments</factor-prop>
    </emission>
 </animation> -->

	<animation>
		<type>material</type>
		<object-name>CompassRose</object-name>
		<object-name>ADFNeedle</object-name>
		<object-name>Chassis</object-name>
		<emission>
			<red>1.00</red>
			<green>0.65</green>
			<blue>0.25</blue>
			<factor-prop>/sim/model/pa38/lighting/instruments</factor-prop>
		</emission>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>CompassRose</object-name>
		<property alias="../../params/rotation-deg"/>
		<factor>-1</factor>
		<axis>
			<x>-1</x>
			<y>0</y>
			<z>0</z>
		</axis>
	</animation>
  

	<animation>
		<type>rotate</type>
		<object-name>ADFNeedle</object-name>
		<property alias="../../params/adf-bearing-deg"/>
		<axis>
			<x>-1</x>
			<y>0</y>
			<z>0</z>
		</axis>
	</animation>

 
	<animation>
		<type>knob</type>
		<object-name>HDGSelector</object-name>
		<property alias="../../params/rotation-deg"/>
		<factor>-8.0</factor>
		<axis>
			<x>1.0</x>
			<y>0.0</y>
			<z>0.0</z>
		</axis>
		<center>
			<x-m> 0.013716</x-m>
			<y-m>-0.038761</y-m>
			<z-m>-0.042166</z-m>
		</center>    
		<action>
			<binding>
				<command>property-adjust</command>
				<property alias="../../../../params/rotation-deg"/>
				<factor>1</factor>
				<min>0</min>
				<max>360</max>
				<wrap>1</wrap>
			</binding>
			<binding>
				<command>nasal</command>
				<script>pa38.click("dial")</script>
			</binding>
		</action>
		<hovered>
			<binding>
				<command>set-tooltip</command>
				<tooltip-id>adf-hdg</tooltip-id>
				<label>ADF Heading: %3d</label>
				<property alias="../../../../params/rotation-deg"/>
			</binding>
		</hovered>
	</animation>

</PropertyList>
