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
|
@ -139,10 +139,10 @@ var updateRNAV = func{
|
||||||
setprop("/instrumentation/rnav/reciprocal-radial-deg", abearing);
|
setprop("/instrumentation/rnav/reciprocal-radial-deg", abearing);
|
||||||
setprop("/instrumentation/rnav/actual-deg", bearing);
|
setprop("/instrumentation/rnav/actual-deg", bearing);
|
||||||
##debugging
|
##debugging
|
||||||
## setprop("/instrumentation/rnav/debug-angle-deg", angle*R2D);
|
##setprop("/instrumentation/rnav/debug-angle-deg", angle*R2D);
|
||||||
## setprop("/instrumentation/rnav/debug-anglef-deg", fangle);
|
##setprop("/instrumentation/rnav/debug-anglef-deg", fangle);
|
||||||
## setprop("/instrumentation/rnav/debug-theta-deg",theta);
|
##setprop("/instrumentation/rnav/debug-theta-deg",theta);
|
||||||
## setprop("/instrumentation/rnav/debug-rho", rho);
|
##setprop("/instrumentation/rnav/debug-rho", rho);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -250,7 +250,7 @@ setlistener("/instrumentation/kns-80/displayed-distance", func {
|
||||||
var num = KNS80.getNode("display").getValue();
|
var num = KNS80.getNode("display").getValue();
|
||||||
KNS80.getNode("wpt[" ~ num ~ "]/distance").setValue(dis);
|
KNS80.getNode("wpt[" ~ num ~ "]/distance").setValue(dis);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
setlistener("/instrumentation/kns-80/serviceable", func {
|
setlistener("/instrumentation/kns-80/serviceable", func {
|
||||||
if(FDM_ON != 0){
|
if(FDM_ON != 0){
|
||||||
|
@ -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>
|
||||||
|
@ -398,7 +397,7 @@ Syd Adams
|
||||||
</axis>
|
</axis>
|
||||||
</animation>
|
</animation>
|
||||||
|
|
||||||
<!-- Radials -->
|
<!-- Radials -->
|
||||||
|
|
||||||
<animation>
|
<animation>
|
||||||
<type>textranslate</type>
|
<type>textranslate</type>
|
||||||
|
@ -592,7 +591,7 @@ Syd Adams
|
||||||
</axis>
|
</axis>
|
||||||
</animation>
|
</animation>
|
||||||
|
|
||||||
<!-- USED / DISPLAYED WAYPOINTS-->
|
<!-- USED / DISPLAYED WAYPOINTS -->
|
||||||
|
|
||||||
<animation>
|
<animation>
|
||||||
<type>textranslate</type>
|
<type>textranslate</type>
|
||||||
|
@ -620,7 +619,7 @@ Syd Adams
|
||||||
</axis>
|
</axis>
|
||||||
</animation>
|
</animation>
|
||||||
|
|
||||||
<!-- OSG hotspots -->
|
<!-- OSG hotspots -->
|
||||||
|
|
||||||
<animation>
|
<animation>
|
||||||
<type>pick</type>
|
<type>pick</type>
|
||||||
|
|
Loading…
Add table
Reference in a new issue