<?xml version="1.0" ?>
<PropertyList>

  <!--
  Bendix/King KMA20 Marker/Audio panel

  Created by Torsten Dreyer, December 2008

  You might want to use the following code in your aircraft's nasal
  init function to keep the settings of the device persistent between
  flightgear sessions

  aircraft.data.add(
    "instrumentation/kma20/test",
    "instrumentation/kma20/auto",
    "instrumentation/kma20/com1",
    "instrumentation/kma20/com2",
    "instrumentation/kma20/nav1",
    "instrumentation/kma20/nav2",
    "instrumentation/kma20/adf",
    "instrumentation/kma20/dme",
    "instrumentation/kma20/mkr",
    "instrumentation/kma20/sens",
    "instrumentation/kma20/knob"
  );
  -->

  <params>
    <outer>instrumentation/marker-beacon/outer</outer>
    <middle>instrumentation/marker-beacon/middle</middle>
    <inner>instrumentation/marker-beacon/inner</inner>
    <test>instrumentation/kma20/test</test>

    <auto>instrumentation/kma20/auto</auto>
    <com1>instrumentation/kma20/com1</com1>
    <com2>instrumentation/kma20/com2</com2>
    <nav1>instrumentation/kma20/nav1</nav1>
    <nav2>instrumentation/kma20/nav2</nav2>
    <adf>instrumentation/kma20/adf</adf>
    <dme>instrumentation/kma20/dme</dme>
    <mkr>instrumentation/kma20/mkr</mkr>
    <sens>instrumentation/kma20/sens</sens>
    <knob>instrumentation/kma20/knob</knob>
  </params>

  <path>kma20.ac</path>

  <animation>
    <type>material</type>
    <object-name>O</object-name>
    <emission>
      <red>1.0</red>
      <green>1.0</green>
      <blue>1.0</blue>
      <factor-prop alias="../../../params/outer"/>
      <offset-prop alias="../../../params/test"/>
    </emission>
  </animation>

  <animation>
    <type>material</type>
    <object-name>M</object-name>
    <emission>
      <red>1.0</red>
      <green>1.0</green>
      <blue>1.0</blue>
      <factor-prop alias="../../../params/middle"/>
      <offset-prop alias="../../../params/test"/>
    </emission>
  </animation>

  <animation>
    <type>material</type>
    <object-name>A</object-name>
    <emission>
      <red>1.0</red>
      <green>1.0</green>
      <blue>1.0</blue>
      <factor-prop alias="../../../params/inner"/>
      <offset-prop alias="../../../params/test"/>
    </emission>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>AUTO</object-name>
    <property alias="../../params/auto"/>
    <factor>30</factor>
    <axis>
      <y>1</y>
    </axis>
    <center>
      <x-m>0.0131629</x-m>
      <z-m>0.00714385</z-m>
    </center>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>AUTOUp</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property alias="../../../../params/auto"/>
        <step>-1</step>
        <min>-1</min>
        <max>1</max>
        <wrap>0</wrap>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>AUTODown</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property alias="../../../../params/auto"/>
        <step>1</step>
        <min>-1</min>
        <max>1</max>
        <wrap>0</wrap>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>COM1</object-name>
    <property alias="../../params/com1"/>
    <factor>30</factor>
    <axis>
      <y>1</y>
    </axis>
    <center>
      <x-m>0.0131629</x-m>
      <z-m>0.00714385</z-m>
    </center>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>COM1Up</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property alias="../../../../params/com1"/>
        <step>-1</step>
        <min>-1</min>
        <max>1</max>
        <wrap>0</wrap>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>COM1Down</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property alias="../../../../params/com1"/>
        <step>1</step>
        <min>-1</min>
        <max>1</max>
        <wrap>0</wrap>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>COM2</object-name>
    <property alias="../../params/com2"/>
    <factor>30</factor>
    <axis>
      <y>1</y>
    </axis>
    <center>
      <x-m>0.0131629</x-m>
      <z-m>0.00714385</z-m>
    </center>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>COM2Up</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property alias="../../../../params/com2"/>
        <step>-1</step>
        <min>-1</min>
        <max>1</max>
        <wrap>0</wrap>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>COM2Down</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property alias="../../../../params/com2"/>
        <step>1</step>
        <min>-1</min>
        <max>1</max>
        <wrap>0</wrap>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>NAV1</object-name>
    <property alias="../../params/nav1"/>
    <factor>30</factor>
    <axis>
      <y>1</y>
    </axis>
    <center>
      <x-m>0.0131629</x-m>
      <z-m>0.00714385</z-m>
    </center>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>NAV1Up</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property alias="../../../../params/nav1"/>
        <step>-1</step>
        <min>-1</min>
        <max>1</max>
        <wrap>0</wrap>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>NAV1Down</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property alias="../../../../params/nav1"/>
        <step>1</step>
        <min>-1</min>
        <max>1</max>
        <wrap>0</wrap>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>NAV2</object-name>
    <property alias="../../params/nav2"/>
    <factor>30</factor>
    <axis>
      <y>1</y>
    </axis>
    <center>
      <x-m>0.0131629</x-m>
      <z-m>0.00714385</z-m>
    </center>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>NAV2Up</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property alias="../../../../params/nav2"/>
        <step>-1</step>
        <min>-1</min>
        <max>1</max>
        <wrap>0</wrap>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>NAV2Down</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property alias="../../../../params/nav2"/>
        <step>1</step>
        <min>-1</min>
        <max>1</max>
        <wrap>0</wrap>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>ADF</object-name>
    <property alias="../../params/adf"/>
    <factor>30</factor>
    <axis>
      <y>1</y>
    </axis>
    <center>
      <x-m>0.0131629</x-m>
      <z-m>0.00714385</z-m>
    </center>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>ADFUp</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property alias="../../../../params/adf"/>
        <step>-1</step>
        <min>-1</min>
        <max>1</max>
        <wrap>0</wrap>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>ADFDown</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property alias="../../../../params/adf"/>
        <step>1</step>
        <min>-1</min>
        <max>1</max>
        <wrap>0</wrap>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>DME</object-name>
    <property alias="../../params/dme"/>
    <factor>30</factor>
    <axis>
      <y>1</y>
    </axis>
    <center>
      <x-m>0.0131629</x-m>
      <z-m>0.00714385</z-m>
    </center>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>DMEUp</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property alias="../../../../params/dme"/>
        <step>-1</step>
        <min>-1</min>
        <max>1</max>
        <wrap>0</wrap>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>DMEDown</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property alias="../../../../params/dme"/>
        <step>1</step>
        <min>-1</min>
        <max>1</max>
        <wrap>0</wrap>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>MKR</object-name>
    <property alias="../../params/mkr"/>
    <factor>30</factor>
    <axis>
      <y>1</y>
    </axis>
    <center>
      <x-m>0.0131629</x-m>
      <z-m>0.00714385</z-m>
    </center>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>MKRUp</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property alias="../../../../params/mkr"/>
        <step>-1</step>
        <min>-1</min>
        <max>1</max>
        <wrap>0</wrap>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>MKRDown</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property alias="../../../../params/mkr"/>
        <step>1</step>
        <min>-1</min>
        <max>1</max>
        <wrap>0</wrap>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>SENS</object-name>
    <property alias="../../params/sens"/>
    <factor>30</factor>
    <axis>
      <y>1</y>
    </axis>
    <center>
      <x-m>0.0131629</x-m>
      <z-m>0.00714385</z-m>
    </center>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>SENSUp</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property alias="../../../../params/sens"/>
        <step>-1</step>
        <min>-1</min>
        <max>1</max>
        <wrap>0</wrap>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>SENSDown</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property alias="../../../../params/sens"/>
        <step>1</step>
        <min>-1</min>
        <max>1</max>
        <wrap>0</wrap>
      </binding>
      <mod-up>
        <binding>
          <condition>
            <equals>
              <property alias="../../../../../../../params/sens"/>
              <value>1</value>
            </equals>
          </condition>
          <command>property-assign</command>
          <property alias="../../../../../params/sens"/>
          <value>0</value>
        </binding>
        <binding>
          <condition>
            <equals>
              <property alias="../../../../../../../params/sens"/>
              <value>0</value>
            </equals>
          </condition>
          <command>property-assign</command>
          <property alias="../../../../../params/test"/>
          <value>0</value>
        </binding>
      </mod-up>
      <binding>
        <condition>
          <greater-than>
            <property alias="../../../../../../params/sens"/>
            <value>-1</value>
          </greater-than>
        </condition>
        <command>property-assign</command>
        <property alias="../../../../params/test"/>
        <property alias="../../../../params/sens"/>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>Knob</object-name>
    <property alias="../../params/knob"/>
    <factor>-30</factor>
    <axis>
      <x>1</x>
    </axis>
    <center>
      <y-m>-0.0605381</y-m>
      <z-m>0.00559147</z-m>
    </center>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>MICLeft</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property alias="../../../../params/knob"/>
        <step>-1</step>
        <min>-1</min>
        <max>1</max>
        <wrap>0</wrap>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>MICRight</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property alias="../../../../params/knob"/>
        <step>1</step>
        <min>-1</min>
        <max>1</max>
        <wrap>0</wrap>
      </binding>
    </action>
  </animation>

</PropertyList>
