1
0
Fork 0

Updated c172p with 8.33kHz radio stack

https://github.com/c172p-team/c172p/commits/release/2019.1

184e0083293de474c7944b34b8ac71c5e12380fc
This commit is contained in:
Stuart Buchanan 2019-06-18 21:31:13 +01:00
parent 7c914b4ade
commit b079fffa13
16 changed files with 11113 additions and 3388 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

View file

@ -2,8 +2,8 @@
<PropertyList>
<!--
Bendix/King KX155/165 COMM/NAV radio
Use this instrument as COMM1/NAV1 radio
Bendix/King KX155/165 COM/NAV radio
Use this instrument as COM1/NAV1 radio
Created by Torsten Dreyer, October 2008
@ -39,6 +39,7 @@
<comm-dial-mhz>instrumentation/comm[0]/frequencies/dial-mhz</comm-dial-mhz>
<comm-volume>instrumentation/comm[0]/volume-selected</comm-volume>
<comm-test>instrumentation/comm[0]/test-btn</comm-test>
<channel-mode-selector>instrumentation/comm[0]/channel-mode-selector</channel-mode-selector>
<nav-frq-swp>instrumentation/nav[0]/frq-swap-btn</nav-frq-swp>
<nav-frq-selected>instrumentation/nav[0]/frequencies/selected-mhz</nav-frq-selected>
<nav-frq-standby>instrumentation/nav[0]/frequencies/standby-mhz</nav-frq-standby>
@ -52,41 +53,40 @@
<effect>
<inherits-from>../../../../Effects/interior/lm-kx165-1r</inherits-from>
<object-name>CommKnobs</object-name>
<object-name>CommVolume</object-name>
<object-name>NavKnobs</object-name>
<object-name>NavVolume</object-name>
<object-name>CommKHz</object-name>
<object-name>CommMHz</object-name>
<object-name>CommToggle</object-name>
<object-name>CommVolume</object-name>
<object-name>NavKHz</object-name>
<object-name>NavMHz</object-name>
<object-name>NavToggle</object-name>
<object-name>NavVolume</object-name>
<object-name>COMknobKHZ</object-name>
<object-name>COMknobMHZ</object-name>
<object-name>COMxfer</object-name>
<object-name>COMvol</object-name>
<object-name>COMchan</object-name>
<object-name>NAVknobKHZ</object-name>
<object-name>NAVknobMHZ</object-name>
<object-name>NAVxfer</object-name>
<object-name>NAVmode</object-name>
<object-name>NAVvol</object-name>
</effect>
<effect>
<inherits-from>../../../../Effects/interior/lm-kx165-1</inherits-from>
<object-name>CommToggle</object-name>
<object-name>NavToggle</object-name>
<object-name>Chassis</object-name>
<object-name>COMxfer</object-name>
<object-name>COMchan</object-name>
<object-name>NAVxfer</object-name>
<object-name>NAVmode</object-name>
<object-name>KX165</object-name>
</effect>
<effect>
<inherits-from>../../../../Effects/interior/c172p-interior-radiance</inherits-from>
<object-name>CommUse</object-name>
<object-name>CommStby</object-name>
<object-name>NavUse</object-name>
<object-name>NavStby</object-name>
<object-name>CommStby100K</object-name>
<object-name>CommStby100M</object-name>
<object-name>CommStby10K</object-name>
<object-name>CommStby10M</object-name>
<object-name>CommStby1K</object-name>
<object-name>CommStby1M</object-name>
<object-name>CommStbyDot</object-name>
<object-name>CommUse100K</object-name>
<object-name>CommUse100M</object-name>
<object-name>CommUse10K</object-name>
<object-name>CommUse10M</object-name>
<object-name>CommUse1K</object-name>
<object-name>CommUse1M</object-name>
<object-name>CommUseDot</object-name>
<object-name>NavStby100K</object-name>
@ -101,25 +101,23 @@
<object-name>NavUse10M</object-name>
<object-name>NavUse1M</object-name>
<object-name>NavUseDot</object-name>
<object-name>KX165Line</object-name>
<object-name>Screen</object-name>
</effect>
<animation>
<type>material</type>
<object-name>CommToggle</object-name>
<object-name>NavToggle</object-name>
<object-name>Chassis</object-name>
<object-name>CommKnobs</object-name>
<object-name>CommVolume</object-name>
<object-name>NavKnobs</object-name>
<object-name>NavVolume</object-name>
<object-name>CommKHz</object-name>
<object-name>CommMHz</object-name>
<object-name>CommToggle</object-name>
<object-name>CommVolume</object-name>
<object-name>NavKHz</object-name>
<object-name>NavMHz</object-name>
<object-name>NavToggle</object-name>
<object-name>NavVolume</object-name>
<object-name>KX165</object-name>
<object-name>COMknobKHZ</object-name>
<object-name>COMknobMHZ</object-name>
<object-name>COMxfer</object-name>
<object-name>COMchan</object-name>
<object-name>COMvol</object-name>
<object-name>NAVknobKHZ</object-name>
<object-name>NAVknobMHZ</object-name>
<object-name>NAVxfer</object-name>
<object-name>NAVmode</object-name>
<object-name>NAVvol</object-name>
<condition>
<not>
<property>/sim/rendering/shaders/skydome</property>
@ -132,99 +130,80 @@
</emission>
</animation>
<animation>
<object-name>CommKnobs</object-name>
<object-name>CommKHz</object-name>
<object-name>CommMHz</object-name>
<object-name>CommToggle</object-name>
<object-name>CommVolume</object-name>
<object-name>CommStby</object-name>
<object-name>CommStby100K</object-name>
<object-name>CommStby100M</object-name>
<object-name>CommStby10K</object-name>
<object-name>CommStby10M</object-name>
<object-name>CommStby1M</object-name>
<object-name>CommStbyDot</object-name>
<object-name>CommUse</object-name>
<object-name>CommUse100K</object-name>
<object-name>CommUse100M</object-name>
<object-name>CommUse10K</object-name>
<object-name>CommUse10M</object-name>
<object-name>CommUse1M</object-name>
<object-name>CommUseDot</object-name>
<object-name>NavKnobs</object-name>
<object-name>NavKHz</object-name>
<object-name>NavMHz</object-name>
<object-name>NavToggle</object-name>
<object-name>NavVolume</object-name>
<object-name>NavStby</object-name>
<object-name>NavStby100K</object-name>
<object-name>NavStby100M</object-name>
<object-name>NavStby10K</object-name>
<object-name>NavStby10M</object-name>
<object-name>NavStby1M</object-name>
<object-name>NavStbyDot</object-name>
<object-name>NavUse</object-name>
<object-name>NavUse100K</object-name>
<object-name>NavUse100M</object-name>
<object-name>NavUse10K</object-name>
<object-name>NavUse10M</object-name>
<object-name>NavUse1M</object-name>
<object-name>NavUseDot</object-name>
<object-name>Chassis</object-name>
</animation>
<animation>
<type>material</type>
<object-name>CommKnobs</object-name>
<object-name>CommKHz</object-name>
<object-name>CommMHz</object-name>
<object-name>CommToggle</object-name>
<object-name>CommVolume</object-name>
<object-name>CommStby</object-name>
<object-name>COMknobKHZ</object-name>
<object-name>COMknobMHZ</object-name>
<object-name>COMxfer</object-name>
<object-name>COMchan</object-name>
<object-name>COMvol</object-name>
<object-name>CommStby100K</object-name>
<object-name>CommStby100M</object-name>
<object-name>CommStby10K</object-name>
<object-name>CommStby10M</object-name>
<object-name>CommStby1K</object-name>
<object-name>CommStby1M</object-name>
<object-name>CommStbyDot</object-name>
<object-name>CommUse</object-name>
<object-name>CommUse100K</object-name>
<object-name>CommUse100M</object-name>
<object-name>CommUse10K</object-name>
<object-name>CommUse10M</object-name>
<object-name>CommUse1K</object-name>
<object-name>CommUse1M</object-name>
<object-name>CommUseDot</object-name>
<object-name>NavKnobs</object-name>
<object-name>NavKHz</object-name>
<object-name>NavMHz</object-name>
<object-name>NavToggle</object-name>
<object-name>NavVolume</object-name>
<object-name>NavStby</object-name>
<object-name>NAVknobKHZ</object-name>
<object-name>NAVknobMHZ</object-name>
<object-name>NAVxfer</object-name>
<object-name>NAVmode</object-name>
<object-name>NAVvol</object-name>
<object-name>NavStby100K</object-name>
<object-name>NavStby100M</object-name>
<object-name>NavStby10K</object-name>
<object-name>NavStby10M</object-name>
<object-name>NavStby1M</object-name>
<object-name>NavStbyDot</object-name>
<object-name>NavUse</object-name>
<object-name>NavUse100K</object-name>
<object-name>NavUse100M</object-name>
<object-name>NavUse10K</object-name>
<object-name>NavUse10M</object-name>
<object-name>NavUse1M</object-name>
<object-name>NavUseDot</object-name>
<object-name>Chassis</object-name>
<object-name>KX165Line</object-name>
<object-name>KX165</object-name>
<object-name>Screen</object-name>
<property-base>/sim/instrumentation/comm[0]</property-base>
<texture-prop>texture-file</texture-prop>
</animation>
<animation>
<type>select</type>
<object-name>CommUse</object-name>
<object-name>CommStby</object-name>
<object-name>NavUse</object-name>
<object-name>NavStby</object-name>
<object-name>CommStby100K</object-name>
<object-name>CommStby100M</object-name>
<object-name>CommStby10K</object-name>
<object-name>CommStby10M</object-name>
<object-name>CommStby1K</object-name>
<object-name>CommStby1M</object-name>
<object-name>CommStbyDot</object-name>
<object-name>CommUse100K</object-name>
<object-name>CommUse100M</object-name>
<object-name>CommUse10K</object-name>
<object-name>CommUse10M</object-name>
<object-name>CommUse1K</object-name>
<object-name>CommUse1M</object-name>
<object-name>CommUseDot</object-name>
<object-name>NavStby100K</object-name>
<object-name>NavStby100M</object-name>
<object-name>NavStby10K</object-name>
<object-name>NavStby10M</object-name>
<object-name>NavStby1M</object-name>
<object-name>NavStbyDot</object-name>
<object-name>NavUse100K</object-name>
<object-name>NavUse100M</object-name>
<object-name>NavUse10K</object-name>
<object-name>NavUse10M</object-name>
<object-name>NavUse1M</object-name>
<object-name>NavUseDot</object-name>
<object-name>KX165Line</object-name>
<condition>
<property>/sim/model/c172p/lighting/comm0-power</property>
</condition>
@ -232,8 +211,10 @@
<animation>
<type>material</type>
<object-name>CommToggle</object-name>
<object-name>NavToggle</object-name>
<object-name>COMxfer</object-name>
<object-name>COMchan</object-name>
<object-name>NAVxfer</object-name>
<object-name>NAVmode</object-name>
<condition>
<not>
<property>sim/rendering/rembrandt/enabled</property>
@ -249,10 +230,33 @@
<animation>
<type>material</type>
<object-name>CommUse</object-name>
<object-name>CommStby</object-name>
<object-name>NavUse</object-name>
<object-name>NavStby</object-name>
<object-name>CommStby100K</object-name>
<object-name>CommStby100M</object-name>
<object-name>CommStby10K</object-name>
<object-name>CommStby10M</object-name>
<object-name>CommStby1K</object-name>
<object-name>CommStby1M</object-name>
<object-name>CommStbyDot</object-name>
<object-name>CommUse100K</object-name>
<object-name>CommUse100M</object-name>
<object-name>CommUse10K</object-name>
<object-name>CommUse10M</object-name>
<object-name>CommUse1K</object-name>
<object-name>CommUse1M</object-name>
<object-name>CommUseDot</object-name>
<object-name>NavStby100K</object-name>
<object-name>NavStby100M</object-name>
<object-name>NavStby10K</object-name>
<object-name>NavStby10M</object-name>
<object-name>NavStby1M</object-name>
<object-name>NavStbyDot</object-name>
<object-name>NavUse100K</object-name>
<object-name>NavUse100M</object-name>
<object-name>NavUse10K</object-name>
<object-name>NavUse10M</object-name>
<object-name>NavUse1M</object-name>
<object-name>NavUseDot</object-name>
<object-name>KX165Line</object-name>
<condition>
<and>
<not>
@ -271,20 +275,45 @@
<factor-prop>/sim/model/c172p/lighting/comm0</factor-prop>
</emission>
</animation>
<effect>
<inherits-from>Effects/model-transparent</inherits-from>
<object-name>CommUse</object-name>
<object-name>CommStby</object-name>
<object-name>NavUse</object-name>
<object-name>NavStby</object-name>
<object-name>CommStby100K</object-name>
<object-name>CommStby100M</object-name>
<object-name>CommStby10K</object-name>
<object-name>CommStby10M</object-name>
<object-name>CommStby1K</object-name>
<object-name>CommStby1M</object-name>
<object-name>CommStbyDot</object-name>
<object-name>CommUse100K</object-name>
<object-name>CommUse100M</object-name>
<object-name>CommUse10K</object-name>
<object-name>CommUse10M</object-name>
<object-name>CommUse1K</object-name>
<object-name>CommUse1M</object-name>
<object-name>CommUseDot</object-name>
<object-name>NavStby100K</object-name>
<object-name>NavStby100M</object-name>
<object-name>NavStby10K</object-name>
<object-name>NavStby10M</object-name>
<object-name>NavStby1M</object-name>
<object-name>NavStbyDot</object-name>
<object-name>NavUse100K</object-name>
<object-name>NavUse100M</object-name>
<object-name>NavUse10K</object-name>
<object-name>NavUse10M</object-name>
<object-name>NavUse1M</object-name>
<object-name>NavUseDot</object-name>
<object-name>KX165Line</object-name>
<object-name>Screen</object-name>
</effect>
<!-- Comm part -->
<animation>
<type>translate</type>
<object-name>CommToggle</object-name>
<object-name>COMxfer</object-name>
<property alias="../../params/comm-frq-swp"/>
<factor>-0.004</factor>
<factor>-0.003</factor>
<axis>
<x>1</x>
<y>0</y>
@ -361,6 +390,20 @@
<z>0</z>
</axis>
</animation>
<animation>
<type>textranslate</type>
<object-name>CommUse1K</object-name>
<property alias="../../params/comm-frq-selected"/>
<step>0.001</step>
<factor>100</factor>
<bias>0.0001</bias>
<axis>
<x>1</x>
<y>0</y>
<z>0</z>
</axis>
</animation>
<animation>
<type>textranslate</type>
@ -431,13 +474,27 @@
<z>0</z>
</axis>
</animation>
<animation>
<type>textranslate</type>
<object-name>CommStby1K</object-name>
<property alias="../../params/comm-frq-standby"/>
<step>0.001</step>
<factor>100</factor>
<bias>0.0001</bias>
<axis>
<x>1</x>
<y>0</y>
<z>0</z>
</axis>
</animation>
<!-- NAV part -->
<animation>
<type>translate</type>
<object-name>NavToggle</object-name>
<object-name>NAVxfer</object-name>
<property alias="../../params/nav-frq-swp"/>
<factor>-0.004</factor>
<factor>-0.003</factor>
<axis>
<x>1</x>
<y>0</y>
@ -588,7 +645,7 @@
<!-- Knobs and buttons -->
<animation>
<type>translate</type>
<object-name>NavVolume</object-name>
<object-name>NAVvol</object-name>
<property alias="../../params/nav-audio"/>
<factor>0.002</factor>
<axis>
@ -602,7 +659,7 @@
<!-- Comm part -->
<animation>
<type>knob</type>
<object-name>CommVolume</object-name>
<object-name>COMvol</object-name>
<property alias="../../params/comm-volume"/>
<factor>-65</factor>
<axis>
@ -611,9 +668,9 @@
<z>0</z>
</axis>
<center>
<x-m>-0.35003</x-m>
<y-m> 0.05092</y-m>
<z-m> 0.06991</z-m>
<x-m>-0.34939</x-m>
<y-m> 0.05082</y-m>
<z-m> 0.07122</z-m>
</center>
<action>
<binding>
@ -684,9 +741,33 @@
</hovered>
</animation>
<animation>
<type>translate</type>
<object-name>COMknobKHZ</object-name>
<factor>0.005</factor>
<property>instrumentation/comm[0]/channel-mode-selector</property>
<axis>
<x>1</x>
<y>0</y>
<z>0</z>
</axis>
</animation>
<animation>
<type>translate</type>
<object-name>COMchan</object-name>
<factor>-0.001</factor>
<property>instrumentation/comm[0]/channel-button</property>
<axis>
<x>1</x>
<y>0</y>
<z>0</z>
</axis>
</animation>
<animation>
<type>knob</type>
<object-name>CommKHz</object-name>
<object-name>COMknobKHZ</object-name>
<property alias="/params/comm-dial-khz"/>
<factor>-0.25</factor>
<axis>
@ -695,24 +776,11 @@
<z>0</z>
</axis>
<center>
<x-m>-0.34721</x-m>
<y-m> 0.09092</y-m>
<z-m> 0.07191</z-m>
<x-m>-0.34726</x-m>
<y-m> 0.09337</y-m>
<z-m> 0.07401</z-m>
</center>
<action>
<binding>
<condition>
<property alias="../../../../../params/power-comm"/>
</condition>
<command>property-adjust</command>
<property alias="/params/comm-frq-standby"/>
<factor>0.025</factor>
<min>0.0</min>
<max>1.0</max>
<resolution>0.025</resolution>
<wrap>true</wrap>
<mask>decimal</mask>
</binding>
<binding>
<command>property-adjust</command>
<property alias="/params/comm-dial-khz"/>
@ -721,23 +789,52 @@
<max>1440</max>
<wrap>true</wrap>
</binding>
</action>
<increase>
<binding>
<command>nasal</command>
<script>
c172p.increment(0, 1);
</script>
</binding>
<binding>
<command>nasal</command>
<script>c172p.click("kx165-1-dial")</script>
</binding>
</action>
</increase>
<decrease>
<binding>
<command>nasal</command>
<script>
c172p.increment(0, -1);
</script>
</binding>
<binding>
<command>nasal</command>
<script>c172p.click("kx165-1-dial")</script>
</binding>
</decrease>
<shift-action>
<repeatable>0</repeatable>
<binding>
<command>property-cycle</command>
<property>instrumentation/comm[0]/channel-mode-selector</property>
<value>0</value>
<value>1</value>
</binding>
</shift-action>
<hovered>
<binding>
<command>set-tooltip</command>
<tooltip-id>comm1-kHz</tooltip-id>
<label>Adjust COM1 kHz</label>
<label>Adjust COM1 kHz; Shift click to toggle 8.33</label>
</binding>
</hovered>
</animation>
<animation>
<type>knob</type>
<object-name>CommMHz</object-name>
<object-name>COMknobMHZ</object-name>
<property alias="/params/comm-dial-mhz"/>
<factor>-0.25</factor>
<axis>
@ -746,9 +843,9 @@
<z>0</z>
</axis>
<center>
<x-m>-0.34721</x-m>
<y-m> 0.09092</y-m>
<z-m> 0.07191</z-m>
<x-m>-0.34954</x-m>
<y-m> 0.09337</y-m>
<z-m> 0.07401</z-m>
</center>
<action>
<binding>
@ -759,7 +856,7 @@
<property alias="/params/comm-frq-standby"/>
<factor>1</factor>
<min>118.0</min>
<max>137.0</max>
<max>136.99167</max>
<wrap>true</wrap>
<mask>integer</mask>
</binding>
@ -787,7 +884,7 @@
<animation>
<type>pick</type>
<object-name>CommToggle</object-name>
<object-name>COMxfer</object-name>
<visible>true</visible>
<action>
<button>0</button>
@ -830,7 +927,7 @@
<!-- Nav part -->
<animation>
<type>knob</type>
<object-name>NavVolume</object-name>
<object-name>NAVvol</object-name>
<property alias="../../params/nav-volume"/>
<factor>-65</factor>
<axis>
@ -839,9 +936,9 @@
<z>0</z>
</axis>
<center>
<x-m>-0.35003</x-m>
<y-m> 0.13092</y-m>
<z-m>0.06991</z-m>
<x-m>-0.34939</x-m>
<y-m> 0.13118</y-m>
<z-m> 0.07122</z-m>
</center>
<action>
<binding>
@ -890,7 +987,7 @@
<animation>
<type>knob</type>
<object-name>NavKHz</object-name>
<object-name>NAVknobKHZ</object-name>
<property alias="/params/nav-dial-khz"/>
<factor>-0.25</factor>
<axis>
@ -899,9 +996,9 @@
<z>0</z>
</axis>
<center>
<x-m>-0.34568</x-m>
<y-m> 0.17092</y-m>
<z-m> 0.07191</z-m>
<x-m>-0.34726</x-m>
<y-m> 0.17527</y-m>
<z-m> 0.07401</z-m>
</center>
<action>
<binding>
@ -941,7 +1038,7 @@
<animation>
<type>knob</type>
<object-name>NavMHz</object-name>
<object-name>NAVknobMHZ</object-name>
<property alias="/params/nav-dial-mhz"/>
<factor>-0.25</factor>
<axis>
@ -950,9 +1047,9 @@
<z>0</z>
</axis>
<center>
<x-m>-0.34568</x-m>
<y-m> 0.17092</y-m>
<z-m> 0.07191</z-m>
<x-m>-0.34954</x-m>
<y-m> 0.17527</y-m>
<z-m> 0.07401</z-m>
</center>
<action>
<binding>
@ -991,7 +1088,7 @@
<animation>
<type>pick</type>
<object-name>NavToggle</object-name>
<object-name>NAVxfer</object-name>
<visible>true</visible>
<action>
<button>0</button>

