2007-05-23 04:52:06 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<!-- CTL 92 Control for TDR-94 transponder
|
|
|
|
2.375"W x 2.625"H
|
|
|
|
Syd Adams
|
|
|
|
-->
|
|
|
|
|
|
|
|
<PropertyList>
|
|
|
|
|
|
|
|
<path>ctl92.ac</path>
|
|
|
|
|
|
|
|
<animation>
|
|
|
|
<type>select</type>
|
2009-08-09 21:25:07 +00:00
|
|
|
<object-name>C92freq.001</object-name>
|
|
|
|
<object-name>C92freq.002</object-name>
|
|
|
|
<object-name>C92freq.003</object-name>
|
|
|
|
<object-name>C92freq.004</object-name>
|
|
|
|
<object-name>C92mem.annun</object-name>
|
2007-05-23 04:52:06 +00:00
|
|
|
<condition>
|
2009-08-09 21:25:07 +00:00
|
|
|
<and>
|
|
|
|
<greater-than>
|
|
|
|
<property>systems/electrical/outputs/transponder</property>
|
|
|
|
<value>1</value>
|
|
|
|
</greater-than>
|
|
|
|
<greater-than>
|
2015-02-21 19:56:16 +00:00
|
|
|
<property>instrumentation/transponder/inputs/knob-mode</property>
|
2009-08-09 21:25:07 +00:00
|
|
|
<value>0</value>
|
|
|
|
</greater-than>
|
|
|
|
</and>
|
2007-05-23 04:52:06 +00:00
|
|
|
</condition>
|
|
|
|
</animation>
|
|
|
|
|
|
|
|
<animation>
|
2013-05-12 12:32:29 +00:00
|
|
|
<type>select</type>
|
|
|
|
<object-name>C92mem.annun</object-name>
|
|
|
|
<condition>
|
|
|
|
<property>instrumentation/tdr-94/mem-selected</property>
|
|
|
|
</condition>
|
|
|
|
</animation>
|
|
|
|
|
|
|
|
|
|
|
|
<animation>
|
|
|
|
<type>knob</type>
|
2007-05-23 04:52:06 +00:00
|
|
|
<object-name>CTL-92.pwr</object-name>
|
2013-05-12 12:32:29 +00:00
|
|
|
|
|
|
|
<action>
|
|
|
|
<binding>
|
|
|
|
<command>property-cycle</command>
|
2015-02-21 19:56:16 +00:00
|
|
|
<property>instrumentation/transponder/inputs/knob-mode</property>
|
2013-05-12 12:32:29 +00:00
|
|
|
<wrap>0</wrap> <!-- don't wrap at the ends -->
|
|
|
|
|
|
|
|
<value>0</value>
|
|
|
|
<value>1</value>
|
|
|
|
<value>4</value> <!-- ON -->
|
|
|
|
<value>5</value> <!-- altitude -->
|
|
|
|
|
|
|
|
</binding>
|
|
|
|
</action>
|
|
|
|
|
|
|
|
|
2015-02-21 19:56:16 +00:00
|
|
|
<property>instrumentation/transponder/inputs/knob-mode</property>
|
2007-05-23 04:52:06 +00:00
|
|
|
<interpolation>
|
2009-08-09 21:25:07 +00:00
|
|
|
<entry><ind>0</ind><dep>0.0</dep></entry><!--OFF-->
|
|
|
|
<entry><ind>1</ind><dep>30.0</dep></entry><!--STBY-->
|
2013-05-12 12:32:29 +00:00
|
|
|
|
|
|
|
<!-- these two should never happen any more -->
|
2009-08-09 21:25:07 +00:00
|
|
|
<entry><ind>2</ind><dep>30.0</dep></entry><!--TEST-->
|
|
|
|
<entry><ind>3</ind><dep>30.0</dep></entry><!--GRND-->
|
2013-05-12 12:32:29 +00:00
|
|
|
|
|
|
|
<entry><ind>4</ind><dep>60.0</dep></entry><!--ON-->
|
|
|
|
<entry><ind>5</ind><dep>90.0</dep></entry><!--ALT-->
|
2007-05-23 04:52:06 +00:00
|
|
|
</interpolation>
|
|
|
|
<center>
|
|
|
|
<x-m>0.0</x-m>
|
|
|
|
<y-m>-0.014</y-m>
|
|
|
|
<z-m>-0.018</z-m>
|
|
|
|
</center>
|
|
|
|
<axis>
|
|
|
|
<x>-1</x>
|
|
|
|
<y>0</y>
|
|
|
|
<z>0</z>
|
|
|
|
</axis>
|
|
|
|
</animation>
|
|
|
|
|
2009-08-09 21:25:07 +00:00
|
|
|
<animation>
|
|
|
|
<type>textranslate</type>
|
|
|
|
<object-name>C92freq.001</object-name>
|
2015-02-21 19:56:16 +00:00
|
|
|
<property>instrumentation/transponder/inputs/digit[3]</property>
|
2013-05-12 12:32:29 +00:00
|
|
|
<factor>0.1</factor>
|
|
|
|
<step>1</step>
|
2009-08-09 21:25:07 +00:00
|
|
|
<axis>
|
|
|
|
<x>0</x>
|
|
|
|
<y>1</y>
|
|
|
|
<z>0</z>
|
|
|
|
</axis>
|
|
|
|
</animation>
|
|
|
|
|
|
|
|
<animation>
|
|
|
|
<type>textranslate</type>
|
|
|
|
<object-name>C92freq.002</object-name>
|
2015-02-21 19:56:16 +00:00
|
|
|
<property>instrumentation/transponder/inputs/digit[2]</property>
|
2013-05-12 12:32:29 +00:00
|
|
|
<factor>0.1</factor>
|
|
|
|
<step>1</step>
|
2009-08-09 21:25:07 +00:00
|
|
|
<axis>
|
|
|
|
<x>0</x>
|
|
|
|
<y>1</y>
|
|
|
|
<z>0</z>
|
|
|
|
</axis>
|
|
|
|
</animation>
|
|
|
|
|
|
|
|
<animation>
|
|
|
|
<type>textranslate</type>
|
|
|
|
<object-name>C92freq.003</object-name>
|
2015-02-21 19:56:16 +00:00
|
|
|
<property>instrumentation/transponder/inputs/digit[1]</property>
|
2013-05-12 12:32:29 +00:00
|
|
|
<factor>0.1</factor>
|
|
|
|
<step>1</step>
|
2009-08-09 21:25:07 +00:00
|
|
|
<axis>
|
|
|
|
<x>0</x>
|
|
|
|
<y>1</y>
|
|
|
|
<z>0</z>
|
|
|
|
</axis>
|
|
|
|
</animation>
|
|
|
|
|
|
|
|
<animation>
|
|
|
|
<type>textranslate</type>
|
|
|
|
<object-name>C92freq.004</object-name>
|
2015-02-21 19:56:16 +00:00
|
|
|
<property>instrumentation/transponder/inputs/digit[0]</property>
|
2009-08-09 21:25:07 +00:00
|
|
|
<factor>0.1</factor>
|
|
|
|
<step>1</step>
|
|
|
|
<axis>
|
|
|
|
<x>0</x>
|
|
|
|
<y>1</y>
|
|
|
|
<z>0</z>
|
|
|
|
</axis>
|
|
|
|
</animation>
|
2007-05-23 04:52:06 +00:00
|
|
|
|
|
|
|
<!-- OSG hotspots -->
|
|
|
|
|
|
|
|
<animation>
|
|
|
|
<type>pick</type>
|
2009-08-09 21:25:07 +00:00
|
|
|
<object-name>atc.ident</object-name>
|
2007-05-23 04:52:06 +00:00
|
|
|
<action>
|
|
|
|
<button>0</button>
|
|
|
|
<repeatable>false</repeatable>
|
|
|
|
<binding>
|
2009-08-09 21:25:07 +00:00
|
|
|
<command>property-toggle</command>
|
2015-02-21 19:56:16 +00:00
|
|
|
<property>instrumentation/transponder/inputs/ident-btn</property>
|
2009-08-09 21:25:07 +00:00
|
|
|
</binding>
|
|
|
|
</action>
|
|
|
|
</animation>
|
|
|
|
|
|
|
|
<animation>
|
|
|
|
<type>pick</type>
|
2015-02-21 19:56:16 +00:00
|
|
|
<object-name>atc.pre</object-name>
|
2009-08-09 21:25:07 +00:00
|
|
|
<action>
|
|
|
|
<button>0</button>
|
2013-05-12 12:32:29 +00:00
|
|
|
<repeatable>false</repeatable>
|
2009-08-09 21:25:07 +00:00
|
|
|
<binding>
|
2013-05-12 12:32:29 +00:00
|
|
|
<command>property-assign</command>
|
2015-02-21 19:56:16 +00:00
|
|
|
<property>instrumentation/transponder/id-code</property>
|
2013-05-12 12:32:29 +00:00
|
|
|
<value>1200</value>
|
2009-08-09 21:25:07 +00:00
|
|
|
</binding>
|
|
|
|
</action>
|
|
|
|
</animation>
|
2013-05-12 12:32:29 +00:00
|
|
|
|
2009-08-09 21:25:07 +00:00
|
|
|
<animation>
|
|
|
|
<type>pick</type>
|
2015-02-21 19:56:16 +00:00
|
|
|
<object-name>CTL-92.toggle</object-name>
|
2009-08-09 21:25:07 +00:00
|
|
|
<action>
|
2013-05-12 12:32:29 +00:00
|
|
|
<repeatable>false</repeatable>
|
2009-08-09 21:25:07 +00:00
|
|
|
<binding>
|
2013-05-12 12:32:29 +00:00
|
|
|
<command>property-toggle</command>
|
|
|
|
<property>instrumentation/tdr-94/mem-selected</property>
|
|
|
|
</binding>
|
2009-08-09 21:25:07 +00:00
|
|
|
</action>
|
|
|
|
</animation>
|
2013-05-12 12:32:29 +00:00
|
|
|
|
2009-08-09 21:25:07 +00:00
|
|
|
<animation>
|
|
|
|
<type>pick</type>
|
2013-05-12 12:32:29 +00:00
|
|
|
<object-name>atc.test</object-name>
|
2009-08-09 21:25:07 +00:00
|
|
|
<action>
|
2013-05-12 12:32:29 +00:00
|
|
|
<button>0</button>
|
|
|
|
<repeatable>false</repeatable>
|
2009-08-09 21:25:07 +00:00
|
|
|
<binding>
|
2013-05-12 12:32:29 +00:00
|
|
|
<command>property-assign</command>
|
|
|
|
<property>instrumentation/tdr-94/saved-mode</property>
|
2015-02-21 19:56:16 +00:00
|
|
|
<property>instrumentation/transponder/inputs/knob-mode</property>
|
2013-05-12 12:32:29 +00:00
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>property-assign</command>
|
2015-02-21 19:56:16 +00:00
|
|
|
<property>instrumentation/transponder/inputs/knob-mode</property>
|
2013-05-12 12:32:29 +00:00
|
|
|
<value>2</value> <!-- test mode -->
|
|
|
|
</binding>
|
|
|
|
|
|
|
|
<mod-up>
|
|
|
|
<!-- restore previous mode on button release -->
|
|
|
|
<binding>
|
|
|
|
<command>property-assign</command>
|
2015-02-21 19:56:16 +00:00
|
|
|
<property>instrumentation/transponder/inputs/knob-mode</property>
|
2013-05-12 12:32:29 +00:00
|
|
|
<property>instrumentation/tdr-94/saved-mode</property>
|
|
|
|
</binding>
|
|
|
|
</mod-up>
|
2009-08-09 21:25:07 +00:00
|
|
|
</action>
|
|
|
|
</animation>
|
2013-05-12 12:32:29 +00:00
|
|
|
|
2009-08-09 21:25:07 +00:00
|
|
|
<animation>
|
2013-05-12 12:32:29 +00:00
|
|
|
<type>knob</type>
|
2009-08-09 21:25:07 +00:00
|
|
|
<object-name>CTL92.knob</object-name>
|
|
|
|
<action>
|
2013-05-12 12:32:29 +00:00
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script><![CDATA[
|
2015-02-21 19:56:16 +00:00
|
|
|
var loDigit = getprop('instrumentation/transponder/inputs/digit[2]') or 2;
|
|
|
|
var hiDigit = getprop('instrumentation/transponder/inputs/digit[3]') or 1;
|
2013-05-12 12:32:29 +00:00
|
|
|
|
|
|
|
var offset = int(cmdarg().getNode('offset').getValue());
|
|
|
|
var incr = (offset > 0);
|
2009-08-09 21:25:07 +00:00
|
|
|
|
2013-05-12 12:32:29 +00:00
|
|
|
if ((incr and loDigit == 7) or (!incr and loDigit == 0)) {
|
|
|
|
hiDigit = math.mod(hiDigit + offset, 8);
|
|
|
|
}
|
|
|
|
|
|
|
|
loDigit = math.mod(loDigit + offset, 8);
|
2015-02-21 19:56:16 +00:00
|
|
|
setprop('instrumentation/transponder/inputs/digit[2]', loDigit);
|
|
|
|
setprop('instrumentation/transponder/inputs/digit[3]', hiDigit);
|
2013-05-12 12:32:29 +00:00
|
|
|
]]></script>
|
|
|
|
</binding>
|
2009-08-09 21:25:07 +00:00
|
|
|
</action>
|
|
|
|
</animation>
|
|
|
|
|
|
|
|
<animation>
|
2013-05-12 12:32:29 +00:00
|
|
|
<type>knob</type>
|
2009-08-09 21:25:07 +00:00
|
|
|
<object-name>CTL92.knob1</object-name>
|
|
|
|
<action>
|
|
|
|
<binding>
|
2013-05-12 12:32:29 +00:00
|
|
|
<command>nasal</command>
|
|
|
|
<script><![CDATA[
|
2015-02-21 19:56:16 +00:00
|
|
|
var loDigit = getprop('instrumentation/transponder/inputs/digit[0]') or 0;
|
|
|
|
var hiDigit = getprop('instrumentation/transponder/inputs/digit[1]') or 0;
|
2013-05-12 12:32:29 +00:00
|
|
|
|
|
|
|
var offset = int(cmdarg().getNode('offset').getValue());
|
|
|
|
var incr = (offset > 0);
|
2009-08-09 21:25:07 +00:00
|
|
|
|
2013-05-12 12:32:29 +00:00
|
|
|
if ((incr and loDigit == 7) or (!incr and loDigit == 0)) {
|
|
|
|
hiDigit = math.mod(hiDigit + offset, 8);
|
|
|
|
}
|
|
|
|
|
|
|
|
loDigit = math.mod(loDigit + offset, 8);
|
2015-02-21 19:56:16 +00:00
|
|
|
setprop('instrumentation/transponder/inputs/digit[0]', loDigit);
|
|
|
|
setprop('instrumentation/transponder/inputs/digit[1]', hiDigit);
|
2013-05-12 12:32:29 +00:00
|
|
|
]]></script>
|
|
|
|
</binding>
|
2009-08-09 21:25:07 +00:00
|
|
|
</action>
|
|
|
|
</animation>
|
|
|
|
|
2007-05-23 04:52:06 +00:00
|
|
|
|
2015-02-21 19:56:16 +00:00
|
|
|
</PropertyList>
|