Aerostar balance fix ...
nasal file corrections ...
This commit is contained in:
parent
1e446a26ae
commit
ca5856f86b
4 changed files with 484 additions and 527 deletions
|
@ -33,18 +33,19 @@ GS_DEFLECTION = props.globals.getNode("/instrumentation/nav/gs-needle-deflection
|
|||
HDG = props.globals.getNode("/autopilot/locks/heading",1);
|
||||
ALT = props.globals.getNode("/autopilot/locks/altitude",1);
|
||||
SPD = props.globals.getNode("/autopilot/locks/speed",1);
|
||||
|
||||
|
||||
setlistener("/sim/signals/fdm-initialized", func {
|
||||
fdprop.getNode("serviceable",1).setBoolValue(1);
|
||||
fdprop.getNode("vbar-pitch",1).setValue(0.0);
|
||||
fdprop.getNode("vbar-roll",1).setValue(0.0);
|
||||
fdprop.getNode("vbar-pitch",1).setDoubleValue(0.0);
|
||||
fdprop.getNode("vbar-roll",1).setDoubleValue(0.0);
|
||||
fdprop.getNode("fd-on",1).setBoolValue(0);
|
||||
fdprop.getNode("fdmode",1).setValue("off");
|
||||
fdprop.getNode("fdmodeV",1).setValue("off");
|
||||
fdprop.getNode("alt-offset",1).setValue(0.0);
|
||||
fdprop.getNode("alt-offset",1).setDoubleValue(0.0);
|
||||
fdprop.getNode("alt-alert",1).setBoolValue(0);
|
||||
DH = props.globals.getNode("/autopilot/route-manager/min-lock-altitude-agl-ft").getValue();
|
||||
alt_select = 0;
|
||||
update();
|
||||
print("KFC-200 ... OK");
|
||||
});
|
||||
|
||||
|
@ -163,7 +164,7 @@ update_nav = func {
|
|||
if(V_roll > 30){V_roll = 30;}
|
||||
if(V_roll < -30){V_roll = -30;}
|
||||
fdprop.getNode("vbar-roll",1).setValue(V_roll);
|
||||
}
|
||||
}
|
||||
|
||||
get_altoffset = func{
|
||||
current_alt = props.globals.getNode("/instrumentation/altimeter/indicated-altitude-ft").getValue();
|
||||
|
@ -180,6 +181,5 @@ update = func {
|
|||
get_altoffset();
|
||||
update_nav();
|
||||
settimer(update, 0);
|
||||
}
|
||||
}
|
||||
|
||||
settimer(update, 0);
|
||||
|
|
|
@ -32,7 +32,7 @@ KNS80.getNode("wpt[1]/distance",1).setDoubleValue(7.2);
|
|||
KNS80.getNode("wpt[2]/frequency",1).setDoubleValue(11570);
|
||||
KNS80.getNode("wpt[2]/radial",1).setDoubleValue(270);
|
||||
KNS80.getNode("wpt[2]/distance",1).setDoubleValue(5.8);
|
||||
KNS80.getNode("wpt[3]/frequency",1).setDoubleValue(10800);
|
||||
KNS80.getNode("wpt[3]/frequency",1).setDoubleValue(11000);
|
||||
KNS80.getNode("wpt[3]/radial",1).setDoubleValue(0);
|
||||
KNS80.getNode("wpt[3]/distance",1).setDoubleValue(0.0);
|
||||
FDM_ON = 0;
|
||||
|
|
|
@ -3,512 +3,471 @@
|
|||
|
||||
<PropertyList>
|
||||
|
||||
<name>nav1 hotspots</name>
|
||||
<w-base>160</w-base>
|
||||
<h-base>70</h-base>
|
||||
<w>160</w>
|
||||
<h>70</h>
|
||||
<name>nav1 hotspots</name>
|
||||
<w-base>160</w-base>
|
||||
<h-base>70</h-base>
|
||||
<w>160</w>
|
||||
<h>70</h>
|
||||
|
||||
<layers>
|
||||
</layers>
|
||||
|
||||
<actions>
|
||||
|
||||
<!-- DATA MODE 0 -->
|
||||
|
||||
<action>
|
||||
<name>nav frequency decrease (decimal part)</name>
|
||||
<button>0</button>
|
||||
<x>54</x>
|
||||
<y>-30</y>
|
||||
<w>12</w>
|
||||
<h>16</h>
|
||||
<condition>
|
||||
<equals>
|
||||
<property>instrumentation/kns-80/data-mode</property>
|
||||
<value>0</value>
|
||||
</equals>
|
||||
</condition>
|
||||
<binding>
|
||||
<command>property-adjust</command>
|
||||
<property>instrumentation/kns-80/displayed-frequency</property>
|
||||
<step>-5</step>
|
||||
<min>10800</min>
|
||||
<max>11900</max>
|
||||
<wrap>true</wrap>
|
||||
</binding>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>nav frequency decrease (integer part)</name>
|
||||
<button>1</button>
|
||||
<x>54</x>
|
||||
<y>-30</y>
|
||||
<w>12</w>
|
||||
<h>16</h>
|
||||
<condition>
|
||||
<equals>
|
||||
<property>instrumentation/kns-80/data-mode</property>
|
||||
<value>0</value>
|
||||
</equals>
|
||||
</condition>
|
||||
<binding>
|
||||
<command>property-adjust</command>
|
||||
<property>instrumentation/kns-80/displayed-frequency</property>
|
||||
<step>-100</step>
|
||||
<min>10800</min>
|
||||
<max>11900</max>
|
||||
<wrap>true</wrap>
|
||||
</binding>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>nav frequency increase (decimal part)</name>
|
||||
<button>0</button>
|
||||
<x>66</x>
|
||||
<y>-30</y>
|
||||
<w>12</w>
|
||||
<h>16</h>
|
||||
<condition>
|
||||
<equals>
|
||||
<property>instrumentation/kns-80/data-mode</property>
|
||||
<value>0</value>
|
||||
</equals>
|
||||
</condition>
|
||||
<binding>
|
||||
<command>property-adjust</command>
|
||||
<property>instrumentation/kns-80/displayed-frequency</property>
|
||||
<step>5</step>
|
||||
<min>10800</min>
|
||||
<max>11900</max>
|
||||
<wrap>true</wrap>
|
||||
</binding>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>nav frequency increase (integer part)</name>
|
||||
<button>1</button>
|
||||
<x>66</x>
|
||||
<y>-30</y>
|
||||
<w>12</w>
|
||||
<h>16</h>
|
||||
<condition>
|
||||
<equals>
|
||||
<property>instrumentation/kns-80/data-mode</property>
|
||||
<value>0</value>
|
||||
</equals>
|
||||
</condition>
|
||||
<binding>
|
||||
<command>property-adjust</command>
|
||||
<property>instrumentation/kns-80/displayed-frequency</property>
|
||||
<step>100</step>
|
||||
<min>10800</min>
|
||||
<max>11900</max>
|
||||
<wrap>true</wrap>
|
||||
</binding>
|
||||
</action>
|
||||
|
||||
<!-- DATA MODE 1 -->
|
||||
|
||||
<action>
|
||||
<name>radial decrease small</name>
|
||||
<button>0</button>
|
||||
<x>54</x>
|
||||
<y>-30</y>
|
||||
<w>12</w>
|
||||
<h>16</h>
|
||||
<condition>
|
||||
<equals>
|
||||
<property>instrumentation/kns-80/data-mode</property>
|
||||
<value>1</value>
|
||||
</equals>
|
||||
</condition>
|
||||
<binding>
|
||||
<command>property-adjust</command>
|
||||
<property>instrumentation/kns-80/displayed-radial</property>
|
||||
<step>-1</step>
|
||||
<min>0</min>
|
||||
<max>360</max>
|
||||
<wrap>true</wrap>
|
||||
</binding>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>radial decrease large</name>
|
||||
<button>1</button>
|
||||
<x>54</x>
|
||||
<y>-30</y>
|
||||
<w>12</w>
|
||||
<h>16</h>
|
||||
<condition>
|
||||
<equals>
|
||||
<property>instrumentation/kns-80/data-mode</property>
|
||||
<value>1</value>
|
||||
</equals>
|
||||
</condition>
|
||||
<binding>
|
||||
<command>property-adjust</command>
|
||||
<property>instrumentation/kns-80/displayed-radial</property>
|
||||
<step>-10</step>
|
||||
<min>0</min>
|
||||
<max>360</max>
|
||||
<wrap>true</wrap>
|
||||
</binding>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>radial increase small</name>
|
||||
<button>0</button>
|
||||
<x>66</x>
|
||||
<y>-30</y>
|
||||
<w>12</w>
|
||||
<h>16</h>
|
||||
<condition>
|
||||
<equals>
|
||||
<property>instrumentation/kns-80/data-mode</property>
|
||||
<value>1</value>
|
||||
</equals>
|
||||
</condition>
|
||||
<binding>
|
||||
<command>property-adjust</command>
|
||||
<property>instrumentation/kns-80/displayed-radial</property>
|
||||
<step>1</step>
|
||||
<min>0</min>
|
||||
<max>360</max>
|
||||
<wrap>true</wrap>
|
||||
</binding>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>radial increase large</name>
|
||||
<button>1</button>
|
||||
<x>66</x>
|
||||
<y>-30</y>
|
||||
<w>12</w>
|
||||
<h>16</h>
|
||||
<condition>
|
||||
<equals>
|
||||
<property>instrumentation/kns-80/data-mode</property>
|
||||
<value>1</value>
|
||||
</equals>
|
||||
</condition>
|
||||
<binding>
|
||||
<command>property-adjust</command>
|
||||
<property>instrumentation/kns-80/displayed-radial</property>
|
||||
<step>10</step>
|
||||
<min>0</min>
|
||||
<max>360</max>
|
||||
<wrap>true</wrap>
|
||||
</binding>
|
||||
</action>
|
||||
|
||||
<!-- DATA MODE 2 -->
|
||||
|
||||
<action>
|
||||
<name>distance decrease small</name>
|
||||
<button>0</button>
|
||||
<x>54</x>
|
||||
<y>-30</y>
|
||||
<w>12</w>
|
||||
<h>16</h>
|
||||
<condition>
|
||||
<equals>
|
||||
<property>instrumentation/kns-80/data-mode</property>
|
||||
<value>2</value>
|
||||
</equals>
|
||||
</condition>
|
||||
<binding>
|
||||
<command>property-adjust</command>
|
||||
<property>instrumentation/kns-80/displayed-distance</property>
|
||||
<step>-0.1</step>
|
||||
<min>0</min>
|
||||
<max>100</max>
|
||||
<wrap>true</wrap>
|
||||
</binding>
|
||||
</action>
|
||||
<layers>
|
||||
</layers>
|
||||
|
||||
<actions>
|
||||
|
||||
<!-- DATA MODE 0 -->
|
||||
|
||||
<action>
|
||||
<name>nav frequency decrease (decimal part)</name>
|
||||
<button>0</button>
|
||||
<x>54</x>
|
||||
<y>-30</y>
|
||||
<w>12</w>
|
||||
<h>16</h>
|
||||
<condition>
|
||||
<equals>
|
||||
<property>instrumentation/kns-80/data-mode</property>
|
||||
<value>0</value>
|
||||
</equals>
|
||||
</condition>
|
||||
<binding>
|
||||
<command>property-assign</command>
|
||||
<property>/instrumentation/kns-80/data-adjust</property>
|
||||
<value>-1</value>
|
||||
</binding>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>nav frequency decrease (integer part)</name>
|
||||
<button>1</button>
|
||||
<x>54</x>
|
||||
<y>-30</y>
|
||||
<w>12</w>
|
||||
<h>16</h>
|
||||
<condition>
|
||||
<equals>
|
||||
<property>instrumentation/kns-80/data-mode</property>
|
||||
<value>0</value>
|
||||
</equals>
|
||||
</condition>
|
||||
<binding>
|
||||
<command>property-assign</command>
|
||||
<property>/instrumentation/kns-80/data-adjust</property>
|
||||
<value>-10</value>
|
||||
</binding>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>nav frequency increase (decimal part)</name>
|
||||
<button>0</button>
|
||||
<x>66</x>
|
||||
<y>-30</y>
|
||||
<w>12</w>
|
||||
<h>16</h>
|
||||
<condition>
|
||||
<equals>
|
||||
<property>instrumentation/kns-80/data-mode</property>
|
||||
<value>0</value>
|
||||
</equals>
|
||||
</condition>
|
||||
<binding>
|
||||
<command>property-assign</command>
|
||||
<property>/instrumentation/kns-80/data-adjust</property>
|
||||
<value>1</value>
|
||||
</binding>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>nav frequency increase (integer part)</name>
|
||||
<button>1</button>
|
||||
<x>66</x>
|
||||
<y>-30</y>
|
||||
<w>12</w>
|
||||
<h>16</h>
|
||||
<condition>
|
||||
<equals>
|
||||
<property>instrumentation/kns-80/data-mode</property>
|
||||
<value>0</value>
|
||||
</equals>
|
||||
</condition>
|
||||
<binding>
|
||||
<command>property-assign</command>
|
||||
<property>/instrumentation/kns-80/data-adjust</property>
|
||||
<value>10</value>
|
||||
</binding>
|
||||
</action>
|
||||
|
||||
<!-- DATA MODE 1 -->
|
||||
|
||||
<action>
|
||||
<name>radial decrease small</name>
|
||||
<button>0</button>
|
||||
<x>54</x>
|
||||
<y>-30</y>
|
||||
<w>12</w>
|
||||
<h>16</h>
|
||||
<condition>
|
||||
<equals>
|
||||
<property>instrumentation/kns-80/data-mode</property>
|
||||
<value>1</value>
|
||||
</equals>
|
||||
</condition>
|
||||
<binding>
|
||||
<command>property-assign</command>
|
||||
<property>/instrumentation/kns-80/data-adjust</property>
|
||||
<value>-1</value>
|
||||
</binding>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>radial decrease large</name>
|
||||
<button>1</button>
|
||||
<x>54</x>
|
||||
<y>-30</y>
|
||||
<w>12</w>
|
||||
<h>16</h>
|
||||
<condition>
|
||||
<equals>
|
||||
<property>instrumentation/kns-80/data-mode</property>
|
||||
<value>1</value>
|
||||
</equals>
|
||||
</condition>
|
||||
<binding>
|
||||
<command>property-assign</command>
|
||||
<property>/instrumentation/kns-80/data-adjust</property>
|
||||
<value>-10</value>
|
||||
</binding>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>radial increase small</name>
|
||||
<button>0</button>
|
||||
<x>66</x>
|
||||
<y>-30</y>
|
||||
<w>12</w>
|
||||
<h>16</h>
|
||||
<condition>
|
||||
<equals>
|
||||
<property>instrumentation/kns-80/data-mode</property>
|
||||
<value>1</value>
|
||||
</equals>
|
||||
</condition>
|
||||
<binding>
|
||||
<command>property-assign</command>
|
||||
<property>/instrumentation/kns-80/data-adjust</property>
|
||||
<value>1</value>
|
||||
</binding>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>radial increase large</name>
|
||||
<button>1</button>
|
||||
<x>66</x>
|
||||
<y>-30</y>
|
||||
<w>12</w>
|
||||
<h>16</h>
|
||||
<condition>
|
||||
<equals>
|
||||
<property>instrumentation/kns-80/data-mode</property>
|
||||
<value>1</value>
|
||||
</equals>
|
||||
</condition>
|
||||
<binding>
|
||||
<command>property-assign</command>
|
||||
<property>/instrumentation/kns-80/data-adjust</property>
|
||||
<value>10</value>
|
||||
</binding>
|
||||
</action>
|
||||
|
||||
<!-- DATA MODE 2 -->
|
||||
|
||||
<action>
|
||||
<name>distance decrease small</name>
|
||||
<button>0</button>
|
||||
<x>54</x>
|
||||
<y>-30</y>
|
||||
<w>12</w>
|
||||
<h>16</h>
|
||||
<condition>
|
||||
<equals>
|
||||
<property>instrumentation/kns-80/data-mode</property>
|
||||
<value>2</value>
|
||||
</equals>
|
||||
</condition>
|
||||
<binding>
|
||||
<command>property-assign</command>
|
||||
<property>/instrumentation/kns-80/data-adjust</property>
|
||||
<value>-1</value></binding>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>distance decrease large</name>
|
||||
<button>1</button>
|
||||
<x>54</x>
|
||||
<y>-30</y>
|
||||
<w>12</w>
|
||||
<h>16</h>
|
||||
<condition>
|
||||
<equals>
|
||||
<property>instrumentation/kns-80/data-mode</property>
|
||||
<value>2</value>
|
||||
</equals>
|
||||
</condition>
|
||||
<binding>
|
||||
<command>property-assign</command>
|
||||
<property>/instrumentation/kns-80/data-adjust</property>
|
||||
<value>-10</value>
|
||||
</binding>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>distance increase small</name>
|
||||
<button>0</button>
|
||||
<x>54</x>
|
||||
<y>-30</y>
|
||||
<w>12</w>
|
||||
<h>16</h>
|
||||
<condition>
|
||||
<equals>
|
||||
<property>instrumentation/kns-80/data-mode</property>
|
||||
<value>2</value>
|
||||
</equals>
|
||||
</condition>
|
||||
<binding>
|
||||
<command>property-assign</command>
|
||||
<property>/instrumentation/kns-80/data-adjust</property>
|
||||
<value>1</value></binding>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>distance increase large</name>
|
||||
<button>1</button>
|
||||
<x>54</x>
|
||||
<y>-30</y>
|
||||
<w>12</w>
|
||||
<h>16</h>
|
||||
<condition>
|
||||
<equals>
|
||||
<property>instrumentation/kns-80/data-mode</property>
|
||||
<value>2</value>
|
||||
</equals>
|
||||
</condition>
|
||||
<binding>
|
||||
<command>property-assign</command>
|
||||
<property>/instrumentation/kns-80/data-adjust</property>
|
||||
<value>10</value>
|
||||
</binding>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>distance decrease large</name>
|
||||
<button>0</button>
|
||||
<x>54</x>
|
||||
<y>-30</y>
|
||||
<w>12</w>
|
||||
<h>16</h>
|
||||
<condition>
|
||||
<equals>
|
||||
<property>instrumentation/kns-80/data-mode</property>
|
||||
<value>2</value>
|
||||
</equals>
|
||||
</condition>
|
||||
<binding>
|
||||
<command>property-adjust</command>
|
||||
<property>instrumentation/kns-80/displayed-distance</property>
|
||||
<step>-10</step>
|
||||
<min>0</min>
|
||||
<max>100</max>
|
||||
<wrap>true</wrap>
|
||||
</binding>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>distance increase small</name>
|
||||
<button>0</button>
|
||||
<x>54</x>
|
||||
<y>-30</y>
|
||||
<w>12</w>
|
||||
<h>16</h>
|
||||
<condition>
|
||||
<equals>
|
||||
<property>instrumentation/kns-80/data-mode</property>
|
||||
<value>2</value>
|
||||
</equals>
|
||||
</condition>
|
||||
<binding>
|
||||
<command>property-adjust</command>
|
||||
<property>instrumentation/kns-80/displayed-distance</property>
|
||||
<step>0.1</step>
|
||||
<min>0</min>
|
||||
<max>100</max>
|
||||
<wrap>true</wrap>
|
||||
</binding>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>distance increase large</name>
|
||||
<button>0</button>
|
||||
<x>54</x>
|
||||
<y>-30</y>
|
||||
<w>12</w>
|
||||
<h>16</h>
|
||||
<condition>
|
||||
<equals>
|
||||
<property>instrumentation/kns-80/data-mode</property>
|
||||
<value>2</value>
|
||||
</equals>
|
||||
</condition>
|
||||
<binding>
|
||||
<command>property-adjust</command>
|
||||
<property>instrumentation/kns-80/displayed-distance</property>
|
||||
<step>10</step>
|
||||
<min>0</min>
|
||||
<max>100</max>
|
||||
<wrap>true</wrap>
|
||||
</binding>
|
||||
</action>
|
||||
|
||||
<!-- END DATA ENTRY -->
|
||||
|
||||
<action>
|
||||
<name>volume increase</name>
|
||||
<button>0</button>
|
||||
<x>43</x>
|
||||
<y>-34</y>
|
||||
<w>6</w>
|
||||
<h>8</h>
|
||||
<condition>
|
||||
<property>instrumentation/kns-80/serviceable</property>
|
||||
</condition>
|
||||
<binding>
|
||||
<command>property-adjust</command>
|
||||
<property>instrumentation/kns-80/volume</property>
|
||||
<step>0.05</step>
|
||||
<min>0.0</min>
|
||||
<max>1.0</max>
|
||||
<wrap>false</wrap>
|
||||
</binding>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>ident toggle1</name>
|
||||
<button>1</button>
|
||||
<x>43</x>
|
||||
<y>-34</y>
|
||||
<w>6</w>
|
||||
<h>8</h>
|
||||
<binding>
|
||||
<command>property-toggle</command>
|
||||
<property>instrumentation/nav/ident</property>
|
||||
</binding>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>nav power on</name>
|
||||
<button>0</button>
|
||||
<x>43</x>
|
||||
<y>-34</y>
|
||||
<w>6</w>
|
||||
<h>8</h>
|
||||
<condition>
|
||||
<not>
|
||||
<property>instrumentation/kns-80/serviceable</property>
|
||||
</not>
|
||||
</condition>
|
||||
<binding>
|
||||
<command>property-assign</command>
|
||||
<property>instrumentation/kns-80/serviceable</property>
|
||||
<value>true</value>
|
||||
</binding>
|
||||
</action>
|
||||
|
||||
|
||||
<action>
|
||||
<name>nav volume decrease</name>
|
||||
<button>0</button>
|
||||
<x>37</x>
|
||||
<y>-34</y>
|
||||
<w>6</w>
|
||||
<h>8</h>
|
||||
<condition>
|
||||
<greater-than>
|
||||
<property>instrumentation/kns-80/volume</property>
|
||||
<value>0.0</value>
|
||||
</greater-than>
|
||||
</condition>
|
||||
<binding>
|
||||
<command>property-adjust</command>
|
||||
<property>instrumentation/kns-80/volume</property>
|
||||
<step>-0.05</step>
|
||||
<min>0.0</min>
|
||||
<max>1.0</max>
|
||||
<wrap>false</wrap>
|
||||
</binding>
|
||||
</action>
|
||||
<action>
|
||||
<name>volume increase</name>
|
||||
<button>0</button>
|
||||
<x>43</x>
|
||||
<y>-34</y>
|
||||
<w>6</w>
|
||||
<h>8</h>
|
||||
<condition>
|
||||
<property>instrumentation/kns-80/serviceable</property>
|
||||
</condition>
|
||||
<binding>
|
||||
<command>property-adjust</command>
|
||||
<property>instrumentation/kns-80/volume</property>
|
||||
<step>0.05</step>
|
||||
<min>0.0</min>
|
||||
<max>1.0</max>
|
||||
<wrap>false</wrap>
|
||||
</binding>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>ident toggle2</name>
|
||||
<button>1</button>
|
||||
<x>37</x>
|
||||
<y>-34</y>
|
||||
<w>6</w>
|
||||
<h>8</h>
|
||||
<binding>
|
||||
<command>property-toggle</command>
|
||||
<property>instrumentation/nav/ident</property>
|
||||
</binding>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>nav power off</name>
|
||||
<button>0</button>
|
||||
<x>37</x>
|
||||
<y>-34</y>
|
||||
<w>6</w>
|
||||
<h>8</h>
|
||||
<condition>
|
||||
<equals>
|
||||
<property>instrumentation/kns-80/volume</property>
|
||||
<value>0</value>
|
||||
</equals>
|
||||
</condition>
|
||||
<binding>
|
||||
<command>property-assign</command>
|
||||
<property>instrumentation/kns-80/serviceable</property>
|
||||
<value>false</value>
|
||||
</binding>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>select vor modes</name>
|
||||
<button>0</button>
|
||||
<x>-65</x>
|
||||
<y>-24</y>
|
||||
<w>12</w>
|
||||
<h>6</h>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>
|
||||
test = getprop("/instrumentation/kns-80/nav-mode");
|
||||
if(test != 0){
|
||||
setprop("/instrumentation/kns-80/nav-mode",0);
|
||||
setprop("/instrumentation/nav/slaved-to-gps", 0);
|
||||
}else{
|
||||
setprop("/instrumentation/kns-80/nav-mode",1);
|
||||
setprop("/instrumentation/nav/slaved-to-gps", 1);
|
||||
}
|
||||
</script>
|
||||
</binding>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>select rnav modes</name>
|
||||
<button>0</button>
|
||||
<x>-50</x>
|
||||
<y>-24</y>
|
||||
<w>12</w>
|
||||
<h>6</h>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>
|
||||
test = getprop("/instrumentation/kns-80/nav-mode");
|
||||
if(test != 2){setprop("/instrumentation/kns-80/nav-mode",2);
|
||||
}else{setprop("/instrumentation/kns-80/nav-mode",3);}
|
||||
setprop("/instrumentation/nav/slaved-to-gps", 1);
|
||||
<action>
|
||||
<name>ident toggle1</name>
|
||||
<button>1</button>
|
||||
<x>43</x>
|
||||
<y>-34</y>
|
||||
<w>6</w>
|
||||
<h>8</h>
|
||||
<binding>
|
||||
<command>property-toggle</command>
|
||||
<property>instrumentation/nav/ident</property>
|
||||
</binding>
|
||||
</action>
|
||||
|
||||
</script>
|
||||
</binding>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>dme hold</name>
|
||||
<button>0</button>
|
||||
<x>-35</x>
|
||||
<y>-24</y>
|
||||
<w>12</w>
|
||||
<h>6</h>
|
||||
<binding>
|
||||
<command>property-toggle</command>
|
||||
<property>instrumentation/kns-80/dme-hold</property>
|
||||
</binding>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>select used frequency</name>
|
||||
<button>0</button>
|
||||
<x>-20</x>
|
||||
<y>-24</y>
|
||||
<w>12</w>
|
||||
<h>6</h>
|
||||
<binding>
|
||||
<command>property-assign</command>
|
||||
<property>instrumentation/kns-80/use</property>
|
||||
<property>instrumentation/kns-80/display</property>
|
||||
</binding>
|
||||
</action>
|
||||
<action>
|
||||
<name>nav power on</name>
|
||||
<button>0</button>
|
||||
<x>43</x>
|
||||
<y>-34</y>
|
||||
<w>6</w>
|
||||
<h>8</h>
|
||||
<condition>
|
||||
<not>
|
||||
<property>instrumentation/kns-80/serviceable</property>
|
||||
</not>
|
||||
</condition>
|
||||
<binding>
|
||||
<command>property-assign</command>
|
||||
<property>instrumentation/kns-80/serviceable</property>
|
||||
<value>true</value>
|
||||
</binding>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>select displayed frequency</name>
|
||||
<button>0</button>
|
||||
<x>-5</x>
|
||||
<y>-24</y>
|
||||
<w>12</w>
|
||||
<h>6</h>
|
||||
<binding>
|
||||
<command>property-adjust</command>
|
||||
<property>instrumentation/kns-80/display</property>
|
||||
<step>1</step>
|
||||
<min>0</min>
|
||||
<max>4</max>
|
||||
<wrap>true</wrap>
|
||||
</binding>
|
||||
</action>
|
||||
<action>
|
||||
<name>nav volume decrease</name>
|
||||
<button>0</button>
|
||||
<x>37</x>
|
||||
<y>-34</y>
|
||||
<w>6</w>
|
||||
<h>8</h>
|
||||
<condition>
|
||||
<greater-than>
|
||||
<property>instrumentation/kns-80/volume</property>
|
||||
<value>0.0</value>
|
||||
</greater-than>
|
||||
</condition>
|
||||
<binding>
|
||||
<command>property-adjust</command>
|
||||
<property>instrumentation/kns-80/volume</property>
|
||||
<step>-0.05</step>
|
||||
<min>0.0</min>
|
||||
<max>1.0</max>
|
||||
<wrap>false</wrap>
|
||||
</binding>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>select data mode</name>
|
||||
<button>0</button>
|
||||
<x>10</x>
|
||||
<y>-24</y>
|
||||
<w>12</w>
|
||||
<h>6</h>
|
||||
<binding>
|
||||
<command>property-adjust</command>
|
||||
<property>instrumentation/kns-80/data-mode</property>
|
||||
<step>1</step>
|
||||
<min>0</min>
|
||||
<max>3</max>
|
||||
<wrap>true</wrap>
|
||||
</binding>
|
||||
</action>
|
||||
<action>
|
||||
<name>ident toggle2</name>
|
||||
<button>1</button>
|
||||
<x>37</x>
|
||||
<y>-34</y>
|
||||
<w>6</w>
|
||||
<h>8</h>
|
||||
<binding>
|
||||
<command>property-toggle</command>
|
||||
<property>instrumentation/nav/ident</property>
|
||||
</binding>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>nav power off</name>
|
||||
<button>0</button>
|
||||
<x>37</x>
|
||||
<y>-34</y>
|
||||
<w>6</w>
|
||||
<h>8</h>
|
||||
<condition>
|
||||
<equals>
|
||||
<property>instrumentation/kns-80/volume</property>
|
||||
<value>0</value>
|
||||
</equals>
|
||||
</condition>
|
||||
<binding>
|
||||
<command>property-assign</command>
|
||||
<property>instrumentation/kns-80/serviceable</property>
|
||||
<value>false</value>
|
||||
</binding>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>select vor modes</name>
|
||||
<button>0</button>
|
||||
<x>-65</x>
|
||||
<y>-24</y>
|
||||
<w>12</w>
|
||||
<h>6</h>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>
|
||||
test = getprop("/instrumentation/kns-80/nav-mode");
|
||||
if(test != 0){
|
||||
setprop("/instrumentation/kns-80/nav-mode",0);
|
||||
setprop("/instrumentation/nav/slaved-to-gps", 0);
|
||||
}else{
|
||||
setprop("/instrumentation/kns-80/nav-mode",1);
|
||||
setprop("/instrumentation/nav/slaved-to-gps", 1);
|
||||
}
|
||||
</script>
|
||||
</binding>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>select rnav modes</name>
|
||||
<button>0</button>
|
||||
<x>-50</x>
|
||||
<y>-24</y>
|
||||
<w>12</w>
|
||||
<h>6</h>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>
|
||||
test = getprop("/instrumentation/kns-80/nav-mode");
|
||||
if(test != 2){setprop("/instrumentation/kns-80/nav-mode",2);
|
||||
}else{setprop("/instrumentation/kns-80/nav-mode",3);}
|
||||
setprop("/instrumentation/nav/slaved-to-gps", 1);
|
||||
</script>
|
||||
</binding>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>dme hold</name>
|
||||
<button>0</button>
|
||||
<x>-35</x>
|
||||
<y>-24</y>
|
||||
<w>12</w>
|
||||
<h>6</h>
|
||||
<binding>
|
||||
<command>property-toggle</command>
|
||||
<property>instrumentation/kns-80/dme-hold</property>
|
||||
</binding>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>select used frequency</name>
|
||||
<button>0</button>
|
||||
<x>-20</x>
|
||||
<y>-24</y>
|
||||
<w>12</w>
|
||||
<h>6</h>
|
||||
<binding>
|
||||
<command>property-assign</command>
|
||||
<property>instrumentation/kns-80/use</property>
|
||||
<property>instrumentation/kns-80/display</property>
|
||||
</binding>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>select displayed frequency</name>
|
||||
<button>0</button>
|
||||
<x>-5</x>
|
||||
<y>-24</y>
|
||||
<w>12</w>
|
||||
<h>6</h>
|
||||
<binding>
|
||||
<command>property-adjust</command>
|
||||
<property>instrumentation/kns-80/display</property>
|
||||
<step>1</step>
|
||||
<min>0</min>
|
||||
<max>4</max>
|
||||
<wrap>true</wrap>
|
||||
</binding>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>select data mode</name>
|
||||
<button>0</button>
|
||||
<x>10</x>
|
||||
<y>-24</y>
|
||||
<w>12</w>
|
||||
<h>6</h>
|
||||
<binding>
|
||||
<command>property-adjust</command>
|
||||
<property>instrumentation/kns-80/data-mode</property>
|
||||
<step>1</step>
|
||||
<min>0</min>
|
||||
<max>3</max>
|
||||
<wrap>true</wrap>
|
||||
</binding>
|
||||
</action>
|
||||
</actions>
|
||||
|
||||
</actions>
|
||||
|
||||
</PropertyList>
|
|
@ -1,30 +1,28 @@
|
|||
#### King KY-196 Comm Transciever ####
|
||||
#### Syd Adams ####
|
||||
####
|
||||
#### Must be included in the Set file to run the KY-196 radio
|
||||
####Must be included in the Set file to run the KY-196 radio
|
||||
####
|
||||
|
||||
KY196 = props.globals.getNode("/instrumentation/ky-196",1);
|
||||
|
||||
|
||||
FDM_ON = 0;
|
||||
|
||||
setlistener("/sim/signals/fdm-initialized", func {
|
||||
KY196.getNode("comm-num",1).setValue(0);
|
||||
KY196.getNode("volume-adjust",1).setValue(0);
|
||||
FDM_ON = 1;
|
||||
print("KY-196 Comm System ... OK");
|
||||
});
|
||||
|
||||
KY196.getNode("comm-num",1).setIntValue(0);
|
||||
KY196.getNode("volume-adjust",1).setDoubleValue(0);
|
||||
FDM_ON = 1;
|
||||
print("KY-196 Comm System ... OK");
|
||||
});
|
||||
|
||||
setlistener("/instrumentation/ky-196/volume-adjust", func {
|
||||
if(FDM_ON == 0){return;}
|
||||
var setting = cmdarg().getValue() ;
|
||||
cmdarg().setValue(0);
|
||||
comm_num = KY196.getNode("comm-num").getValue();
|
||||
var commNode = props.globals.getNode("instrumentation/comm[" ~ comm_num ~"]");
|
||||
var vol = commNode.getNode("volume").getValue() + setting;
|
||||
if(vol > 1.0){vol = 1.0;}
|
||||
if(vol < 0.0){vol = 0.0;commNode.getNode("serviceable").setBoolValue(0);}
|
||||
if(vol > 0.0){commNode.getNode("serviceable").setBoolValue(1);}
|
||||
commNode.getNode("volume").setValue(vol);
|
||||
});
|
||||
if(FDM_ON == 0){return;}
|
||||
var setting = cmdarg().getValue();
|
||||
cmdarg().setDoubleValue(0);
|
||||
comm_num = KY196.getNode("comm-num").getValue();
|
||||
var commNode = props.globals.getNode("instrumentation/comm[" ~ comm_num ~"]");
|
||||
var vol = commNode.getNode("volume").getValue() + setting;
|
||||
if(vol > 1.0){vol = 1.0;}
|
||||
if(vol < 0.0){vol = 0.0;commNode.getNode("serviceable").setBoolValue(0);}
|
||||
if(vol > 0.0){commNode.getNode("serviceable").setBoolValue(1);}
|
||||
commNode.getNode("volume").setDoubleValue(vol);
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue