2016-08-12 18:57:03 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
2015-06-16 21:20:54 +00:00
|
|
|
<!--
|
|
|
|
Maintainer: Torsten Dreyer
|
|
|
|
-->
|
|
|
|
<PropertyList>
|
2016-08-12 18:57:03 +00:00
|
|
|
|
2015-06-16 21:20:54 +00:00
|
|
|
<params>
|
|
|
|
<power-btn>instrumentation/dme[0]/power-btn</power-btn>
|
|
|
|
<serviceable>instrumentation/dme[0]/serviceable</serviceable>
|
|
|
|
</params>
|
|
|
|
|
|
|
|
<path>dme.ac</path>
|
|
|
|
|
2016-08-12 18:57:03 +00:00
|
|
|
<effect>
|
|
|
|
<inherits-from>../../../../Effects/interior/c172p-interior-radiance</inherits-from>
|
2018-05-17 11:58:44 +00:00
|
|
|
<object-name>SourceSelectorKnob</object-name>
|
|
|
|
<object-name>PowerSwitch.Lever</object-name>
|
|
|
|
</effect>
|
|
|
|
|
|
|
|
<effect>
|
|
|
|
<inherits-from>../../../../Effects/interior/c172p-interior</inherits-from>
|
2016-08-12 18:57:03 +00:00
|
|
|
<object-name>on</object-name>
|
|
|
|
<object-name>off</object-name>
|
|
|
|
<object-name>Label3</object-name>
|
|
|
|
<object-name>n1</object-name>
|
|
|
|
<object-name>hld</object-name>
|
|
|
|
<object-name>n2</object-name>
|
|
|
|
<object-name>PowerSwitch.Base</object-name>
|
|
|
|
</effect>
|
2015-06-16 21:20:54 +00:00
|
|
|
|
|
|
|
<model>
|
2016-08-12 18:57:03 +00:00
|
|
|
<path>ki266.xml</path>
|
|
|
|
<name>ki266</name>
|
2015-06-16 21:20:54 +00:00
|
|
|
</model>
|
|
|
|
|
2016-08-12 18:57:03 +00:00
|
|
|
<!-- The power switch -->
|
2015-06-16 21:20:54 +00:00
|
|
|
<animation>
|
|
|
|
<type>rotate</type>
|
|
|
|
<object-name>PowerSwitch.Lever</object-name>
|
|
|
|
<property alias="../../params/power-btn"/>
|
|
|
|
<factor>-60</factor>
|
|
|
|
<axis>
|
|
|
|
<x>0</x>
|
|
|
|
<y>1</y>
|
|
|
|
<z>0</z>
|
|
|
|
</axis>
|
|
|
|
<center>
|
2018-05-17 11:58:44 +00:00
|
|
|
<x-m>-0.35496</x-m>
|
|
|
|
<y-m> 0.08087</y-m>
|
|
|
|
<z-m>-0.05437</z-m>
|
2015-06-16 21:20:54 +00:00
|
|
|
</center>
|
|
|
|
</animation>
|
|
|
|
|
|
|
|
<animation>
|
|
|
|
<type>pick</type>
|
2018-05-17 11:58:44 +00:00
|
|
|
<object-name>PowerSwitch</object-name>
|
2015-06-16 21:20:54 +00:00
|
|
|
<visible>true</visible>
|
|
|
|
<action>
|
2016-08-12 18:57:03 +00:00
|
|
|
<button>0</button>
|
|
|
|
<repeatable>false</repeatable>
|
|
|
|
<binding>
|
2018-05-17 11:58:44 +00:00
|
|
|
<command>property-toggle</command>
|
2016-08-12 18:57:03 +00:00
|
|
|
<property alias="../../../../params/power-btn"/>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>c172p.click("dme-power")</script>
|
|
|
|
</binding>
|
2015-06-16 21:20:54 +00:00
|
|
|
</action>
|
2018-05-17 11:58:44 +00:00
|
|
|
<hovered>
|
2016-08-12 18:57:03 +00:00
|
|
|
<binding>
|
2018-05-17 11:58:44 +00:00
|
|
|
<command>set-tooltip</command>
|
|
|
|
<tooltip-id>power-btn</tooltip-id>
|
|
|
|
<label>DME: %s</label>
|
2016-08-12 18:57:03 +00:00
|
|
|
<property alias="../../../../params/power-btn"/>
|
2018-05-17 11:58:44 +00:00
|
|
|
<mapping>nasal</mapping>
|
|
|
|
<script>
|
|
|
|
if(arg[0]) return 'ON';
|
|
|
|
return 'OFF';
|
|
|
|
</script>
|
2016-08-12 18:57:03 +00:00
|
|
|
</binding>
|
2018-05-17 11:58:44 +00:00
|
|
|
</hovered>
|
2015-06-16 21:20:54 +00:00
|
|
|
</animation>
|
|
|
|
|
2016-08-12 18:57:03 +00:00
|
|
|
<!-- The source switch -->
|
2015-06-16 21:20:54 +00:00
|
|
|
<animation>
|
2015-07-24 17:37:16 +00:00
|
|
|
<type>knob</type>
|
2015-06-16 21:20:54 +00:00
|
|
|
<object-name>SourceSelectorKnob</object-name>
|
|
|
|
<property>instrumentation/dme/switch-position</property>
|
|
|
|
<factor>-30</factor>
|
|
|
|
<min-deg>-60</min-deg>
|
|
|
|
<max-deg>0</max-deg>
|
|
|
|
<offset-deg>30</offset-deg>
|
|
|
|
<axis>
|
|
|
|
<x>1</x>
|
|
|
|
<y>0</y>
|
|
|
|
<z>0</z>
|
|
|
|
</axis>
|
|
|
|
<center>
|
2018-05-17 11:58:44 +00:00
|
|
|
<x-m>-0.35558</x-m>
|
|
|
|
<y-m> 0.05483</y-m>
|
|
|
|
<z-m>-0.05527</z-m>
|
2015-06-16 21:20:54 +00:00
|
|
|
</center>
|
|
|
|
<action>
|
2016-08-12 18:57:03 +00:00
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>instrumentation/dme/switch-position</property>
|
|
|
|
<factor>1</factor>
|
|
|
|
<min>1</min>
|
|
|
|
<max>3</max>
|
|
|
|
<wrap>0</wrap>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<condition>
|
|
|
|
<equals>
|
|
|
|
<property>instrumentation/dme/switch-position</property>
|
|
|
|
<value type="int">1</value>
|
|
|
|
</equals>
|
|
|
|
</condition>
|
|
|
|
<command>property-assign</command>
|
|
|
|
<property>instrumentation/dme/frequencies/source</property>
|
|
|
|
<value>instrumentation/nav[0]/frequencies/selected-mhz</value>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<condition>
|
|
|
|
<equals>
|
|
|
|
<property>instrumentation/dme/switch-position</property>
|
|
|
|
<value type="int">2</value>
|
|
|
|
</equals>
|
|
|
|
</condition>
|
|
|
|
<command>property-assign</command>
|
|
|
|
<property>instrumentation/dme/frequencies/source</property>
|
|
|
|
<value>instrumentation/dme/frequencies/selected-mhz</value>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<condition>
|
|
|
|
<equals>
|
|
|
|
<property>instrumentation/dme/switch-position</property>
|
|
|
|
<value type="int">3</value>
|
|
|
|
</equals>
|
|
|
|
</condition>
|
|
|
|
<command>property-assign</command>
|
|
|
|
<property>instrumentation/dme/frequencies/source</property>
|
|
|
|
<value>instrumentation/nav[1]/frequencies/selected-mhz</value>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>c172p.click("dme-source")</script>
|
|
|
|
</binding>
|
2015-06-16 21:20:54 +00:00
|
|
|
</action>
|
2018-05-17 11:58:44 +00:00
|
|
|
<hovered>
|
|
|
|
<binding>
|
|
|
|
<command>set-tooltip</command>
|
|
|
|
<tooltip-id>source-switch</tooltip-id>
|
|
|
|
<label>DME Source: %s</label>
|
|
|
|
<property>instrumentation/dme/switch-position</property>
|
|
|
|
<mapping>nasal</mapping>
|
|
|
|
<script>
|
|
|
|
var m = arg[0];
|
|
|
|
if (m == 1) return 'NAV1';
|
|
|
|
if (m == 3) return 'NAV2';
|
|
|
|
return 'HOLD';
|
|
|
|
</script>
|
|
|
|
</binding>
|
|
|
|
</hovered>
|
2015-06-16 21:20:54 +00:00
|
|
|
</animation>
|
|
|
|
|
|
|
|
</PropertyList>
|