display frequency when USE or DSP button pressed...
This commit is contained in:
parent
2e2c30f424
commit
dec26c8b12
3 changed files with 939 additions and 938 deletions
|
@ -269,6 +269,7 @@ setlistener("/instrumentation/kns-80/use", func {
|
||||||
if(FDM_ON == 0){return;}
|
if(FDM_ON == 0){return;}
|
||||||
var freq = cmdarg().getValue();
|
var freq = cmdarg().getValue();
|
||||||
KNS80.getNode("flash").setValue(0);
|
KNS80.getNode("flash").setValue(0);
|
||||||
|
KNS80.getNode("data-mode",1).setValue(0);
|
||||||
NAV1.setValue(KNS80.getNode("wpt[" ~ freq ~ "]/frequency").getValue()* 0.01);
|
NAV1.setValue(KNS80.getNode("wpt[" ~ freq ~ "]/frequency").getValue()* 0.01);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -280,6 +281,7 @@ setlistener("/instrumentation/kns-80/display", func {
|
||||||
KNS80.getNode("displayed-frequency").setValue(wpt);
|
KNS80.getNode("displayed-frequency").setValue(wpt);
|
||||||
KNS80.getNode("displayed-distance").setValue(KNS80.getNode("wpt[" ~ freq ~ "]/distance").getValue());
|
KNS80.getNode("displayed-distance").setValue(KNS80.getNode("wpt[" ~ freq ~ "]/distance").getValue());
|
||||||
KNS80.getNode("displayed-radial").setValue(KNS80.getNode("wpt[" ~ freq ~ "]/radial").getValue());
|
KNS80.getNode("displayed-radial").setValue(KNS80.getNode("wpt[" ~ freq ~ "]/radial").getValue());
|
||||||
|
KNS80.getNode("data-mode",1).setValue(0);
|
||||||
if(test != freq){
|
if(test != freq){
|
||||||
KNS80.getNode("flash").setValue(1);
|
KNS80.getNode("flash").setValue(1);
|
||||||
}else{
|
}else{
|
||||||
|
|
|
@ -220,7 +220,7 @@
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-adjust</command>
|
<command>property-adjust</command>
|
||||||
<property>instrumentation/kns-80/displayed-distance</property>
|
<property>instrumentation/kns-80/displayed-distance</property>
|
||||||
<step>-1</step>
|
<step>-0.1</step>
|
||||||
<min>0</min>
|
<min>0</min>
|
||||||
<max>100</max>
|
<max>100</max>
|
||||||
<wrap>true</wrap>
|
<wrap>true</wrap>
|
||||||
|
@ -266,7 +266,7 @@
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-adjust</command>
|
<command>property-adjust</command>
|
||||||
<property>instrumentation/kns-80/displayed-distance</property>
|
<property>instrumentation/kns-80/displayed-distance</property>
|
||||||
<step>1</step>
|
<step>0.1</step>
|
||||||
<min>0</min>
|
<min>0</min>
|
||||||
<max>100</max>
|
<max>100</max>
|
||||||
<wrap>true</wrap>
|
<wrap>true</wrap>
|
||||||
|
|
|
@ -293,7 +293,6 @@ Syd Adams
|
||||||
</condition>
|
</condition>
|
||||||
</animation>
|
</animation>
|
||||||
|
|
||||||
|
|
||||||
<animation>
|
<animation>
|
||||||
<type>rotate</type>
|
<type>rotate</type>
|
||||||
<object-name>KNS80.volume</object-name>
|
<object-name>KNS80.volume</object-name>
|
||||||
|
|
Loading…
Reference in a new issue