123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610 |
- <?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>
- <power>/systems/electrical/outputs/audio-panel[0]</power>
- <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>
- <effect>
- <inherits-from>../../../../Effects/interior/c172p-interior-radiance</inherits-from>
- <object-name>Chassis</object-name>
- <object-name>Knob</object-name>
- <object-name>AUTO</object-name>
- <object-name>COM1</object-name>
- <object-name>COM2</object-name>
- <object-name>NAV1</object-name>
- <object-name>NAV2</object-name>
- <object-name>ADF</object-name>
- <object-name>DME</object-name>
- <object-name>MKR</object-name>
- <object-name>SENS</object-name>
- <object-name>M</object-name>
- <object-name>A</object-name>
- <object-name>O</object-name>
- </effect>
- <animation>
- <type>material</type>
- <object-name>O</object-name>
- <condition>
- <and>
- <less-than>
- <property alias="/params/power"/>
- <value>31.5</value>
- </less-than>
- <greater-than>
- <property alias="/params/power"/>
- <value>20.0</value>
- </greater-than>
- </and>
- </condition>
- <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>
- <condition>
- <and>
- <less-than>
- <property alias="/params/power"/>
- <value>31.5</value>
- </less-than>
- <greater-than>
- <property alias="/params/power"/>
- <value>20.0</value>
- </greater-than>
- </and>
- </condition>
- <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>
- <condition>
- <and>
- <less-than>
- <property alias="/params/power"/>
- <value>31.5</value>
- </less-than>
- <greater-than>
- <property alias="/params/power"/>
- <value>20.0</value>
- </greater-than>
- </and>
- </condition>
- <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>knob</type>
- <drag-direction>vertical</drag-direction>
- <drag-scale-px>30</drag-scale-px>
- <object-name>AUTO</object-name>
- <proxy-name>AUTOUp</proxy-name>
- <proxy-name>AUTODown</proxy-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>
- <action>
- <binding>
- <command>property-adjust</command>
- <property alias="../../../../params/auto"/>
- <factor>-1</factor>
- <min>-1</min>
- <max>1</max>
- <wrap>0</wrap>
- </binding>
- <binding>
- <command>nasal</command>
- <script>c172p.click("kma20")</script>
- </binding>
- </action>
- <hovered>
- <binding>
- <command>set-tooltip</command>
- <tooltip-id>kma20-auto</tooltip-id>
- <label>Auto: %s</label>
- <mapping>nasal</mapping>
- <script>(arg[0] == -1) ? "SPEAKER" : (arg[0]==1) ? "HEADSET" : "OFF"</script>
- <property alias="../../../../params/auto"/>
- </binding>
- </hovered>
- </animation>
- <animation>
- <type>knob</type>
- <object-name>COM1</object-name>
- <proxy-name>COM1Up</proxy-name>
- <proxy-name>COM1Down</proxy-name>
- <drag-direction>vertical</drag-direction>
- <drag-scale-px>30</drag-scale-px>
- <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>
- <action>
- <binding>
- <command>property-adjust</command>
- <property alias="../../../../params/com1"/>
- <factor>-1</factor>
- <min>-1</min>
- <max>1</max>
- <wrap>0</wrap>
- </binding>
- <binding>
- <command>nasal</command>
- <script>c172p.click("kma20")</script>
- </binding>
- </action>
- <hovered>
- <binding>
- <command>set-tooltip</command>
- <tooltip-id>kma20-com1</tooltip-id>
- <property alias="../../../../params/com1"/>
- <label>COM1: %s</label>
- <mapping>nasal</mapping>
- <script>(arg[0] == -1) ? "SPEAKER" : (arg[0]==1) ? "HEADSET" : "OFF"</script>
- </binding>
- </hovered>
- </animation>
- <animation>
- <type>knob</type>
- <object-name>COM2</object-name>
- <proxy-name>COM2Up</proxy-name>
- <proxy-name>COM2Down</proxy-name>
- <drag-direction>vertical</drag-direction>
- <drag-scale-px>30</drag-scale-px>
- <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>
- <action>
- <binding>
- <command>property-adjust</command>
- <property alias="../../../../params/com2"/>
- <factor>-1</factor>
- <min>-1</min>
- <max>1</max>
- <wrap>0</wrap>
- </binding>
- <binding>
- <command>nasal</command>
- <script>c172p.click("kma20")</script>
- </binding>
- </action>
- <hovered>
- <binding>
- <command>set-tooltip</command>
- <tooltip-id>kma20-com2</tooltip-id>
- <label>COM2: %s</label>
- <property alias="../../../../params/com2"/>
- <mapping>nasal</mapping>
- <script>(arg[0] == -1) ? "SPEAKER" : (arg[0]==1) ? "HEADSET" : "OFF"</script>
- </binding>
- </hovered>
- </animation>
- <animation>
- <type>knob</type>
- <object-name>NAV1</object-name>
- <proxy-name>NAV1Up</proxy-name>
- <proxy-name>NAV1Down</proxy-name>
- <drag-direction>vertical</drag-direction>
- <drag-scale-px>30</drag-scale-px>
- <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>
- <action>
- <binding>
- <command>property-adjust</command>
- <property alias="../../../../params/nav1"/>
- <factor>-1</factor>
- <min>-1</min>
- <max>1</max>
- <wrap>0</wrap>
- </binding>
- <binding>
- <command>nasal</command>
- <script>c172p.click("kma20")</script>
- </binding>
- </action>
- <hovered>
- <binding>
- <command>set-tooltip</command>
- <tooltip-id>kma20-nav1</tooltip-id>
- <label>NAV1: %s</label>
- <property alias="../../../../params/nav1"/>
- <mapping>nasal</mapping>
- <script>(arg[0] == -1) ? "SPEAKER" : (arg[0]==1) ? "HEADSET" : "OFF"</script>
- </binding>
- </hovered>
- </animation>
- <animation>
- <type>knob</type>
- <object-name>NAV2</object-name>
- <proxy-name>NAV2Up</proxy-name>
- <proxy-name>NAV2Down</proxy-name>
- <drag-direction>vertical</drag-direction>
- <drag-scale-px>30</drag-scale-px>
- <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>
- <action>
- <binding>
- <command>property-adjust</command>
- <property alias="../../../../params/nav2"/>
- <factor>-1</factor>
- <min>-1</min>
- <max>1</max>
- <wrap>0</wrap>
- </binding>
- <binding>
- <command>nasal</command>
- <script>c172p.click("kma20")</script>
- </binding>
- </action>
- <hovered>
- <binding>
- <command>set-tooltip</command>
- <tooltip-id>kma20-nav2</tooltip-id>
- <label>NAV2: %s</label>
- <property alias="../../../../params/nav2"/>
- <mapping>nasal</mapping>
- <script>(arg[0] == -1) ? "SPEAKER" : (arg[0]==1) ? "HEADSET" : "OFF"</script>
- </binding>
- </hovered>
- </animation>
- <animation>
- <type>knob</type>
- <object-name>ADF</object-name>
- <proxy-name>ADFUp</proxy-name>
- <proxy-name>ADFDown</proxy-name>
- <drag-direction>vertical</drag-direction>
- <drag-scale-px>30</drag-scale-px>
- <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>
- <action>
- <binding>
- <command>property-adjust</command>
- <property alias="../../../../params/adf"/>
- <factor>-1</factor>
- <min>-1</min>
- <max>1</max>
- <wrap>0</wrap>
- </binding>
- <binding>
- <command>nasal</command>
- <script>c172p.click("kma20")</script>
- </binding>
- </action>
- <hovered>
- <binding>
- <command>set-tooltip</command>
- <tooltip-id>kma20-adf</tooltip-id>
- <label>ADF: %s</label>
- <property alias="../../../../params/adf"/>
- <mapping>nasal</mapping>
- <script>(arg[0] == -1) ? "SPEAKER" : (arg[0]==1) ? "HEADSET" : "OFF"</script>
- </binding>
- </hovered>
- </animation>
- <animation>
- <type>knob</type>
- <object-name>DME</object-name>
- <proxy-name>DMEUp</proxy-name>
- <proxy-name>DMEDown</proxy-name>
- <drag-direction>vertical</drag-direction>
- <drag-scale-px>30</drag-scale-px>
- <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>
- <action>
- <binding>
- <command>property-adjust</command>
- <property alias="../../../../params/dme"/>
- <factor>-1</factor>
- <min>-1</min>
- <max>1</max>
- <wrap>0</wrap>
- </binding>
- <binding>
- <command>nasal</command>
- <script>c172p.click("kma20")</script>
- </binding>
- </action>
- <hovered>
- <binding>
- <command>set-tooltip</command>
- <tooltip-id>kma20-dme</tooltip-id>
- <label>DME: %s</label>
- <property alias="../../../../params/dme"/>
- <mapping>nasal</mapping>
- <script>(arg[0] == -1) ? "SPEAKER" : (arg[0]==1) ? "HEADSET" : "OFF"</script>
- </binding>
- </hovered>
- </animation>
- <animation>
- <type>knob</type>
- <object-name>MKR</object-name>
- <proxy-name>MKRUp</proxy-name>
- <proxy-name>MKRDown</proxy-name>
- <drag-direction>vertical</drag-direction>
- <drag-scale-px>30</drag-scale-px>
- <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>
- <action>
- <binding>
- <command>property-adjust</command>
- <property alias="../../../../params/mkr"/>
- <factor>-1</factor>
- <min>-1</min>
- <max>1</max>
- <wrap>0</wrap>
- </binding>
- <binding>
- <command>nasal</command>
- <script>c172p.click("kma20")</script>
- </binding>
- </action>
- <hovered>
- <binding>
- <command>set-tooltip</command>
- <tooltip-id>kma20-mkr</tooltip-id>
- <label>Marker Beacon: %s</label>
- <property alias="../../../../params/mkr"/>
- <mapping>nasal</mapping>
- <script>(arg[0] == -1) ? "SPEAKER" : (arg[0]==1) ? "HEADSET" : "OFF"</script>
- </binding>
- </hovered>
- </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>
- <binding>
- <command>nasal</command>
- <script>c172p.click("kma20")</script>
- </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>
- <binding>
- <command>nasal</command>
- <script>c172p.click("kma20")</script>
- </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>
- <binding>
- <command>nasal</command>
- <script>c172p.click("kma20")</script>
- </binding>
- </action>
- </animation>
- <animation>
- <type>knob</type>
- <object-name>Knob</object-name>
- <proxy-name>MICLeft</proxy-name>
- <proxy-name>MICRight</proxy-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>
- <action>
- <binding>
- <command>property-adjust</command>
- <property alias="../../../../params/knob"/>
- <min>-1</min>
- <max>1</max>
- <wrap>0</wrap>
- </binding>
- <binding>
- <command>nasal</command>
- <script>c172p.click("kma20-dial")</script>
- </binding>
- </action>
- <hovered>
- <binding>
- <command>set-tooltip</command>
- <tooltip-id>kma20-mic</tooltip-id>
- <label>Microphone: %s</label>
- <property alias="../../../../params/knob"/>
- <mapping>nasal</mapping>
- <script>(arg[0] == -1) ? "COM1" : (arg[0]==1) ? "External" : "COM2"</script>
- </binding>
- </hovered>
- </animation>
- </PropertyList>
|