View file

@ -2,8 +2,8 @@
<PropertyList>
<!--
Bendix/King KX155/165 COMM/NAV radio
Use this instrument as COMM1/NAV1 radio
Bendix/King KX155/165 COM/NAV radio
Use this instrument as COM1/NAV1 radio
Created by Torsten Dreyer, October 2008
@ -39,6 +39,7 @@
<comm-dial-mhz>instrumentation/comm[1]/frequencies/dial-mhz</comm-dial-mhz>
<comm-volume>instrumentation/comm[1]/volume-selected</comm-volume>
<comm-test>instrumentation/comm[1]/test-btn</comm-test>
<channel-mode-selector>instrumentation/comm[1]/channel-mode-selector</channel-mode-selector>
<nav-frq-swp>instrumentation/nav[1]/frq-swap-btn</nav-frq-swp>
<nav-frq-selected>instrumentation/nav[1]/frequencies/selected-mhz</nav-frq-selected>
<nav-frq-standby>instrumentation/nav[1]/frequencies/standby-mhz</nav-frq-standby>
@ -52,41 +53,40 @@
<effect>
<inherits-from>../../../../Effects/interior/lm-kx165-2r</inherits-from>
<object-name>CommKnobs</object-name>
<object-name>CommVolume</object-name>
<object-name>NavKnobs</object-name>
<object-name>NavVolume</object-name>
<object-name>CommKHz</object-name>
<object-name>CommMHz</object-name>
<object-name>CommToggle</object-name>
<object-name>CommVolume</object-name>
<object-name>NavKHz</object-name>
<object-name>NavMHz</object-name>
<object-name>NavToggle</object-name>
<object-name>NavVolume</object-name>
<object-name>COMknobKHZ</object-name>
<object-name>COMknobMHZ</object-name>
<object-name>COMxfer</object-name>
<object-name>COMvol</object-name>
<object-name>COMchan</object-name>
<object-name>NAVknobKHZ</object-name>
<object-name>NAVknobMHZ</object-name>
<object-name>NAVxfer</object-name>
<object-name>NAVmode</object-name>
<object-name>NAVvol</object-name>
</effect>
<effect>
<inherits-from>../../../../Effects/interior/lm-kx165-2</inherits-from>
<object-name>CommToggle</object-name>
<object-name>NavToggle</object-name>
<object-name>Chassis</object-name>
<object-name>COMxfer</object-name>
<object-name>COMchan</object-name>
<object-name>NAVxfer</object-name>
<object-name>NAVmode</object-name>
<object-name>KX165</object-name>
</effect>
<effect>
<inherits-from>../../../../Effects/interior/c172p-interior-radiance</inherits-from>
<object-name>CommUse</object-name>
<object-name>CommStby</object-name>
<object-name>NavUse</object-name>
<object-name>NavStby</object-name>
<object-name>CommStby100K</object-name>
<object-name>CommStby100M</object-name>
<object-name>CommStby10K</object-name>
<object-name>CommStby10M</object-name>
<object-name>CommStby1K</object-name>
<object-name>CommStby1M</object-name>
<object-name>CommStbyDot</object-name>
<object-name>CommUse100K</object-name>
<object-name>CommUse100M</object-name>
<object-name>CommUse10K</object-name>
<object-name>CommUse10M</object-name>
<object-name>CommUse1K</object-name>
<object-name>CommUse1M</object-name>
<object-name>CommUseDot</object-name>
<object-name>NavStby100K</object-name>
@ -101,25 +101,23 @@
<object-name>NavUse10M</object-name>
<object-name>NavUse1M</object-name>
<object-name>NavUseDot</object-name>
<object-name>KX165Line</object-name>
<object-name>Screen</object-name>
</effect>
<animation>
<type>material</type>
<object-name>CommToggle</object-name>
<object-name>NavToggle</object-name>
<object-name>Chassis</object-name>
<object-name>CommKnobs</object-name>
<object-name>CommVolume</object-name>
<object-name>NavKnobs</object-name>
<object-name>NavVolume</object-name>
<object-name>CommKHz</object-name>
<object-name>CommMHz</object-name>
<object-name>CommToggle</object-name>
<object-name>CommVolume</object-name>
<object-name>NavKHz</object-name>
<object-name>NavMHz</object-name>
<object-name>NavToggle</object-name>
<object-name>NavVolume</object-name>
<object-name>KX165</object-name>
<object-name>COMknobKHZ</object-name>
<object-name>COMknobMHZ</object-name>
<object-name>COMxfer</object-name>
<object-name>COMchan</object-name>
<object-name>COMvol</object-name>
<object-name>NAVknobKHZ</object-name>
<object-name>NAVknobMHZ</object-name>
<object-name>NAVxfer</object-name>
<object-name>NAVmode</object-name>
<object-name>NAVvol</object-name>
<condition>
<not>
<property>/sim/rendering/shaders/skydome</property>
@ -132,99 +130,80 @@
</emission>
</animation>
<animation>
<object-name>CommKnobs</object-name>
<object-name>CommKHz</object-name>
<object-name>CommMHz</object-name>
<object-name>CommToggle</object-name>
<object-name>CommVolume</object-name>
<object-name>CommStby</object-name>
<object-name>CommStby100K</object-name>
<object-name>CommStby100M</object-name>
<object-name>CommStby10K</object-name>
<object-name>CommStby10M</object-name>
<object-name>CommStby1M</object-name>
<object-name>CommStbyDot</object-name>
<object-name>CommUse</object-name>
<object-name>CommUse100K</object-name>
<object-name>CommUse100M</object-name>
<object-name>CommUse10K</object-name>
<object-name>CommUse10M</object-name>
<object-name>CommUse1M</object-name>
<object-name>CommUseDot</object-name>
<object-name>NavKnobs</object-name>
<object-name>NavKHz</object-name>
<object-name>NavMHz</object-name>
<object-name>NavToggle</object-name>
<object-name>NavVolume</object-name>
<object-name>NavStby</object-name>
<object-name>NavStby100K</object-name>
<object-name>NavStby100M</object-name>
<object-name>NavStby10K</object-name>
<object-name>NavStby10M</object-name>
<object-name>NavStby1M</object-name>
<object-name>NavStbyDot</object-name>
<object-name>NavUse</object-name>
<object-name>NavUse100K</object-name>
<object-name>NavUse100M</object-name>
<object-name>NavUse10K</object-name>
<object-name>NavUse10M</object-name>
<object-name>NavUse1M</object-name>
<object-name>NavUseDot</object-name>
<object-name>Chassis</object-name>
</animation>
<animation>
<type>material</type>
<object-name>CommKnobs</object-name>
<object-name>CommKHz</object-name>
<object-name>CommMHz</object-name>
<object-name>CommToggle</object-name>
<object-name>CommVolume</object-name>
<object-name>CommStby</object-name>
<object-name>COMknobKHZ</object-name>
<object-name>COMknobMHZ</object-name>
<object-name>COMxfer</object-name>
<object-name>COMchan</object-name>
<object-name>COMvol</object-name>
<object-name>CommStby100K</object-name>
<object-name>CommStby100M</object-name>
<object-name>CommStby10K</object-name>
<object-name>CommStby10M</object-name>
<object-name>CommStby1K</object-name>
<object-name>CommStby1M</object-name>
<object-name>CommStbyDot</object-name>
<object-name>CommUse</object-name>
<object-name>CommUse100K</object-name>
<object-name>CommUse100M</object-name>
<object-name>CommUse10K</object-name>
<object-name>CommUse10M</object-name>
<object-name>CommUse1K</object-name>
<object-name>CommUse1M</object-name>
<object-name>CommUseDot</object-name>
<object-name>NavKnobs</object-name>
<object-name>NavKHz</object-name>
<object-name>NavMHz</object-name>
<object-name>NavToggle</object-name>
<object-name>NavVolume</object-name>
<object-name>NavStby</object-name>
<object-name>NAVknobKHZ</object-name>
<object-name>NAVknobMHZ</object-name>
<object-name>NAVxfer</object-name>
<object-name>NAVmode</object-name>
<object-name>NAVvol</object-name>
<object-name>NavStby100K</object-name>
<object-name>NavStby100M</object-name>
<object-name>NavStby10K</object-name>
<object-name>NavStby10M</object-name>
<object-name>NavStby1M</object-name>
<object-name>NavStbyDot</object-name>
<object-name>NavUse</object-name>
<object-name>NavUse100K</object-name>
<object-name>NavUse100M</object-name>
<object-name>NavUse10K</object-name>
<object-name>NavUse10M</object-name>
<object-name>NavUse1M</object-name>
<object-name>NavUseDot</object-name>
<object-name>Chassis</object-name>
<object-name>KX165Line</object-name>
<object-name>KX165</object-name>
<object-name>Screen</object-name>
<property-base>/sim/instrumentation/comm[1]</property-base>
<texture-prop>texture-file</texture-prop>
</animation>
<animation>
<type>select</type>
<object-name>CommUse</object-name>
<object-name>CommStby</object-name>
<object-name>NavUse</object-name>
<object-name>NavStby</object-name>
<object-name>CommStby100K</object-name>
<object-name>CommStby100M</object-name>
<object-name>CommStby10K</object-name>
<object-name>CommStby10M</object-name>
<object-name>CommStby1K</object-name>
<object-name>CommStby1M</object-name>
<object-name>CommStbyDot</object-name>
<object-name>CommUse100K</object-name>
<object-name>CommUse100M</object-name>
<object-name>CommUse10K</object-name>
<object-name>CommUse10M</object-name>
<object-name>CommUse1K</object-name>
<object-name>CommUse1M</object-name>
<object-name>CommUseDot</object-name>
<object-name>NavStby100K</object-name>
<object-name>NavStby100M</object-name>
<object-name>NavStby10K</object-name>
<object-name>NavStby10M</object-name>
<object-name>NavStby1M</object-name>
<object-name>NavStbyDot</object-name>
<object-name>NavUse100K</object-name>
<object-name>NavUse100M</object-name>
<object-name>NavUse10K</object-name>
<object-name>NavUse10M</object-name>
<object-name>NavUse1M</object-name>
<object-name>NavUseDot</object-name>
<object-name>KX165Line</object-name>
<condition>
<property>/sim/model/c172p/lighting/comm1-power</property>
</condition>
@ -232,8 +211,10 @@
<animation>
<type>material</type>
<object-name>CommToggle</object-name>
<object-name>NavToggle</object-name>
<object-name>COMxfer</object-name>
<object-name>COMchan</object-name>
<object-name>NAVxfer</object-name>
<object-name>NAVmode</object-name>
<condition>
<not>
<property>sim/rendering/rembrandt/enabled</property>
@ -249,10 +230,33 @@
<animation>
<type>material</type>
<object-name>CommUse</object-name>
<object-name>CommStby</object-name>
<object-name>NavUse</object-name>
<object-name>NavStby</object-name>
<object-name>CommStby100K</object-name>
<object-name>CommStby100M</object-name>
<object-name>CommStby10K</object-name>
<object-name>CommStby10M</object-name>
<object-name>CommStby1K</object-name>
<object-name>CommStby1M</object-name>
<object-name>CommStbyDot</object-name>
<object-name>CommUse100K</object-name>
<object-name>CommUse100M</object-name>
<object-name>CommUse10K</object-name>
<object-name>CommUse10M</object-name>
<object-name>CommUse1K</object-name>
<object-name>CommUse1M</object-name>
<object-name>CommUseDot</object-name>
<object-name>NavStby100K</object-name>
<object-name>NavStby100M</object-name>
<object-name>NavStby10K</object-name>
<object-name>NavStby10M</object-name>
<object-name>NavStby1M</object-name>
<object-name>NavStbyDot</object-name>
<object-name>NavUse100K</object-name>
<object-name>NavUse100M</object-name>
<object-name>NavUse10K</object-name>
<object-name>NavUse10M</object-name>
<object-name>NavUse1M</object-name>
<object-name>NavUseDot</object-name>
<object-name>KX165Line</object-name>
<condition>
<and>
<not>
@ -271,20 +275,45 @@
<factor-prop>/sim/model/c172p/lighting/comm1</factor-prop>
</emission>
</animation>
<effect>
<inherits-from>Effects/model-transparent</inherits-from>
<object-name>CommUse</object-name>
<object-name>CommStby</object-name>
<object-name>NavUse</object-name>
<object-name>NavStby</object-name>
<object-name>CommStby100K</object-name>
<object-name>CommStby100M</object-name>
<object-name>CommStby10K</object-name>
<object-name>CommStby10M</object-name>
<object-name>CommStby1K</object-name>
<object-name>CommStby1M</object-name>
<object-name>CommStbyDot</object-name>
<object-name>CommUse100K</object-name>
<object-name>CommUse100M</object-name>
<object-name>CommUse10K</object-name>
<object-name>CommUse10M</object-name>
<object-name>CommUse1K</object-name>
<object-name>CommUse1M</object-name>
<object-name>CommUseDot</object-name>
<object-name>NavStby100K</object-name>
<object-name>NavStby100M</object-name>
<object-name>NavStby10K</object-name>
<object-name>NavStby10M</object-name>
<object-name>NavStby1M</object-name>
<object-name>NavStbyDot</object-name>
<object-name>NavUse100K</object-name>
<object-name>NavUse100M</object-name>
<object-name>NavUse10K</object-name>
<object-name>NavUse10M</object-name>
<object-name>NavUse1M</object-name>
<object-name>NavUseDot</object-name>
<object-name>KX165Line</object-name>
<object-name>Screen</object-name>
</effect>
<!-- Comm part -->
<!-- comm part -->
<animation>
<type>translate</type>
<object-name>CommToggle</object-name>
<object-name>COMxfer</object-name>
<property alias="../../params/comm-frq-swp"/>
<factor>-0.004</factor>
<factor>-0.003</factor>
<axis>
<x>1</x>
<y>0</y>
@ -361,6 +390,20 @@
<z>0</z>
</axis>
</animation>
<animation>
<type>textranslate</type>
<object-name>CommUse1K</object-name>
<property alias="../../params/comm-frq-selected"/>
<step>0.001</step>
<factor>100</factor>
<bias>0.0001</bias>
<axis>
<x>1</x>
<y>0</y>
<z>0</z>
</axis>
</animation>
<animation>
<type>textranslate</type>
@ -431,13 +474,27 @@
<z>0</z>
</axis>
</animation>
<animation>
<type>textranslate</type>
<object-name>CommStby1K</object-name>
<property alias="../../params/comm-frq-standby"/>
<step>0.001</step>
<factor>100</factor>
<bias>0.0001</bias>
<axis>
<x>1</x>
<y>0</y>
<z>0</z>
</axis>
</animation>
<!-- NAV part -->
<animation>
<type>translate</type>
<object-name>NavToggle</object-name>
<object-name>NAVxfer</object-name>
<property alias="../../params/nav-frq-swp"/>
<factor>-0.004</factor>
<factor>-0.003</factor>
<axis>
<x>1</x>
<y>0</y>
@ -585,10 +642,9 @@
</axis>
</animation>
<!-- Knobs and buttons -->
<animation>
<type>translate</type>
<object-name>NavVolume</object-name>
<object-name>NAVvol</object-name>
<property alias="../../params/nav-audio"/>
<factor>0.002</factor>
<axis>
@ -597,12 +653,12 @@
<z>0</z>
</axis>
</animation>
<!-- Actions -->
<!-- Comm part -->
<animation>
<type>knob</type>
<object-name>CommVolume</object-name>
<object-name>COMvol</object-name>
<property alias="../../params/comm-volume"/>
<factor>-65</factor>
<axis>
@ -611,9 +667,9 @@
<z>0</z>
</axis>
<center>
<x-m>-0.34509</x-m>
<y-m> 0.05097</y-m>
<z-m> 0.01597</z-m>
<x-m>-0.34939</x-m>
<y-m> 0.05132</y-m>
<z-m> 0.01737</z-m>
</center>
<action>
<binding>
@ -684,9 +740,33 @@
</hovered>
</animation>
<animation>
<type>translate</type>
<object-name>COMknobKHZ</object-name>
<factor>0.005</factor>
<property>instrumentation/comm[1]/channel-mode-selector</property>
<axis>
<x>1</x>
<y>0</y>
<z>0</z>
</axis>
</animation>
<animation>
<type>translate</type>
<object-name>COMchan</object-name>
<factor>-0.001</factor>
<property>instrumentation/comm[1]/channel-button</property>
<axis>
<x>1</x>
<y>0</y>
<z>0</z>
</axis>
</animation>
<animation>
<type>knob</type>
<object-name>CommKHz</object-name>
<object-name>COMknobKHZ</object-name>
<property alias="/params/comm-dial-khz"/>
<factor>-0.25</factor>
<axis>
@ -695,24 +775,11 @@
<z>0</z>
</axis>
<center>
<x-m>-0.34727</x-m>
<y-m> 0.09097</y-m>
<z-m> 0.01797</z-m>
<x-m>-0.34726</x-m>
<y-m> 0.09336</y-m>
<z-m> 0.02016</z-m>
</center>
<action>
<binding>
<condition>
<property alias="../../../../../params/power-comm"/>
</condition>
<command>property-adjust</command>
<property alias="/params/comm-frq-standby"/>
<factor>0.025</factor>
<min>0.0</min>
<max>1.0</max>
<resolution>0.025</resolution>
<wrap>true</wrap>
<mask>decimal</mask>
</binding>
<binding>
<command>property-adjust</command>
<property alias="/params/comm-dial-khz"/>
@ -721,23 +788,52 @@
<max>1440</max>
<wrap>true</wrap>
</binding>
</action>
<increase>
<binding>
<command>nasal</command>
<script>
c172p.increment(1, 1);
</script>
</binding>
<binding>
<command>nasal</command>
<script>c172p.click("kx165-2-dial")</script>
</binding>
</action>
</increase>
<decrease>
<binding>
<command>nasal</command>
<script>
c172p.increment(1, -1);
</script>
</binding>
<binding>
<command>nasal</command>
<script>c172p.click("kx165-2-dial")</script>
</binding>
</decrease>
<shift-action>
<repeatable>0</repeatable>
<binding>
<command>property-cycle</command>
<property>instrumentation/comm[1]/channel-mode-selector</property>
<value>0</value>
<value>1</value>
</binding>
</shift-action>
<hovered>
<binding>
<command>set-tooltip</command>
<tooltip-id>comm2-kHz</tooltip-id>
<label>Adjust COM2 kHz</label>
<label>Adjust COM2 kHz; Shift click to toggle 8.33</label>
</binding>
</hovered>
</animation>
<animation>
<type>knob</type>
<object-name>CommMHz</object-name>
<object-name>COMknobMHZ</object-name>
<property alias="/params/comm-dial-mhz"/>
<factor>-0.25</factor>
<axis>
@ -746,9 +842,9 @@
<z>0</z>
</axis>
<center>
<x-m>-0.34727</x-m>
<y-m> 0.09097</y-m>
<z-m> 0.01797</z-m>
<x-m>-0.34954</x-m>
<y-m> 0.09337</y-m>
<z-m> 0.02016</z-m>
</center>
<action>
<binding>
@ -759,7 +855,7 @@
<property alias="/params/comm-frq-standby"/>
<factor>1</factor>
<min>118.0</min>
<max>137.0</max>
<max>136.99167</max>
<wrap>true</wrap>
<mask>integer</mask>
</binding>
@ -787,7 +883,7 @@
<animation>
<type>pick</type>
<object-name>CommToggle</object-name>
<object-name>COMxfer</object-name>
<visible>true</visible>
<action>
<button>0</button>
@ -821,7 +917,7 @@
<hovered>
<binding>
<command>set-tooltip</command>
<tooltip-id>comm2-toggle</tooltip-id>
<tooltip-id>comm1-toggle</tooltip-id>
<label>Swap COM2 frequencies</label>
</binding>
</hovered>
@ -830,7 +926,7 @@
<!-- Nav part -->
<animation>
<type>knob</type>
<object-name>NavVolume</object-name>
<object-name>NAVvol</object-name>
<property alias="../../params/nav-volume"/>
<factor>-65</factor>
<axis>
@ -839,9 +935,9 @@
<z>0</z>
</axis>
<center>
<x-m>-0.35009</x-m>
<y-m> 0.13097</y-m>
<z-m> 0.01597</z-m>
<x-m>-0.34939</x-m>
<y-m> 0.13118</y-m>
<z-m> 0.01737</z-m>
</center>
<action>
<binding>
@ -866,7 +962,7 @@
<hovered>
<binding>
<command>set-tooltip</command>
<tooltip-id>nav2-volume</tooltip-id>
<tooltip-id>nav1-volume</tooltip-id>
<label>%s</label>
<measure-text>NAV2 Volume: 100% ; Ident disabled (Shift + click to pull)</measure-text>
<property alias="../../../../params/nav-volume"/>
@ -890,7 +986,7 @@
<animation>
<type>knob</type>
<object-name>NavKHz</object-name>
<object-name>NAVknobKHZ</object-name>
<property alias="/params/nav-dial-khz"/>
<factor>-0.25</factor>
<axis>
@ -899,9 +995,9 @@
<z>0</z>
</axis>
<center>
<x-m>-0.34574</x-m>
<y-m> 0.17097</y-m>
<z-m> 0.01797</z-m>
<x-m>-0.34726</x-m>
<y-m> 0.17527</y-m>
<z-m> 0.02016</z-m>
</center>
<action>
<binding>
@ -933,7 +1029,7 @@
<hovered>
<binding>
<command>set-tooltip</command>
<tooltip-id>nav2-kHz</tooltip-id>
<tooltip-id>nav1-kHz</tooltip-id>
<label>Adjust NAV2 kHz</label>
</binding>
</hovered>
@ -941,7 +1037,7 @@
<animation>
<type>knob</type>
<object-name>NavMHz</object-name>
<object-name>NAVknobMHZ</object-name>
<property alias="/params/nav-dial-mhz"/>
<factor>-0.25</factor>
<axis>
@ -950,9 +1046,9 @@
<z>0</z>
</axis>
<center>
<x-m>-0.34574</x-m>
<y-m> 0.17097</y-m>
<z-m> 0.01797</z-m>
<x-m>-0.34954</x-m>
<y-m> 0.17527</y-m>
<z-m> 0.02016</z-m>
</center>
<action>
<binding>
@ -991,7 +1087,7 @@
<animation>
<type>pick</type>
<object-name>NavToggle</object-name>
<object-name>NAVxfer</object-name>
<visible>true</visible>
<action>
<button>0</button>
@ -1008,7 +1104,7 @@
</binding>
<binding>
<command>nasal</command>
<script>c172p.click("kx165-2")</script>
<script>c172p.click("kx165-1")</script>
</binding>
<mod-up>
<binding>
@ -1025,7 +1121,7 @@
<hovered>
<binding>
<command>set-tooltip</command>
<tooltip-id>nav2-toggle</tooltip-id>
<tooltip-id>nav1-toggle</tooltip-id>
<label>Swap NAV2 frequencies</label>
</binding>
</hovered>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 41 KiB

