<?xml version="1.0"?>

<PropertyList>

	<params>
        <nav-serviceable>instrumentation/nav[0]/serviceable</nav-serviceable>
        <power-nav>instrumentation/nav[0]/power-btn</power-nav>
		<nav-to-flag>/instrumentation/nav[0]/to-flag</nav-to-flag>
		<nav-from-flag>/instrumentation/nav[0]/from-flag</nav-from-flag>
		<nav-radial-selected>/instrumentation/nav[0]/radials/selected-deg</nav-radial-selected>
		<nav-gs-needle-deflection>/instrumentation/nav[0]/filtered-gsNAV0-deflection</nav-gs-needle-deflection>
		<nav-heading-needle-deflection>/instrumentation/nav[0]/filtered-cdiNAV0-deflection</nav-heading-needle-deflection>
		<nav-in-range>/instrumentation/nav[0]/in-range</nav-in-range>
		<gs-in-range>/instrumentation/nav[0]/gs-in-range</gs-in-range> 
        <nav-frq-selected>instrumentation/nav[0]/frequencies/selected-mhz</nav-frq-selected>
        <nav-dial-khz>instrumentation/nav[0]/frequencies/dial-khz</nav-dial-khz>
        <nav-dial-mhz>instrumentation/nav[0]/frequencies/dial-mhz</nav-dial-mhz>
        <nav-volume>instrumentation/nav[0]/volume</nav-volume>
        <nav-audio>instrumentation/nav[0]/ident-audible</nav-audio>
	</params>

 <path>narco_122.ac</path>

 <!--
 <effect>
  <inherits-from>../../../../Effects/interior/c172p-flashlight</inherits-from>
  <object-name>Face</object-name>
  <object-name>GlideslopeNeedle</object-name>
  <object-name>Ring</object-name>
  <object-name>LocalizerNeedle</object-name>
  <object-name>Front</object-name>
  <object-name>TO</object-name>
  <object-name>FR</object-name>
  <object-name>NAV</object-name>
  <object-name>GS_out_of_range</object-name>
  <object-name>GS_in_range</object-name>
  <object-name>radial_knob</object-name>
 </effect>
 -->

<!-- <animation>
  <type>material</type>
  <object-name>Face</object-name>
  <object-name>GlideslopeNeedle</object-name>
  <object-name>Ring</object-name>
  <object-name>LocalizerNeedle</object-name>
  <object-name>Front</object-name>
  <object-name>TO</object-name>
  <object-name>FR</object-name>
  <object-name>NAV</object-name>
  <object-name>GS_out_of_range</object-name>
  <object-name>GS_in_range</object-name>
  <emission>
   <red>1.0</red>
   <green>0.2</green>
   <blue>0.0</blue>
   <factor-prop>/sim/model/material/instruments/factor</factor-prop>
  </emission>
 </animation>

 <animation>
  <type>material</type>
  <object-name>disk</object-name>
  <emission>
   <red>0.45</red>
   <green>0.09</green>
   <blue>0.00001</blue>
   <factor-prop>/sim/model//material/instruments/factor</factor-prop>
  </emission>
 </animation> -->
 
 	<animation>
		<type>material</type>
		<object-name>Face</object-name>
		<object-name>LocalizerNeedle</object-name>
		<object-name>GS_out_of_range</object-name>
		<object-name>NAV</object-name>
		<object-name>TO</object-name>
		<object-name>FROM</object-name>
		<object-name>GlideslopeNeedle</object-name>
		<object-name>Ring</object-name>
		<object-name>NavUseFixed</object-name>
		<object-name>NavUse10M</object-name>
		<object-name>NavUse1M</object-name>
		<object-name>NavUse100K</object-name>
		<object-name>NavUse10K</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>
		<name>LocalizerNeedleTransform</name>
		<type>rotate</type>
		<object-name>LocalizerNeedle</object-name>
		<property alias="../../params/nav-heading-needle-deflection"/>
		<factor>-3.2</factor>
		<center>
			<x-m>0.003633</x-m>
			<y-m>0.000000</y-m>
			<z-m>0.025142</z-m>
		</center>
		<axis>
			<x>-1</x>
			<y>0</y>
			<z>0</z>
		</axis>
	</animation>

	<animation>
		<type>select</type>
		<object-name>GS_in_range</object-name>
		<condition>
			<property alias="../../../params/gs-in-range"/>
		</condition>
	</animation>

 <animation>
  <type>select</type>
  <object-name>GS_out_of_range</object-name>
  <condition>
   <not>
    <property alias="../../../../params/gs-in-range"/>
   </not>
  </condition>
 </animation>

 <animation>
  <type>select</type>
  <object-name>NAV</object-name>
  <condition>
   <not>
    <property alias="../../../../params/nav-in-range"/>
   </not>
  </condition>
 </animation>

 <animation>
  <type>select</type>
  <object-name>TO</object-name>
  <condition>
   <property alias="../../../params/nav-to-flag"/>
  </condition>
 </animation>

 <animation>
  <type>select</type>
  <object-name>FROM</object-name>
  <condition>
   <property alias="../../../params/nav-from-flag"/>
  </condition>
 </animation>

 <animation>
  <name>GlideslopeNeedleTransform</name>
  <type>translate</type>
  <object-name>GlideslopeNeedle</object-name>
   <property alias="../../params/nav-gs-needle-deflection"/>
