1
0
Fork 0

Updated my 3d kr-87adf reciever to use Curt's kr-87 code instead of instruments/adf ....

This commit is contained in:
sydadams 2007-12-22 23:31:45 +00:00
parent 5832bde60e
commit d642797371
7 changed files with 1370 additions and 1017 deletions

View file

@ -0,0 +1,49 @@
<?xml version="1.0"?>
<!-- KI 227-00
ADF Heading Indicator -manually rotated compass card
Syd Adams
-->
<PropertyList>
<path>ki227.ac</path>
<animation>
<type>material</type>
<object-name>KI227card</object-name>
<object-name>KI227.needle</object-name>
<object-name>KI227.knob</object-name>
<object-name>KI227.face</object-name>
<emission>
<red>0.028</red>
<green>0.014</green>
<blue>0.007</blue>
<factor-prop>systems/electrical/outputs/instrument-lights</factor-prop>
</emission>
</animation>
<animation>
<type>rotate</type>
<object-name>KI227card</object-name>
<property>/instrumentation/kr-87/inputs/rotation-deg</property>
<factor>-1</factor>
<axis>
<x>-1</x>
<y>0</y>
<z>0</z>
</axis>
</animation>
<animation>
<type>rotate</type>
<object-name>KI227.needle</object-name>
<property>/instrumentation/kr-87/outputs/needle-deg</property>
<axis>
<x>-1</x>
<y>0</y>
<z>0</z>
</axis>
</animation>
</PropertyList>

View file

@ -0,0 +1,49 @@
<?xml version="1.0"?>
<!-- KI 227-01
ADF Heading Indicator -HSI driven compass card
Syd Adams
-->
<PropertyList>
<path>ki227.ac</path>
<animation>
<type>material</type>
<object-name>KI227card</object-name>
<object-name>KI227.needle</object-name>
<object-name>KI227.knob</object-name>
<object-name>KI227.face</object-name>
<emission>
<red>0.028</red>
<green>0.014</green>
<blue>0.007</blue>
<factor-prop>systems/electrical/outputs/instrument-lights</factor-prop>
</emission>
</animation>
<animation>
<type>rotate</type>
<object-name>KI227card</object-name>
<property>instrumentation/heading-indicator/indicated-heading-deg</property>
<factor>-1</factor>
<axis>
<x>-1</x>
<y>0</y>
<z>0</z>
</axis>
</animation>
<animation>
<type>rotate</type>
<object-name>KI227.needle</object-name>
<property>/instrumentation/kr-87/outputs/needle-deg</property>
<axis>
<x>-1</x>
<y>0</y>
<z>0</z>
</axis>
</animation>
</PropertyList>

View file

@ -1,49 +0,0 @@
<?xml version="1.0"?>
<!-- KI 227-01
Bendix/King Slaved Magnetic Heading Indicator
Syd Adams
-->
<PropertyList>
<path>ki227.ac</path>
<animation>
<type>material</type>
<object-name>KI227card</object-name>
<object-name>KI227.needle</object-name>
<object-name>KI227.knob</object-name>
<object-name>KI227.face</object-name>
<emission>
<red>0.8</red>
<green>0.4</green>
<blue>0.2</blue>
<factor-prop>/systems/electrical/outputs/instrument-lights</factor-prop>
</emission>
</animation>
<animation>
<type>rotate</type>
<object-name>KI227card</object-name>
<property>/instrumentation/adf/rotation-deg[0]</property>
<factor>-1</factor>
<axis>
<x>-1</x>
<y>0</y>
<z>0</z>
</axis>
</animation>
<animation>
<type>rotate</type>
<object-name>KI227.needle</object-name>
<property>/instrumentation/adf/indicated-bearing-deg</property>
<axis>
<x>-1</x>
<y>0</y>
<z>0</z>
</axis>
</animation>
</PropertyList>

View file

@ -10,7 +10,7 @@ KR 87 ADF radio hotspots
<w-base>160</w-base> <w-base>160</w-base>
<h-base>36</h-base> <h-base>36</h-base>
<w>160</w> <w>160</w>
<h>36</h> <h>34</h>
<actions> <actions>
@ -20,22 +20,22 @@ KR 87 ADF radio hotspots
<name>bezel outline</name> <name>bezel outline</name>
<button>0</button> <button>0</button>
<x>-80</x> <x>-80</x>
<y>-18</y> <y>-17</y>
<w>160</w> <w>160</w>
<h>36</h> <h>34</h>
</action> </action>
--> -->
<action> <action>
<name>adf frequency decrease small</name> <name>adf frequency decrease small</name>
<button>0</button> <button>0</button>
<x>54</x> <x>50</x>
<y>-10</y> <y>-10</y>
<w>12</w> <w>13</w>
<h>20</h> <h>20</h>
<binding> <binding>
<command>property-adjust</command> <command>property-adjust</command>
<property>instrumentation/adf/frequencies/selected-khz</property> <property>instrumentation/kr-87/outputs/standby-khz</property>
<step>-1</step> <step>-1</step>
<min>100</min> <min>100</min>
<max>1300</max> <max>1300</max>
@ -47,13 +47,13 @@ KR 87 ADF radio hotspots
<action> <action>
<name>adf frequency decrease large</name> <name>adf frequency decrease large</name>
<button>1</button> <button>1</button>
<x>54</x> <x>50</x>
<y>-10</y> <y>-10</y>
<w>12</w> <w>13</w>
<h>20</h> <h>20</h>
<binding> <binding>
<command>property-adjust</command> <command>property-adjust</command>
<property>instrumentation/adf/frequencies/selected-khz</property> <property>instrumentation/kr-87/outputs/standby-khz</property>
<step>-100</step> <step>-100</step>
<min>100</min> <min>100</min>
<max>1300</max> <max>1300</max>
@ -65,13 +65,13 @@ KR 87 ADF radio hotspots
<action> <action>
<name>adf frequency increase small</name> <name>adf frequency increase small</name>
<button>0</button> <button>0</button>
<x>66</x> <x>63</x>
<y>-10</y> <y>-10</y>
<w>12</w> <w>13</w>
<h>20</h> <h>20</h>
<binding> <binding>
<command>property-adjust</command> <command>property-adjust</command>
<property>instrumentation/adf/frequencies/selected-khz</property> <property>instrumentation/kr-87/outputs/standby-khz</property>
<step>1</step> <step>1</step>
<min>100</min> <min>100</min>
<max>1300</max> <max>1300</max>
@ -83,13 +83,13 @@ KR 87 ADF radio hotspots
<action> <action>
<name>adf frequency increase large</name> <name>adf frequency increase large</name>
<button>1</button> <button>1</button>
<x>66</x> <x>63</x>
<y>-10</y> <y>-10</y>
<w>12</w> <w>13</w>
<h>20</h> <h>20</h>
<binding> <binding>
<command>property-adjust</command> <command>property-adjust</command>
<property>instrumentation/adf/frequencies/selected-khz</property> <property>instrumentation/kr-87/outputs/standby-khz</property>
<step>100</step> <step>100</step>
<min>100</min> <min>100</min>
<max>1300</max> <max>1300</max>
@ -98,67 +98,61 @@ KR 87 ADF radio hotspots
</binding> </binding>
</action> </action>
<action>
<name>adf volume increase</name>
<button>0</button>
<x>38</x>
<y>-11</y>
<w>7</w>
<h>10</h>
<condition>
<property>instrumentation/kr-87/inputs/power-btn</property>
</condition>
<binding>
<command>property-adjust</command>
<property>instrumentation/kr-87/inputs/volume</property>
<step>0.05</step>
<min>0.0</min>
<max>1.0</max>
<wrap>false</wrap>
</binding>
</action>
<action> <action>
<name>adf volume increase</name> <name>adf power on</name>
<button>0</button> <button>0</button>
<x>40</x> <x>38</x>
<y>-12</y> <y>-11</y>
<w>8</w> <w>7</w>
<h>12</h> <h>10</h>
<condition> <condition>
<equals> <not>
<property>instrumentation/adf/serviceable</property> <property>instrumentation/kr-87/inputs/power-btn</property>
<value>true</value> </not>
</equals> </condition>
</condition> <binding>
<binding> <command>property-assign</command>
<command>property-adjust</command> <property>instrumentation/kr-87/inputs/power-btn</property>
<property>instrumentation/adf/volume-norm</property> <value>true</value>
<step>0.05</step> </binding>
<min>0.0</min> </action>
<max>1.0</max>
<wrap>false</wrap>
</binding>
</action>
<action>
<name>adf power on</name>
<button>0</button>
<x>40</x>
<y>-12</y>
<w>8</w>
<h>12</h>
<condition>
<equals>
<property>instrumentation/adf/serviceable</property>
<value>false</value>
</equals>
</condition>
<binding>
<command>property-assign</command>
<property>instrumentation/adf/serviceable</property>
<value>true</value>
</binding>
</action>
<action> <action>
<name>adf volume decrease</name> <name>adf volume decrease</name>
<button>0</button> <button>0</button>
<x>32</x> <x>31</x>
<y>-12</y> <y>-11</y>
<w>8</w> <w>7</w>
<h>12</h> <h>10</h>
<condition> <condition>
<greater-than> <greater-than>
<property>instrumentation/adf/volume-norm</property> <property>instrumentation/kr-87/inputs/volume</property>
<value>0.0</value> <value>0.0</value>
</greater-than> </greater-than>
</condition> </condition>
<binding> <binding>
<command>property-adjust</command> <command>property-adjust</command>
<property>instrumentation/adf/volume-norm</property> <property>instrumentation/kr-87/inputs/volume</property>
<step>-0.05</step> <step>-0.05</step>
<min>0.0</min> <min>0.0</min>
<max>1.0</max> <max>1.0</max>
@ -166,39 +160,115 @@ KR 87 ADF radio hotspots
</binding> </binding>
</action> </action>
<action> <action>
<name>adf power off</name> <name>adf power off</name>
<button>0</button> <button>0</button>
<x>32</x> <x>31</x>
<y>-12</y> <y>-11</y>
<w>8</w> <w>7</w>
<h>12</h> <h>10</h>
<condition> <condition>
<equals> <equals>
<property>instrumentation/adf/volume-norm</property> <property>instrumentation/kr-87/inputs/volume</property>
<value>0</value> <value>0</value>
</equals> </equals>
</condition> </condition>
<binding> <binding>
<command>property-assign</command> <command>property-assign</command>
<property>instrumentation/adf/serviceable</property> <property>instrumentation/kr-87/inputs/power-btn</property>
<value>false</value> <value>false</value>
</binding> </binding>
</action> </action>
<action>
<name>adf button</name>
<button>0</button>
<x>-52</x>
<y>-13</y>
<w>10</w>
<h>5</h>
<binding>
<command>property-toggle</command>
<property>instrumentation/kr-87/inputs/adf-btn</property>
</binding>
</action>
<!-- Button actions -->
<action>
<name>bfo button</name>
<button>0</button>
<x>-37</x>
<y>-13</y>
<w>10</w>
<h>5</h>
<binding>
<command>property-toggle</command>
<property>instrumentation/kr-87/inputs/bfo-btn</property>
</binding>
</action>
<action>
<name>frq button</name>
<button>0</button>
<x>-22</x>
<y>-13</y>
<w>10</w>
<h>5</h>
<binding>
<command>property-assign</command>
<property>instrumentation/kr-87/inputs/frq-btn</property>
<value>1</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>instrumentation/kr-87/inputs/frq-btn</property>
<value>0</value>
</binding>
</mod-up>
</action>
<action>
<name>flt button</name>
<button>0</button>
<x>-6</x>
<y>-13</y>
<w>10</w>
<h>5</h>
<binding>
<command>property-assign</command>
<property>instrumentation/kr-87/inputs/flt-et-btn</property>
<value>1</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>instrumentation/kr-87/inputs/flt-et-btn</property>
<value>0</value>
</binding>
</mod-up>
</action>
<action>
<name>set button</name>
<button>0</button>
<x>9</x>
<y>-13</y>
<w>10</w>
<h>5</h>
<binding>
<command>property-assign</command>
<property>instrumentation/kr-87/inputs/set-rst-btn</property>
<value>1</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>instrumentation/kr-87/inputs/set-rst-btn</property>
<value>0</value>
</binding>
</mod-up>
</action>
<action>
<name>swap adf frequencies</name>
<button>0</button>
<x>-20</x>
<y>-12</y>
<w>12</w>
<h>6</h>
<binding>
<command>property-swap</command>
<property>instrumentation/adf/frequencies/selected-khz</property>
<property>instrumentation/adf/frequencies/standby-khz</property>
</binding>
</action>
</actions> </actions>
</PropertyList> </PropertyList>