View file

@ -15,7 +15,7 @@ MATERIAL "exterior-parts.003" rgb 0.640 0.640 0.640 amb 1.000 1.000 1.000 emis
MATERIAL "mat_antenna" rgb 0.712 0.712 0.712 amb 0.890 0.890 0.890 emis 0.000 0.000 0.000 spec 0.500 0.500 0.500 shi 12 trans 0.000
MATERIAL "glass-exterior" rgb 0.648 1.000 0.709 amb 1.000 1.000 1.000 emis 0.000 0.000 0.000 spec 0.599 1.000 1.000 shi 12 trans 0.800
MATERIAL "Material.Glass" rgb 1.000 1.000 1.000 amb 1.000 1.000 1.000 emis 0.000 0.000 0.000 spec 1.000 1.000 1.000 shi 12 trans 0.655
MATERIAL "Panel.Glass" rgb 0.014 0.014 0.014 amb 0.500 0.500 0.500 emis 0.000 0.000 0.000 spec 0.844 0.844 0.844 shi 5 trans 0.850
MATERIAL "Panel.Glass.001" rgb 0.014 0.014 0.014 amb 0.500 0.500 0.500 emis 0.000 0.000 0.000 spec 0.844 0.844 0.844 shi 5 trans 0.850
MATERIAL "mat_panels_rack_base" rgb 0.800 0.684 0.600 amb 1.000 1.000 1.000 emis 0.000 0.000 0.000 spec 0.216 0.216 0.216 shi 2 trans 0.000
MATERIAL "visors" rgb 0.640 0.640 0.640 amb 1.000 1.000 1.000 emis 0.000 0.000 0.000 spec 0.500 0.500 0.500 shi 12 trans 0.000
MATERIAL "glareshield" rgb 0.012 0.012 0.012 amb 1.000 1.000 1.000 emis 0.000 0.000 0.000 spec 0.776 0.776 0.776 shi 64 trans 0.000
@ -71208,7 +71208,7 @@ kids 0
OBJECT poly
name "glass_panel"
data 10
Circle.014
Circle.015
crease 180.0
numvert 513
-0.36977 0.02208 0.06724
@ -71690,14 +71690,6 @@ numvert 513
-0.34967 0.03191 -0.11597
-0.34967 0.05254 -0.18965
-0.34967 0.03198 -0.18957
-0.34967 0.10657 -0.03593
-0.34967 0.08589 -0.03593
-0.34967 0.10652 -0.1096
-0.34967 0.08597 -0.10952
-0.34967 0.10657 -0.11597
-0.34967 0.08589 -0.11597
-0.34967 0.10652 -0.18965
-0.34967 0.08597 -0.18957
-0.35218 -0.08221 -0.05833
-0.35218 -0.10049 -0.05833
-0.35218 -0.08225 -0.14815
@ -71724,6 +71716,14 @@ numvert 513
-0.35648 0.03007 -0.40629
-0.35648 0.03569 -0.43268
-0.35648 0.03009 -0.43265
-0.34911 0.10568 -0.03567
-0.34911 0.08624 -0.03567
-0.34911 0.10563 -0.18902
-0.34911 0.08632 -0.18894
-0.34911 0.05151 -0.03567
-0.34911 0.03207 -0.03567
-0.34911 0.05146 -0.18902
-0.34911 0.03215 -0.18894
numsurf 25
SURF 0X10
mat 16
@ -72261,58 +72261,58 @@ refs 4
SURF 0X0
mat 16
refs 4
480 0.238006 0.987558
482 0.238277 0.73561
481 0.307519 0.735342
479 0.307657 0.987558
SURF 0X0
mat 16
refs 4
484 0.876815 0.265151
486 0.877086 0.013203
485 0.946328 0.012935
483 0.946466 0.265151
SURF 0X0
mat 16
refs 4
488 0.815238 0.320389
490 0.815598 0.01324
489 0.876815 0.012935
487 0.876815 0.32041
480 0.815238 0.320389
482 0.815598 0.01324
481 0.876815 0.012935
479 0.876815 0.32041
SURF 0X0
mat 16
refs 10
496 0.723538 0.260261
497 0.723538 0.035975
498 0.742945 0.012935
491 0.796492 0.013389
492 0.815238 0.035939
499 0.815238 0.070373
500 0.815238 0.128039
493 0.815238 0.26154
494 0.798547 0.281905
495 0.741095 0.281905
488 0.723538 0.260261
489 0.723538 0.035975
490 0.742945 0.012935
483 0.796492 0.013389
484 0.815238 0.035939
491 0.815238 0.070373
492 0.815238 0.128039
485 0.815238 0.26154
486 0.798547 0.281905
487 0.741095 0.281905
SURF 0X0
mat 16
refs 4
502 0.948794 1
504 0.949094 0.49508
503 1 0.494542
501 1 0.999999
494 0.948794 1
496 0.949094 0.49508
495 1 0.494542
493 1 0.999999
SURF 0X0
mat 16
refs 4
506 0.946466 0.327345
508 0.946624 0.013271
507 0.973496 0.012935
505 0.973496 0.327342
498 0.946466 0.327345
500 0.946624 0.013271
499 0.973496 0.012935
497 0.973496 0.327342
SURF 0X0
mat 16
refs 4
510 0.307657 0.825695
512 0.307771 0.735433
511 0.326626 0.735342
509 0.326626 0.825702
502 0.307657 0.825695
504 0.307771 0.735433
503 0.326626 0.735342
501 0.326626 0.825702
SURF 0X0
mat 16
refs 4
506 0.001415 0.764058
508 0.199701 0.764334
507 0.198987 0.841427
505 0.002351 0.841606
SURF 0X0
mat 16
refs 4
510 0.001415 0.764058
512 0.199701 0.764334
511 0.198987 0.841427
509 0.002351 0.841606
kids 0
OBJECT group
name "GROUP_FrontPanels"

