<?xml version="1.0" encoding="ISO-8859-1"?>

<!-- Author : Syd Adams Remote Instrument Control
     Updated by Helijah 2013 - 05/2022 -->
<PropertyList>

  <path>RIC.ac</path>

  <animation>
    <object-name>RIC</object-name>
    <object-name>RIC.crs1</object-name>
    <object-name>RIC.hdg</object-name>
    <object-name>RIC.crs2</object-name>
  </animation>

  <animation>
    <type>noshadow</type>
    <object-name>RIC</object-name>
    <object-name>RIC.crs1</object-name>
    <object-name>RIC.hdg</object-name>
    <object-name>RIC.crs2</object-name>
  </animation>

  <animation>
    <type>material</type>
    <object-name>RIC.crs1</object-name>
    <object-name>RIC.hdg</object-name>
    <object-name>RIC.crs2</object-name>
    <condition>
      <property>/controls/electric/battery-switch</property>
    </condition>
    <emission>
      <factor-prop>controls/lighting/instruments-norm</factor-prop>
      <red>   0.50 </red>
      <green> 0.40 </green>
      <blue>  0.30 </blue>
    </emission>
  </animation>

  <!-- hotspots-->
  <!-- course -->
  <animation>
    <type>pick</type>
    <object-name>RIC.crs1</object-name>
    <object-name>RIC.crs2</object-name>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>nasal</command>
        <script>systems.FlDr.set_course(0)</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>RIC.crs1</object-name>
    <property>instrumentation/nav[0]/radials/selected-deg</property>
    <factor>1</factor>
    <center>
      <x-m>  0.00000 </x-m>
      <y-m> -0.04282 </y-m>
      <z-m> -0.00130 </z-m>
    </center>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>RIC.crs2</object-name>
    <property>instrumentation/nav[0]/radials/selected-deg</property>
    <factor>1</factor>
    <center>
      <x-m>  0.00000 </x-m>
      <y-m>  0.04181 </y-m>
      <z-m> -0.00130 </z-m>
    </center>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>RIC.crs1</object-name>
    <object-name>RIC.crs2</object-name>
    <visible>true</visible>
    <action>
      <button>3</button>
      <repeatable>true</repeatable>
      <interval-sec>0.2</interval-sec>
      <binding>
        <command>nasal</command>
        <script>systems.FlDr.set_course(-1)</script>
      </binding>
    </action>
    <action>
      <button>4</button>
      <repeatable>true</repeatable>
      <interval-sec>0.2</interval-sec>
      <binding>
        <command>nasal</command>
        <script>systems.FlDr.set_course(1)</script>
      </binding>
    </action>
  </animation>

  <!-- -hdg bug -->
  <animation>
    <type>pick</type>
    <object-name>RIC.hdg</object-name>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-assign</command>
        <property>autopilot/settings/heading-bug-deg</property>
        <property>/orientation/heading-magnetic-deg</property>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>RIC.hdg</object-name>
    <property>autopilot/settings/heading-bug-deg</property>
    <factor>1</factor>
    <center>
      <x-m>  0.00000 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m> -0.00130 </z-m>
    </center>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>RIC.hdg</object-name>
    <visible>true</visible>
    <action>
      <button>3</button>
      <repeatable>true</repeatable>
      <interval-sec>0.2</interval-sec>
      <binding>
        <command>property-adjust</command>
        <property>autopilot/settings/heading-bug-deg</property>
        <step>-1</step>
        <min>0</min>
        <max>359</max>
        <wrap>true</wrap>
      </binding>
    </action>
    <action>
      <button>4</button>
      <repeatable>true</repeatable>
      <interval-sec>0.2</interval-sec>
      <binding>
        <command>property-adjust</command>
        <property>autopilot/settings/heading-bug-deg</property>
        <step>1</step>
        <min>0</min>
        <max>359</max>
        <wrap>true</wrap>
      </binding>
    </action>
  </animation>

</PropertyList>