File diff suppressed because it is too large Load diff

View file

@ -6,201 +6,303 @@ Syd Adams
--> -->
<PropertyList> <PropertyList>
<path>kr87.ac</path> <path>kr87.ac</path>
<animation> <animation>
<name>adf-leds</name> <type>material</type>
<object-name>annun.001</object-name> <object-name>KR87.adf</object-name>
<object-name>annun.002</object-name> <object-name>KR87.bfo</object-name>
<object-name>freq.002</object-name> <object-name>KR87.frq</object-name>
<object-name>freq.003</object-name> <object-name>KR87.flt</object-name>
<object-name>freq.004</object-name> <object-name>KR87.set</object-name>
<object-name>stby.001</object-name> <object-name>KR87.volume</object-name>
<object-name>stby.002</object-name> <emission>
<object-name>stby.003</object-name> <red>0.028</red>
<object-name>stby.004</object-name> <green>0.014</green>
<object-name>KR87.btn</object-name> <blue>0.007</blue>
</animation> <factor-prop>systems/electrical/outputs/instrument-lights</factor-prop>
</emission>
</animation>
<animation> <animation>
<type>select</type> <name>in-use-leds</name>
<object-name>adf-leds</object-name> <object-name>freq.001</object-name>
<condition> <object-name>freq.002</object-name>
<and> <object-name>freq.003</object-name>
<property>instrumentation/adf/serviceable</property> <object-name>freq.004</object-name>
<greater-than> </animation>
<property>systems/electrical/outputs/adf</property>
<value>1</value>
</greater-than>
</and>
</condition>
</animation>
<animation> <animation>
<type>select</type> <name>standby-leds</name>
<object-name>freq.001</object-name> <object-name>stby.001</object-name>
<condition> <object-name>stby.002</object-name>
<and> <object-name>stby.003</object-name>
<equals> <object-name>stby.004</object-name>
<property>instrumentation/adf/serviceable</property> </animation>
<value>true</value>
</equals>
<greater-than>
<property>instrumentation/adf/frequencies/selected-khz</property>
<value>999</value>
</greater-than>
<greater-than>
<property>systems/electrical/outputs/adf</property>
<value>1</value>
</greater-than>
</and>
</condition>
</animation>
<animation> <animation>
<type>select</type> <type>select</type>
<object-name>stby.001</object-name> <object-name>in-use-leds</object-name>
<condition> <object-name>standby-leds</object-name>
<and> <condition>
<equals> <and>
<property>instrumentation/adf/serviceable</property> <property>instrumentation/kr-87/inputs/power-btn</property>
<value>true</value> <greater-than>
</equals> <property>systems/electrical/outputs/adf</property>
<greater-than> <value>1</value>
<property>instrumentation/adf/frequencies/standby-khz</property> </greater-than>
<value>999</value> </and>
</greater-than> </condition>
<greater-than> </animation>
<property>systems/electrical/outputs/adf</property>
<value>1</value>
</greater-than>
</and>
</condition>
</animation>
<animation> <animation>
<type>rotate</type> <type>select</type>
<object-name>KR87.volume</object-name> <object-name>freq.001</object-name>
<property>instrumentation/adf/volume-norm</property> <condition>
<interpolation> <and>
<entry><ind>0</ind><dep>0</dep></entry> <property>instrumentation/kr-87/inputs/power-btn</property>
<entry><ind>1.0</ind><dep>300</dep></entry> <greater-than>
</interpolation> <property>systems/electrical/outputs/adf</property>
<center> <value>1</value>
<x-m>0.00</x-m> </greater-than>
<y-m>0.038</y-m> <greater-than>
<z-m>-0.006</z-m> <property>instrumentation/kr-87/outputs/selected-khz</property>
</center> <value>999</value>
<axis> </greater-than>
<x>-1</x> </and>
<y>0</y> </condition>
<z>0</z> </animation>
</axis>
</animation> <animation>
<type>select</type>
<object-name>stby.001</object-name>
<condition>
<and>
<property>instrumentation/kr-87/inputs/power-btn</property>
<or>
<greater-than>
<property>instrumentation/kr-87/outputs/standby-khz</property>
<value>999</value>
</greater-than>
<equals>
<property>instrumentation/kr-87/modes/stby</property>
<value>1</value>
</equals>
</or>
<greater-than>
<property>systems/electrical/outputs/adf</property>
<value>1</value>
</greater-than>
</and>
</condition>
</animation>
<animation>
<type>select</type>
<object-name>stby</object-name>
<condition>
<and>
<property>instrumentation/kr-87/inputs/power-btn</property>
<greater-than>
<property>instrumentation/kr-87/modes/stby</property>
<value>0</value>
</greater-than>
<greater-than>
<property>systems/electrical/outputs/adf</property>
<value>1</value>
</greater-than>
</and>
</condition>
</animation>
<animation>
<type>rotate</type>
<object-name>KR87.volume</object-name>
<property>instrumentation/kr-87/inputs/volume</property>
<interpolation>
<entry><ind>0</ind><dep>0</dep></entry>
<entry><ind>1.0</ind><dep>300</dep></entry>
</interpolation>
<center>
<x-m>0.00</x-m>
<y-m>0.038</y-m>
<z-m>-0.006</z-m>
</center>
<axis>
<x>-1</x>
<y>0</y>
<z>0</z>
</axis>
</animation>
<animation>
<type>translate</type>
<object-name>KR87.adf</object-name>
<property>instrumentation/kr-87/annunciators/adf</property>
<factor>0.001</factor>
<center>
<x-m>0.00</x-m>
<y-m>0.0</y-m>
<z-m>0.0</z-m>
</center>
<axis>
<x>-1</x>
<y>0</y>
<z>0</z>
</axis>
</animation>
<!-- FREQUENCIES --> <!-- FREQUENCIES -->
<animation> <animation>
<type>textranslate</type> <type>textranslate</type>
<object-name>freq.001</object-name> <object-name>freq.001</object-name>
<property>instrumentation/adf/frequencies/selected-khz</property> <property>instrumentation/kr-87/outputs/selected-khz</property>
<factor>0.0001</factor> <factor>0.0001</factor>
<step>1000</step> <step>1000</step>
<axis> <axis>
<x>1</x> <x>1</x>
<y>0</y> <y>0</y>
<z>0</z> <z>0</z>
</axis> </axis>
</animation> </animation>
<animation> <animation>
<type>textranslate</type> <type>textranslate</type>
<object-name>freq.002</object-name> <object-name>freq.002</object-name>
<property>instrumentation/adf/frequencies/selected-khz</property> <property>instrumentation/kr-87/outputs/selected-khz</property>
<factor>0.001</factor> <factor>0.001</factor>
<step>100</step> <step>100</step>
<axis> <axis>
<x>1</x> <x>1</x>
<y>0</y> <y>0</y>
<z>0</z> <z>0</z>
</axis> </axis>
</animation> </animation>
<animation> <animation>
<type>textranslate</type> <type>textranslate</type>
<object-name>freq.003</object-name> <object-name>freq.003</object-name>
<property>instrumentation/adf/frequencies/selected-khz</property> <property>instrumentation/kr-87/outputs/selected-khz</property>
<factor>0.01</factor> <factor>0.01</factor>
<step>10</step> <step>10</step>
<axis> <axis>
<x>1</x> <x>1</x>
<y>0</y> <y>0</y>
<z>0</z> <z>0</z>
</axis> </axis>
</animation> </animation>
<animation> <animation>
<type>textranslate</type> <type>textranslate</type>
<object-name>freq.004</object-name> <object-name>freq.004</object-name>
<property>instrumentation/adf/frequencies/selected-khz</property> <property>instrumentation/kr-87/outputs/selected-khz</property>
<factor>0.1</factor> <factor>0.1</factor>
<step>1</step> <step>1</step>
<axis> <axis>
<x>1</x> <x>1</x>
<y>0</y> <y>0</y>
<z>0</z> <z>0</z>
</axis> </axis>
</animation> </animation>
<!-- Standby -->
<animation>
<type>textranslate</type>
<object-name>stby.001</object-name>
<property>instrumentation/kr-87/outputs/standby-khz</property>
<factor>0.0001</factor>
<step>1000</step>
<axis>
<x>1</x>
<y>0</y>
<z>0</z>
</axis>
</animation>
<animation> <animation>
<type>textranslate</type> <type>textranslate</type>
<object-name>stby.001</object-name> <object-name>stby.002</object-name>
<property>instrumentation/adf/frequencies/standby-khz</property> <property>instrumentation/kr-87/outputs/standby-khz</property>
<factor>0.0001</factor> <factor>0.001</factor>
<step>1000</step> <step>100</step>
<axis> <axis>
<x>1</x> <x>1</x>
<y>0</y> <y>0</y>
<z>0</z> <z>0</z>
</axis> </axis>
</animation> </animation>
<animation> <animation>
<type>textranslate</type> <type>textranslate</type>
<object-name>stby.002</object-name> <object-name>stby.003</object-name>
<property>instrumentation/adf/frequencies/standby-khz</property> <property>instrumentation/kr-87/outputs/standby-khz</property>
<factor>0.001</factor> <factor>0.01</factor>
<step>100</step> <step>10</step>
<axis> <axis>
<x>1</x> <x>1</x>
<y>0</y> <y>0</y>
<z>0</z> <z>0</z>
</axis> </axis>
</animation> </animation>
<animation> <animation>
<type>textranslate</type> <type>textranslate</type>
<object-name>stby.003</object-name> <object-name>stby.004</object-name>
<property>instrumentation/adf/frequencies/standby-khz</property> <property>instrumentation/kr-87/outputs/standby-khz</property>
<factor>0.01</factor> <factor>0.1</factor>
<step>10</step> <step>1</step>
<axis> <axis>
<x>1</x> <x>1</x>
<y>0</y> <y>0</y>
<z>0</z> <z>0</z>
</axis> </axis>
</animation> </animation>
<animation> <animation>
<type>textranslate</type> <type>select</type>
<object-name>stby.004</object-name> <object-name>ant.annun</object-name>
<property>instrumentation/adf/frequencies/standby-khz</property> <condition>
<factor>0.1</factor> <property>instrumentation/kr-87/annunciators/ant</property>
<step>1</step> </condition>
<axis> </animation>
<x>1</x>
<y>0</y> <animation>
<z>0</z> <type>select</type>
</axis> <object-name>adf.annun</object-name>
</animation> <condition>
<property>instrumentation/kr-87/annunciators/adf</property>
</condition>
</animation>
<animation>
<type>select</type>
<object-name>bfo.annun</object-name>
<condition>
<property>instrumentation/kr-87/annunciators/bfo</property>
</condition>
</animation>
<animation>
<type>select</type>
<object-name>et.annun</object-name>
<condition>
<property>instrumentation/kr-87/annunciators/et</property>
</condition>
</animation>
<animation>
<type>select</type>
<object-name>flt.annun</object-name>
<condition>
<property>instrumentation/kr-87/annunciators/flt</property>
</condition>
</animation>
<animation>
<type>select</type>
<object-name>frq.annun</object-name>
<condition>
<property>instrumentation/kr-87/annunciators/frq</property>
</condition>
</animation>
</PropertyList> </PropertyList>