<interpolation>
	<entry><ind>-1.0</ind><dep>-0.012</dep></entry>
	<entry><ind>0.0</ind><dep>0</dep></entry>
	<entry><ind>1.0</ind><dep>0.012</dep></entry>
</interpolation>
  <axis>
   <x>0</x>
   <y>0</y>
   <z>1</z>
  </axis>
 </animation>

 <animation>
  <name>RingTransform</name>
  <type>rotate</type>
  <object-name>Ring</object-name>
   <property alias="../../params/nav-radial-selected"/>
  <factor>-1</factor>
  <axis>
   <x>-1</x>
   <y>0</y>
   <z>0</z>
  </axis>
 </animation> -->

<!-- VOR 1 Radial adjust -->

<animation>
    <type>knob</type>
    <object-name>radial_knob</object-name>
    <property>/instrumentation/nav[0]/radials/selected-deg</property>
    <factor>-8</factor>

    <axis>
        <x>1</x>
        <y>0</y>
        <z>0</z>
    </axis>
    <center>
        <x-m>0.012884</x-m>
        <y-m>-0.034772</y-m>
        <z-m>-0.038662</z-m>
    </center>

    <shift-repeat type="int">5</shift-repeat>
     
    <action>
        <binding>
            <command>property-adjust</command>
            <property>/instrumentation/nav[0]/radials/selected-deg</property>
            <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>nav1-obs</tooltip-id>
       <label>Nav 1 Radial %3d</label>
       <mapping>heading</mapping>
       <property>/instrumentation/nav[0]/radials/selected-deg</property>
    </binding>
    </hovered>
 </animation>
     
  <!-- Nav part -->

  <animation>
    <type>textranslate</type>
    <object-name>NavUse10M</object-name>
    <property alias="../../params/nav-frq-selected"/>
    <step>10</step>
    <factor>0.01</factor>
    <bias>0.0001</bias>
    <axis>
      <x>1</x>
      <y>0</y>
      <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>NavUse1M</object-name>
    <property alias="../../params/nav-frq-selected"/>
    <step>1</step>
    <factor>0.1</factor>
    <bias>0.0001</bias>
    <axis>
      <x>1</x>
      <y>0</y>
      <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>NavUse100K</object-name>
    <property alias="../../params/nav-frq-selected"/>
    <step>0.1</step>
    <factor>1</factor>
    <bias>0.0001</bias>
    <axis>
      <x>1</x>
      <y>0</y>
      <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>NavUse10K</object-name>
    <property alias="../../params/nav-frq-selected"/>
    <step>0.01</step>
    <factor>10</factor>
    <bias>0.0001</bias>
    <axis>
      <x>1</x>
      <y>0</y>
      <z>0</z>
    </axis>
  </animation>