View file

@ -164,31 +164,48 @@
<z-m> 0.08948</z-m>
<heading-deg>-19.0</heading-deg>
</offsets>
<condition>
<not>
<equals>
<property alias="/params/bushkit"/>
<value>4</value>
</equals>
</not>
</condition>
</model>
<animation>
<type>translate</type>
<object-name>Garmin196-GPS-non-Canvas</object-name>
<property>/Interior/Panel/Instruments/garmin196/move</property>
<factor>0.1</factor>
<axis>
<x>0.0</x>
<y>1.0</y>
<z>0.0</z>
</axis>
</animation>
<!-- Canvas local Garmin 196 GPS -->
<!--<model>
<name>Garmin196-GPS</name>
<path>Interior/Panel/garmin196/garmin196.xml</path>
<offsets>
<x-m>-0.4</x-m>
<y-m>0.36</y-m>
<z-m>0.205</z-m>
<heading-deg>-12.0</heading-deg>
</offsets>
</model>
<model>
<name>Garmin196-GPS-non-Canvas</name>
<path>Interior/Panel/Instruments/garmin196/garmin196.xml</path>
<name>Garmin196-GPS-support</name>
<path>Interior/Panel/garmin196/garmin196_support.xml</path>
<offsets>
<x-m>-0.305</x-m>
<y-m> 0.36584</y-m>
<z-m> 0.08948</z-m>
<heading-deg>-19.0</heading-deg>
<x-m>-0.4</x-m>
<y-m>0.36</y-m>
<z-m>0.205</z-m>
<heading-deg>-12.0</heading-deg>
</offsets>
<condition>
<equals>
<property alias="/params/bushkit"/>
<value>4</value>
</equals>
</condition>
</model>
<animation>
<type>select</type>
<object-name>Garmin196-GPS</object-name>
<object-name>Garmin196-GPS-support</object-name>
<condition>
<property>/sim/model/c172p/garmin196-visible</property>
</condition>
</animation>-->
<model>
<name>GPS-Model</name>
@ -316,36 +333,6 @@
</condition>
</animation>
<!-- Canvas local Garmin 196 GPS -->
<!--<model>
<name>Garmin196-GPS</name>
<path>Interior/Panel/garmin196/garmin196.xml</path>
<offsets>
<x-m>-0.4</x-m>
<y-m>0.36</y-m>
<z-m>0.205</z-m>
<heading-deg>-12.0</heading-deg>
</offsets>
</model>
<model>
<name>Garmin196-GPS-support</name>
<path>Interior/Panel/garmin196/garmin196_support.xml</path>
<offsets>
<x-m>-0.4</x-m>
<y-m>0.36</y-m>
<z-m>0.205</z-m>
<heading-deg>-12.0</heading-deg>
</offsets>
</model>
<animation>
<type>select</type>
<object-name>Garmin196-GPS</object-name>
<object-name>Garmin196-GPS-support</object-name>
<condition>
<property>/sim/model/c172p/garmin196-visible</property>
</condition>
</animation>-->
<nasal>
<load>
var livery_update = aircraft.livery_update.new(

View file

@ -45,6 +45,7 @@ aircraft.data.add(
"instrumentation/comm[0]/frequencies/dial-khz",
"instrumentation/comm[0]/frequencies/dial-mhz",
"instrumentation/comm[0]/test-btn",
"instrumentation/comm[0]/channel-mode-selector",
"instrumentation/nav[0]/ident-audible",
"instrumentation/nav[0]/power-btn",
"instrumentation/nav[0]/volume",
@ -64,6 +65,7 @@ aircraft.data.add(
"instrumentation/comm[1]/frequencies/dial-khz",
"instrumentation/comm[1]/frequencies/dial-mhz",
"instrumentation/comm[1]/test-btn",
"instrumentation/comm[0]/channel-mode-selector",
"instrumentation/nav[1]/ident-audible",
"instrumentation/nav[1]/power-btn",
"instrumentation/nav[1]/volume",

View file

@ -0,0 +1,43 @@
# Code to handle 8.33 khz for the KX165A radio
var increment = func(index, direction) {
var selector = getprop("instrumentation/comm[" ~ index ~ "]/channel-mode-selector");
if (selector == 1) {
setprop("instrumentation/comm[" ~ index ~ "]/frequencies/standby-channel", getprop("instrumentation/comm[" ~ index ~ "]/frequencies/standby-channel") + direction);
} elsif (selector == 0) {
setprop("instrumentation/comm[" ~ index ~ "]/frequencies/standby-channel", getprop("instrumentation/comm[" ~ index ~ "]/frequencies/standby-channel") + (direction * 4));
}
}
setlistener("/instrumentation/comm[0]/channel-mode-selector", func() {
if (getprop("/instrumentation/comm[0]/channel-mode-selector") == 0) {
var result = math.round(getprop("/instrumentation/comm[0]/frequencies/standby-channel") / 4) * 4;
setprop("/instrumentation/comm[0]/frequencies/standby-channel", result);
var result = math.round(getprop("/instrumentation/comm[0]/frequencies/selected-channel") / 4) * 4;
setprop("/instrumentation/comm[0]/frequencies/selected-channel", result);
}
}, 0, 0);
setlistener("/instrumentation/comm[1]/channel-mode-selector", func() {
if (getprop("/instrumentation/comm[1]/channel-mode-selector") == 0) {
var result = math.round(getprop("/instrumentation/comm[1]/frequencies/standby-channel") / 4) * 4;
setprop("/instrumentation/comm[1]/frequencies/standby-channel", result);
var result = math.round(getprop("/instrumentation/comm[1]/frequencies/selected-channel") / 4) * 4;
setprop("/instrumentation/comm[1]/frequencies/selected-channel", result);
}
}, 0, 0);
var hackListener = setlistener("/sim/signals/fdm-initialized", func() {
# a dirty hack but it works. It triggers the above setlisteners on startup (passing the startup argument did not work)
# in case a 8.33 frequency has been saved but 25k is selected on startup
var selector = getprop("instrumentation/comm[0]/channel-mode-selector");
setprop("/instrumentation/comm[0]/channel-mode-selector", 2);
setprop("/instrumentation/comm[0]/channel-mode-selector", selector);
var selector = getprop("instrumentation/comm[1]/channel-mode-selector");
setprop("/instrumentation/comm[1]/channel-mode-selector", 2);
setprop("/instrumentation/comm[1]/channel-mode-selector", selector);
# after the first startup we don't need this
removelistener(hackListener);
});

View file

@ -123,25 +123,26 @@ var tiedown_left_updater = TiedownPositionUpdater.new("left");
var tiedown_right_updater = TiedownPositionUpdater.new("right");
var tiedown_tail_updater = TiedownPositionUpdater.new("tail");
setlistener("/sim/model/c172p/securing/tiedownL-visible", func (node) {
tiedown_left_updater.enable_or_disable(node.getValue());
}, 1, 0);
setlistener("/sim/signals/fdm-initialized", func {
setlistener("/sim/model/c172p/securing/tiedownL-visible", func (node) {
tiedown_left_updater.enable_or_disable(node.getValue());
}, 1, 0);
setlistener("/sim/model/c172p/securing/tiedownR-visible", func (node) {
tiedown_right_updater.enable_or_disable(node.getValue());
}, 1, 0);
setlistener("/sim/model/c172p/securing/tiedownR-visible", func (node) {
tiedown_right_updater.enable_or_disable(node.getValue());
}, 1, 0);
setlistener("/sim/model/c172p/securing/tiedownT-visible", func (node) {
tiedown_tail_updater.enable_or_disable(node.getValue());
}, 1, 0);
setlistener("/fdm/jsbsim/damage/repairing", func (node) {
# When the aircraft has been repaired (value is switched back
# to 0), compute the new initial length of the tiedowns
if (!node.getValue()) {
tiedown_left_updater.init_ref_length();
tiedown_right_updater.init_ref_length();
tiedown_tail_updater.init_ref_length();
}
}, 0, 0);
setlistener("/sim/model/c172p/securing/tiedownT-visible", func (node) {
tiedown_tail_updater.enable_or_disable(node.getValue());
}, 1, 0);
setlistener("/fdm/jsbsim/damage/repairing", func (node) {
# When the aircraft has been repaired (value is switched back
# to 0), compute the new initial length of the tiedowns
if (!node.getValue()) {
tiedown_left_updater.init_ref_length();
tiedown_right_updater.init_ref_length();
tiedown_tail_updater.init_ref_length();
}
}, 0, 0);
});

View file

@ -183,6 +183,16 @@ Extra weight and drag due to bush wheels, floats and aircraft with 180 hp engine
</switch>
</channel>
<channel name="GPS-placement">
<switch name="gps-placement">
<default value="0"/>
<test logic="AND" value="1">
bushkit EQ 4
</test>
<output>/Interior/Panel/Instruments/garmin196/move</output>
</switch>
</channel>
<channel name="JSBSim hydrodynamics integration">
<fcs_function name="tmp/floats-enabled-norm">
<function>

View file

@ -142,11 +142,13 @@ file, these values will be used (they are hardcoded).
<comm-radio>
<name>comm</name>
<number>0</number>
<eight-point-three>1</eight-point-three>
</comm-radio>
<comm-radio>
<name>comm</name>
<number>1</number>
<eight-point-three>1</eight-point-three>
</comm-radio>
<nav-radio>

View file

@ -764,6 +764,7 @@ http://forum.flightgear.org/viewtopic.php?f=4&t=25157
<dial-mhz type="int">0</dial-mhz>
</frequencies>
<volume-selected type="double">0.7</volume-selected>
<channel-mode-selector type="bool">1</channel-mode-selector>
</comm>
<comm n="1">
<power-btn type="bool">1</power-btn>
@ -772,6 +773,7 @@ http://forum.flightgear.org/viewtopic.php?f=4&t=25157
<dial-mhz type="int">0</dial-mhz>
</frequencies>
<volume-selected type="double">0.7</volume-selected>
<channel-mode-selector type="bool">1</channel-mode-selector>
</comm>
<nav n="0">
<volume type="double">0.7</volume>
@ -944,6 +946,7 @@ http://forum.flightgear.org/viewtopic.php?f=4&t=25157
<file>Nasal/tanks.nas</file>
<file>Nasal/kma20.nas</file>
<file>Nasal/ki266.nas</file>
<file>Nasal/kx165a.nas</file>
<file>Nasal/engine.nas</file>
<file>Nasal/avionics.nas</file>
<file>Nasal/interior-lighting.nas</file>