<!-- actions -->

  <animation>
    <type>knob</type>
    <object-name>NavVolume</object-name>
    <property alias="../../params/nav-volume"/>
    <factor>-280</factor>
    <axis>
      <x>1</x>
      <y>0</y>
      <z>0</z>
    </axis>
    <center>
      <x-m>0.012884</x-m>
      <y-m>0.038072</y-m>
      <z-m>0.037536</z-m>
    </center>
    <action>
      <binding>
        <command>property-adjust</command>
        <property alias="../../../../params/nav-volume"/>
        <factor>0.1</factor>
        <min>0.0</min>
        <max>1.0</max>
        <wrap>false</wrap>
      </binding>
			<binding>
				<command>nasal</command>
				<script>pa38.click("dial")</script>
			</binding>
    </action>
    <hovered>
      <binding>
        <command>set-tooltip</command>
        <tooltip-id>nav-volume</tooltip-id>
        <label>Volume: %3d%%</label>
        <property alias="../../../../params/nav-volume"/>
        <mapping>percent</mapping>
      </binding>
    </hovered>
  </animation>

  <animation>
    <type>knob</type>
    <object-name>NavKHz</object-name>
    <property alias="/params/nav-dial-khz"/>
    <factor>-0.25</factor>
    <axis>
      <x>1</x>
      <y>0</y>
      <z>0</z>
    </axis>
    <center>
      <x-m>0.027751</x-m>
      <y-m>0.036462</y-m>
      <z-m>-0.039199</z-m>
    </center>
    <action>
      <binding>
        <command>property-adjust</command>
        <property alias="/params/nav-frq-selected"/>
        <factor>0.05</factor>
        <min>0.0</min>
        <max>1.0</max>
        <resolution>0.050</resolution>
        <wrap>true</wrap>
        <mask>decimal</mask>
      </binding>
      <binding>
        <command>property-adjust</command>
        <property alias="/params/nav-dial-khz"/>
        <factor>4</factor>
        <min>0</min>
        <max>360</max>
        <wrap>true</wrap>
      </binding>
			<binding>
				<command>nasal</command>
				<script>pa38.click("dial")</script>
			</binding>
    </action>
  </animation>

  <animation>
    <type>knob</type>
    <object-name>NavMHz</object-name>
    <property alias="/params/nav-dial-mhz"/>
    <factor>-0.25</factor>
    <axis>
      <x>1</x>
      <y>0</y>
      <z>0</z>
    </axis>
    <center>
      <x-m>0.014573</x-m>
      <y-m>0.036462 </y-m>
      <z-m>-0.039199</z-m>
    </center>
    <action>
      <binding>
        <command>property-adjust</command>
        <property alias="/params/nav-frq-selected"/>
        <factor>1</factor>
        <min>108.0</min>
        <max>118.0</max>
        <wrap>true</wrap>
        <mask>integer</mask>
      </binding>
      <binding>
        <command>property-adjust</command>
        <property alias="/params/nav-dial-mhz"/>
        <factor>4</factor>
        <min>0</min>
        <max>360</max>
        <wrap>true</wrap>
      </binding>
			<binding>
				<command>nasal</command>
				<script>pa38.click("dial")</script>
			</binding>
    </action>
  </animation>

<!-- Localizer markers -->

	<animation>
		<object-name>inner_marker</object-name>
		<type>select</type>
		<condition>
            <and>
				<greater-than>
					<property alias="/params/power-nav"/>
					<value>0</value>
				</greater-than>
				<greater-than>
					<property>instrumentation/marker-beacon/imBright</property>
					<value>0</value>
				</greater-than>
			</and>
		</condition>
	</animation>

    <animation>
        <type>material</type>
        <object-name>inner_marker</object-name>
        <emission>
            <red>1.0</red>
            <green>1.0</green>
            <blue>1.0</blue>
            <factor-prop>/instrumentation/marker-beacon/imBright</factor-prop>
        </emission>
    </animation>

	<animation>
		<object-name>mid_marker</object-name>
		<type>select</type>
		<condition>
            <and>
				<greater-than>
					<property alias="/params/power-nav"/>
					<value>0</value>
				</greater-than>
				<greater-than>
					<property>instrumentation/marker-beacon/mmBright</property>
					<value>0</value>
				</greater-than>
			</and>
		</condition>
	</animation>
	
    <animation>
        <type>material</type>
        <object-name>mid_marker</object-name>
        <emission>
            <red>1.0</red>
            <green>1.0</green>
            <blue>1.0</blue>
            <factor-prop>/instrumentation/marker-beacon/mmBright</factor-prop>
        </emission>
    </animation>

	<animation>
		<object-name>outer_marker</object-name>
		<type>select</type>
		<condition>
            <and>
				<greater-than>
					<property alias="/params/power-nav"/>
					<value>0</value>
				</greater-than>
				<greater-than>
					<property>instrumentation/marker-beacon/omBright</property>
					<value>0</value>
				</greater-than>
			</and>
		</condition>
	</animation>
	
    <animation>
        <type>material</type>
        <object-name>outer_marker</object-name>
        <emission>
            <red>1.0</red>
            <green>1.0</green>
            <blue>1.0</blue>
            <factor-prop>/instrumentation/marker-beacon/omBright</factor-prop>
        </emission>
    </animation>
	
<!-- <animation>
  <name>Alpha Order Group</name>
  <object-name>Face</object-name>
  <object-name>LocalizerNeedleTransform</object-name>
  <object-name>GlideslopeNeedleTransform</object-name>
  <object-name>RingTransform</object-name>
  <object-name>Front</object-name>
 </animation> -->

</PropertyList>


