code cleanup
This commit is contained in:
parent
c9d2b8be5b
commit
f14087c807
2 changed files with 278 additions and 365 deletions
|
@ -1,4 +1,3 @@
|
||||||
#<PropertyList><module>Aerostar-700</module><script><![CDATA[
|
|
||||||
#### King KNS-80 Integrated Navigation System ####
|
#### King KNS-80 Integrated Navigation System ####
|
||||||
#### Syd Adams ####
|
#### Syd Adams ####
|
||||||
#### Ron Jensen ####
|
#### Ron Jensen ####
|
||||||
|
@ -8,157 +7,213 @@
|
||||||
#### Nav Modes 0 = VOR ; 1 = VOR/PAR ; 2 = RNAV/ENR ; 3 = RNAV/APR ;
|
#### Nav Modes 0 = VOR ; 1 = VOR/PAR ; 2 = RNAV/ENR ; 3 = RNAV/APR ;
|
||||||
####
|
####
|
||||||
|
|
||||||
var KNS80 = props.globals.getNode("/instrumentation/kns-80",1);
|
var KNS80 = {
|
||||||
var NAV1 = props.globals.getNode("/instrumentation/nav/frequencies/selected-mhz",1);
|
new : func(prop){
|
||||||
var NAV1_RADIAL = props.globals.getNode("/instrumentation/nav/radials/selected-deg",1);
|
m = { parents : [KNS80]};
|
||||||
var KNS80_wpt_freq=[];
|
m.wpt_freq=[];
|
||||||
var KNS80_wpt_radial=[];
|
m.wpt_radial=[];
|
||||||
var KNS80_wpt_distance=[];
|
m.wpt_distance=[];
|
||||||
|
m.volume_adjust =0;
|
||||||
|
m.nav_selected = "instrumentation/nav/frequencies/selected-mhz";
|
||||||
|
m.dme_selected = "instrumentation/dme/frequencies/selected-mhz";
|
||||||
|
m.display_num = 0;
|
||||||
|
m.use_num = 0;
|
||||||
|
m.flasher = 0;
|
||||||
|
|
||||||
|
m.kns80 = props.globals.initNode(prop);
|
||||||
|
m.serviceable = m.kns80.initNode("serviceable",1,"BOOL");
|
||||||
|
m.data_mode = m.kns80.initNode("data-mode",0,"DOUBLE");
|
||||||
|
m.nav_mode = m.kns80.initNode("nav-mode",0,"DOUBLE");
|
||||||
|
m.dme_hold = m.kns80.initNode("dme-hold",0,"BOOL");
|
||||||
|
m.dsp_flash = m.kns80.initNode("flash",0,"BOOL");
|
||||||
|
m.display = m.kns80.initNode("display",0,"DOUBLE");
|
||||||
|
m.use = m.kns80.initNode("use",0,"DOUBLE");
|
||||||
|
|
||||||
var KNS80_serviceable=KNS80.getNode("serviceable",1);
|
append(m.wpt_freq,m.kns80.initNode("wpt[0]/frequency",115.80,"DOUBLE"));
|
||||||
KNS80_serviceable.setBoolValue(1);
|
append(m.wpt_freq,m.kns80.initNode("wpt[1]/frequency",111.70,"DOUBLE"));
|
||||||
|
append(m.wpt_freq,m.kns80.initNode("wpt[2]/frequency",116.80,"DOUBLE"));
|
||||||
|
append(m.wpt_freq,m.kns80.initNode("wpt[3]/frequency",113.90,"DOUBLE"));
|
||||||
|
|
||||||
var KNS80_volume_adjust=KNS80.getNode("volume-adjust",1);
|
append(m.wpt_radial,m.kns80.initNode("wpt[0]/radial",280.0,"DOUBLE"));
|
||||||
KNS80_volume_adjust.setDoubleValue(0);
|
append(m.wpt_radial,m.kns80.initNode("wpt[1]/radial",280.0,"DOUBLE"));
|
||||||
|
append(m.wpt_radial,m.kns80.initNode("wpt[2]/radial",029.0,"DOUBLE"));
|
||||||
|
append(m.wpt_radial,m.kns80.initNode("wpt[3]/radial",029.0,"DOUBLE"));
|
||||||
|
|
||||||
var KNS80_data_adjust=KNS80.getNode("data-adjust",1);
|
append(m.wpt_distance,m.kns80.initNode("wpt[0]/distance",0,"DOUBLE"));
|
||||||
KNS80_data_adjust.setDoubleValue(0);
|
append(m.wpt_distance,m.kns80.initNode("wpt[1]/distance",0,"DOUBLE"));
|
||||||
|
append(m.wpt_distance,m.kns80.initNode("wpt[2]/distance",0,"DOUBLE"));
|
||||||
|
append(m.wpt_distance,m.kns80.initNode("wpt[3]/distance",0,"DOUBLE"));
|
||||||
|
|
||||||
var KNS80_volume=KNS80.getNode("volume",1);
|
m.displayed_distance = m.kns80.initNode("displayed-distance",m.wpt_distance[0].getValue(),"DOUBLE");
|
||||||
KNS80_volume.setDoubleValue(0.5);
|
m.displayed_frequency = m.kns80.initNode("displayed-frequency",m.wpt_freq[0].getValue(),"DOUBLE");
|
||||||
|
m.displayed_radial = m.kns80.initNode("displayed-radial",m.wpt_radial[0].getValue(),"DOUBLE");
|
||||||
|
|
||||||
var KNS80_display=KNS80.getNode("display",1);
|
m.NAV=props.globals.initNode("instrumentation/nav");
|
||||||
KNS80_display.setDoubleValue(0);
|
m.NAV1 = m.NAV.initNode("frequencies/selected-mhz");
|
||||||
|
m.NAV1_RADIAL = m.NAV.initNode("radials/selected-deg");
|
||||||
|
m.NAV1_ACTUAL = m.NAV.initNode("radials/actual-deg");
|
||||||
|
m.NAV1_TO_FLAG = m.NAV.initNode("to-flag");
|
||||||
|
m.NAV1_FROM_FLAG = m.NAV.initNode("from-flag");
|
||||||
|
m.NAV1_HEADING_NEEDLE_DEFLECTION = m.NAV.initNode("heading-needle-deflection");
|
||||||
|
m.NAV1_IN_RANGE = m.NAV.initNode("in-range");
|
||||||
|
m.NAV1_distance = m.NAV.initNode("distance");
|
||||||
|
|
||||||
|
m.NAV_volume = m.NAV.initNode("volume",0.2,"DOUBLE");
|
||||||
|
|
||||||
var KNS80_use=KNS80.getNode("use",1);
|
m.CDI_NEEDLE = props.globals.initNode("/instrumentation/gps/cdi-deflection");
|
||||||
KNS80_use.setDoubleValue(0);
|
m.TO_FLAG = props.globals.initNode("/instrumentation/gps/to-flag");
|
||||||
|
m.FROM_FLAG = props.globals.initNode("/instrumentation/gps/from-flag");
|
||||||
|
|
||||||
var KNS80_data_mode=KNS80.getNode("data-mode",1);
|
m.RNAV = m.kns80.initNode("rnav");
|
||||||
KNS80_data_mode.setDoubleValue(0);
|
m.RNAV_deflection = m.RNAV.initNode("heading-needle-deflection",0,"DOUBLE");
|
||||||
|
m.RNAV_distance = m.RNAV.initNode("indicated-distance-nm",0,"DOUBLE");
|
||||||
|
m.RNAV_reciprocal = m.RNAV.initNode("reciprocal-radial-deg",0,"DOUBLE");
|
||||||
|
m.RNAV_actual_deg = m.RNAV.initNode("actual-deg",0,"DOUBLE");
|
||||||
|
|
||||||
|
m.DME_mhz = props.globals.initNode("instrumentation/dme/frequencies/selected-mhz",0,"DOUBLE");
|
||||||
|
m.DME_src = props.globals.initNode("instrumentation/dme/frequencies/source",m.nav_selected,"STRING");
|
||||||
|
m.DME_dist = props.globals.initNode("instrumentation/dme/indicated-distance-nm",0,"DOUBLE");
|
||||||
|
return m;
|
||||||
|
},
|
||||||
|
|
||||||
var KNS80_nav_mode=KNS80.getNode("nav-mode",1);
|
#### volume adjust ####
|
||||||
KNS80_nav_mode.setDoubleValue(0);
|
|
||||||
|
|
||||||
var KNS80_dme_hold=KNS80.getNode("dme-hold",1);
|
volume : func(vlm){
|
||||||
KNS80_dme_hold.setBoolValue(0);
|
var vol = me.NAV_volume.getValue();
|
||||||
|
vol += vlm;
|
||||||
|
if(vol > 1.0)vol = 1.0;
|
||||||
|
if(vol < 0.0){
|
||||||
|
vol = 0.0;
|
||||||
|
me.serviceable.setBoolValue(0);
|
||||||
|
setprop("/instrumentation/nav/serviceable",0);
|
||||||
|
setprop("/instrumentation/dme/serviceable",0);
|
||||||
|
}
|
||||||
|
if(vol > 0.0){
|
||||||
|
me.serviceable.setBoolValue(1);
|
||||||
|
setprop("/instrumentation/nav/serviceable",1);
|
||||||
|
setprop("/instrumentation/dme/serviceable",1);
|
||||||
|
}
|
||||||
|
me.NAV_volume.setValue(vol);
|
||||||
|
},
|
||||||
|
|
||||||
var KNS80_displayed_distance=KNS80.getNode("displayed-distance",1);
|
#### dme hold ####
|
||||||
KNS80_displayed_distance.setDoubleValue(0);
|
|
||||||
|
|
||||||
var KNS80_displayed_frequency=KNS80.getNode("displayed-frequency",1);
|
DME_hold : func{
|
||||||
KNS80_displayed_frequency.setDoubleValue(0.0);
|
var hold = me.dme_hold.getValue();
|
||||||
|
hold= 1- hold;
|
||||||
|
me.dme_hold.setValue(hold);
|
||||||
|
if(hold==1){
|
||||||
|
me.DME_mhz.seValue(me.NAV1.getValue());
|
||||||
|
me.DME_src.setValue(me.dme_selected);
|
||||||
|
}else{
|
||||||
|
me.DME_mhz.setValue(0);
|
||||||
|
me.DME_src.setValue(me.nav_selected);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
var KNS80_displayed_radial=KNS80.getNode("displayed-radial",1);
|
#### display button ####
|
||||||
KNS80_displayed_radial.setDoubleValue(0.0);
|
|
||||||
|
|
||||||
append(KNS80_wpt_freq,KNS80.getNode("wpt[0]/frequency",1));
|
display_btn : func{
|
||||||
append(KNS80_wpt_freq,KNS80.getNode("wpt[1]/frequency",1));
|
me.display_num +=1;
|
||||||
append(KNS80_wpt_freq,KNS80.getNode("wpt[2]/frequency",1));
|
if(me.display_num>3)me.display_num=0;
|
||||||
append(KNS80_wpt_freq,KNS80.getNode("wpt[3]/frequency",1));
|
me.displayed_frequency.setValue(me.wpt_freq[me.display_num].getValue());
|
||||||
|
me.displayed_distance.setValue(me.wpt_distance[me.display_num].getValue());
|
||||||
|
me.displayed_radial.setValue(me.wpt_radial[me.display_num].getValue());
|
||||||
|
me.data_mode.setValue(0);
|
||||||
|
if(me.use_num == me.display_num){
|
||||||
|
me.flasher=0;
|
||||||
|
}else{
|
||||||
|
me.flasher=1;
|
||||||
|
}
|
||||||
|
me.display.setValue(me.display_num);
|
||||||
|
},
|
||||||
|
|
||||||
append(KNS80_wpt_radial,KNS80.getNode("wpt[0]/radial",1));
|
#### use button ####
|
||||||
append(KNS80_wpt_radial,KNS80.getNode("wpt[1]/radial",1));
|
|
||||||
append(KNS80_wpt_radial,KNS80.getNode("wpt[2]/radial",1));
|
|
||||||
append(KNS80_wpt_radial,KNS80.getNode("wpt[3]/radial",1));
|
|
||||||
|
|
||||||
append(KNS80_wpt_distance,KNS80.getNode("wpt[0]/distance",1));
|
use_btn : func{
|
||||||
append(KNS80_wpt_distance,KNS80.getNode("wpt[1]/distance",1));
|
me.use_num = me.display_num;
|
||||||
append(KNS80_wpt_distance,KNS80.getNode("wpt[2]/distance",1));
|
me.flasher=0;
|
||||||
append(KNS80_wpt_distance,KNS80.getNode("wpt[3]/distance",1));
|
me.data_mode.setValue(0);
|
||||||
|
me.use.setValue(me.use_num);
|
||||||
|
me.NAV1.setValue(me.wpt_freq[me.display_num].getValue());
|
||||||
|
},
|
||||||
|
|
||||||
KNS80_wpt_freq[0].setDoubleValue(10950);
|
#### data button ####
|
||||||
KNS80_wpt_radial[0].setDoubleValue(280);
|
|
||||||
KNS80_wpt_distance[0].setDoubleValue(0.0);
|
|
||||||
KNS80_wpt_freq[1].setDoubleValue(11570);
|
|
||||||
KNS80_wpt_radial[1].setDoubleValue(120);
|
|
||||||
KNS80_wpt_distance[1].setDoubleValue(7.2);
|
|
||||||
KNS80_wpt_freq[2].setDoubleValue(11570);
|
|
||||||
KNS80_wpt_radial[2].setDoubleValue(270);
|
|
||||||
KNS80_wpt_distance[2].setDoubleValue(5.8);
|
|
||||||
KNS80_wpt_freq[3].setDoubleValue(11000);
|
|
||||||
KNS80_wpt_radial[3].setDoubleValue(0);
|
|
||||||
KNS80_wpt_distance[3].setDoubleValue(0.0);
|
|
||||||
|
|
||||||
var DME_mhz=props.globals.getNode("instrumentation/dme/frequencies/selected-mhz",1);
|
data_btn : func{
|
||||||
var DME_src=props.globals.getNode("instrumentation/dme/frequencies/source",1);
|
var data = me.data_mode.getValue();
|
||||||
var FDM_ON = 0;
|
data +=1;
|
||||||
var dsp_flash = props.globals.getNode("instrumentation/kns-80/flash", 1);
|
if(data > 2) data = 0;
|
||||||
aircraft.light.new("instrumentation/kns-80/dsp-state", [0.5, 0.5],dsp_flash);
|
me.data_mode.setValue(data);
|
||||||
|
},
|
||||||
|
|
||||||
|
#### data adjust ####
|
||||||
|
|
||||||
|
data_adjust : func(dtadj){
|
||||||
|
var dmode = me.data_mode.getValue();
|
||||||
|
var num = dtadj;
|
||||||
|
dtadj=0;
|
||||||
|
if(dmode == 0){
|
||||||
|
if(num == -1 or num ==1){num = num *0.05;}else{num = num *0.10;}
|
||||||
|
var newfreq = me.displayed_frequency.getValue();
|
||||||
|
newfreq += num;
|
||||||
|
if(newfreq > 118.95){newfreq -= 11.00;}
|
||||||
|
if(newfreq < 108.00){newfreq += 11.00;}
|
||||||
|
me.displayed_frequency.setValue(newfreq);
|
||||||
|
}elsif(dmode == 1){
|
||||||
|
var newrad = me.displayed_radial.getValue();
|
||||||
|
newrad += num;
|
||||||
|
if(newrad > 359){newrad -= 360;}
|
||||||
|
if(newrad < 0){newrad += 360;}
|
||||||
|
me.displayed_radial.setValue(newrad);
|
||||||
|
}elsif(dmode == 2){
|
||||||
|
var newdist = me.displayed_distance.getValue();
|
||||||
|
if(num == -1 or num ==1 ){num = num *0.1;}
|
||||||
|
newdist += num;
|
||||||
|
if(newdist > 99){newdist -= 100;}
|
||||||
|
if(newdist < 0){newdist += 100;}
|
||||||
|
me.displayed_distance.setDoubleValue(newdist);
|
||||||
|
}
|
||||||
|
me.update_displayed();
|
||||||
|
},
|
||||||
|
|
||||||
|
#### update displayed info ####
|
||||||
|
|
||||||
|
update_displayed : func{
|
||||||
|
var freq = me.displayed_frequency.getValue();
|
||||||
|
me.wpt_freq[me.display_num].setValue(freq);
|
||||||
|
me.NAV1.setValue(me.wpt_freq[me.display_num].getValue());
|
||||||
|
me.wpt_radial[me.display_num].setValue(me.displayed_radial.getValue());
|
||||||
|
var dis = me.displayed_distance.getValue();
|
||||||
|
me.wpt_distance[me.display_num].setValue(dis);
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
#### update RNAV ####
|
||||||
|
|
||||||
# Properties
|
# Properties
|
||||||
|
|
||||||
var NAV1_ACTUAL = props.globals.getNode("/instrumentation/nav/radials/actual-deg",1);
|
|
||||||
var NAV1_TO_FLAG = props.globals.getNode("/instrumentation/nav[0]/to-flag",1);
|
|
||||||
var NAV1_FROM_FLAG = props.globals.getNode("/instrumentation/nav[0]/from-flag",1);
|
|
||||||
var NAV1_HEADING_NEEDLE_DEFLECTION = props.globals.getNode("/instrumentation/nav[0]/heading-needle-deflection",1);
|
|
||||||
|
|
||||||
var NAV1_IN_RANGE = props.globals.getNode("/instrumentation/nav[0]/in-range",1);
|
|
||||||
var DME1_IN_RANGE = props.globals.getNode("/instrumentation/dme[0]/in-range",1);
|
|
||||||
|
|
||||||
# outputs
|
# outputs
|
||||||
var CDI_NEEDLE = props.globals.getNode("/instrumentation/gps/cdi-deflection",1);
|
|
||||||
var TO_FLAG = props.globals.getNode("/instrumentation/gps/to-flag",1);
|
|
||||||
var FROM_FLAG = props.globals.getNode("/instrumentation/gps/from-flag",1);
|
|
||||||
|
|
||||||
|
|
||||||
var RNAV = props.globals.getNode("/instrumentation/rnav",1);
|
|
||||||
# distance, radial from VOR Station
|
# distance, radial from VOR Station
|
||||||
# rho, theta: distance and radial for phantom station
|
# rho, theta: distance and radial for phantom station
|
||||||
# range, bearing: distance and radial from phantom station
|
# range, bearing: distance and radial from phantom station
|
||||||
|
|
||||||
|
|
||||||
var unnil = func(n) { n == nil ? 0 : n }
|
|
||||||
|
|
||||||
|
|
||||||
# 0.1 second cron
|
|
||||||
var sec01cron = func {
|
|
||||||
updateRNAV();
|
|
||||||
|
|
||||||
# schedule the next call
|
|
||||||
settimer(sec01cron,0.1);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
# general initialization
|
|
||||||
var init = func {
|
|
||||||
# schedule the 1st call
|
|
||||||
settimer(sec01cron,5);
|
|
||||||
}
|
|
||||||
|
|
||||||
var updateRNAV = func{
|
|
||||||
# check to see if we are in-range
|
|
||||||
if( NAV1_IN_RANGE.getValue()==0) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
var dme_valid=DME1_IN_RANGE.getValue();
|
|
||||||
if( dme_valid == 0) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if( dme_valid == nil) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
#### Nav Modes 0 = VOR ; 1 = VOR/PAR ; 2 = RNAV/ENR ; 3 = RNAV/APR ;
|
#### Nav Modes 0 = VOR ; 1 = VOR/PAR ; 2 = RNAV/ENR ; 3 = RNAV/APR ;
|
||||||
var mode = KNS80_nav_mode.getValue();
|
|
||||||
var use =KNS80_use.getValue();
|
updateRNAV : func{
|
||||||
var distance=getprop("/instrumentation/dme/indicated-distance-nm");
|
|
||||||
var selected_radial = NAV1_RADIAL.getValue();
|
if(!me.NAV1_IN_RANGE.getValue()) {
|
||||||
var radial = NAV1_ACTUAL.getValue();
|
return;
|
||||||
var rho = KNS80_wpt_distance[use].getValue();
|
}
|
||||||
var theta = KNS80_wpt_radial[use].getValue();
|
var mode = me.nav_mode.getValue() or 0;
|
||||||
# var rho = KNS80.getNode("wpt[" ~ use ~ "]/distance").getValue();
|
var distance=me.DME_dist.getValue() or 0;
|
||||||
# var theta = KNS80.getNode("wpt[" ~ use ~ "]/radial").getValue();
|
var selected_radial = me.NAV1_RADIAL.getValue() or 0;
|
||||||
|
var radial = me.NAV1_ACTUAL.getValue() or 0;
|
||||||
|
var rho = me.wpt_distance[me.use_num].getValue() or 0;
|
||||||
|
var theta = me.wpt_radial[me.use_num].getValue() or 0;
|
||||||
var fangle = 0;
|
var fangle = 0;
|
||||||
var needle_deflection = 0;
|
var needle_deflection = 0;
|
||||||
var from_flag=1;
|
var from_flag=1;
|
||||||
var to_flag =0;
|
var to_flag =0;
|
||||||
|
|
||||||
|
|
||||||
radial = unnil(radial);
|
|
||||||
theta = unnil(theta);
|
|
||||||
rho = unnil(rho);
|
|
||||||
distance=unnil(distance);
|
|
||||||
|
|
||||||
var x1 = distance * math.cos( radial*D2R );
|
var x1 = distance * math.cos( radial*D2R );
|
||||||
var y1 = distance * math.sin( radial*D2R );
|
var y1 = distance * math.sin( radial*D2R );
|
||||||
var x2 = rho * math.cos( theta*D2R );
|
var x2 = rho * math.cos( theta*D2R );
|
||||||
|
@ -171,23 +226,18 @@ var updateRNAV = func{
|
||||||
var abearing = bearing > 180 ? bearing - 180 : bearing + 180;
|
var abearing = bearing > 180 ? bearing - 180 : bearing + 180;
|
||||||
|
|
||||||
if( mode == 0){
|
if( mode == 0){
|
||||||
# print("KNS-80 VOR");
|
needle_deflection = (me.NAV1_HEADING_NEEDLE_DEFLECTION.getValue());
|
||||||
needle_deflection = (NAV1_HEADING_NEEDLE_DEFLECTION.getValue());
|
|
||||||
range = distance;
|
range = distance;
|
||||||
# return;
|
|
||||||
}
|
}
|
||||||
if ( mode == 1){
|
if ( mode == 1){
|
||||||
# print("KNS-80 VOR/PAR");
|
|
||||||
fangle = math.abs(selected_radial - radial);
|
fangle = math.abs(selected_radial - radial);
|
||||||
needle_deflection = math.sin((selected_radial - radial) * D2R) * distance * 2;
|
needle_deflection = math.sin((selected_radial - radial) * D2R) * distance * 2;
|
||||||
}
|
}
|
||||||
if ( mode == 2){
|
if ( mode == 2){
|
||||||
# print("KNS-80 RNAV/ENR");
|
fangle = math.abs(selected_radial - bearing);
|
||||||
fangle = math.abs(selected_radial - bearing);
|
|
||||||
needle_deflection = math.sin((selected_radial - bearing) * D2R) * range * 2;
|
needle_deflection = math.sin((selected_radial - bearing) * D2R) * range * 2;
|
||||||
}
|
}
|
||||||
if ( mode == 3){
|
if ( mode == 3){
|
||||||
# print("KNS-80 RNAV/APR");
|
|
||||||
fangle = math.abs(selected_radial - bearing);
|
fangle = math.abs(selected_radial - bearing);
|
||||||
needle_deflection = math.sin((selected_radial - bearing) * D2R) * range * 8;
|
needle_deflection = math.sin((selected_radial - bearing) * D2R) * range * 8;
|
||||||
}
|
}
|
||||||
|
@ -202,139 +252,33 @@ var updateRNAV = func{
|
||||||
to_flag =1;
|
to_flag =1;
|
||||||
}
|
}
|
||||||
|
|
||||||
# valid=1;
|
me.RNAV_deflection.setValue(needle_deflection);
|
||||||
RNAV.getNode("heading-needle-deflection", 1).setDoubleValue(needle_deflection);
|
me.CDI_NEEDLE.setDoubleValue(needle_deflection);
|
||||||
CDI_NEEDLE.setDoubleValue(needle_deflection);
|
me.TO_FLAG.setDoubleValue(to_flag);
|
||||||
TO_FLAG.setDoubleValue(to_flag);
|
me.FROM_FLAG.setDoubleValue(from_flag);
|
||||||
FROM_FLAG.setDoubleValue(from_flag);
|
me.RNAV_distance.setValue(range);
|
||||||
setprop("/instrumentation/rnav/indicated-distance-nm", range);
|
me.RNAV_reciprocal.setValue(abearing);
|
||||||
setprop("/instrumentation/rnav/reciprocal-radial-deg", abearing);
|
me.RNAV_actual_deg.setValue(bearing);
|
||||||
setprop("/instrumentation/rnav/actual-deg", bearing);
|
}
|
||||||
##debugging
|
};
|
||||||
##setprop("/instrumentation/rnav/debug-angle-deg", angle*R2D);
|
|
||||||
##setprop("/instrumentation/rnav/debug-anglef-deg", fangle);
|
|
||||||
##setprop("/instrumentation/rnav/debug-theta-deg",theta);
|
|
||||||
##setprop("/instrumentation/rnav/debug-rho", rho);
|
|
||||||
|
|
||||||
|
###########################################
|
||||||
|
|
||||||
}
|
var kns80 = KNS80.new("instrumentation/kns-80");
|
||||||
|
|
||||||
setlistener("/sim/signals/fdm-initialized", func {
|
setlistener("/sim/signals/fdm-initialized", func {
|
||||||
KNS80_displayed_frequency.setDoubleValue(10955);
|
update();
|
||||||
KNS80_displayed_radial.setDoubleValue(NAV1_RADIAL.getValue());
|
});
|
||||||
KNS80_wpt_radial[0].setDoubleValue(NAV1_RADIAL.getValue());
|
|
||||||
tmp=props.globals.getNode("/instrumentation/nav/ident");
|
|
||||||
tmp.setBoolValue(0);
|
|
||||||
init();
|
|
||||||
print("KNS-80 Nav System ... OK");
|
|
||||||
});
|
|
||||||
|
|
||||||
setlistener(KNS80_volume_adjust, func(voladj){
|
var update = func {
|
||||||
var amnt = voladj.getValue();
|
kns80.updateRNAV();
|
||||||
if(amnt == nil){return;}
|
var fl = kns80.dsp_flash.getValue();
|
||||||
amnt*=0.05;
|
|
||||||
voladj.setDoubleValue(0);
|
if(kns80.flasher){
|
||||||
var vol = KNS80_volume.getValue();
|
kns80.dsp_flash.setValue(1-fl);
|
||||||
vol+= amnt;
|
}else{
|
||||||
if(vol > 1.0)vol = 1.0;
|
kns80.dsp_flash.setValue(1);
|
||||||
if(vol < 0.0){
|
};
|
||||||
vol = 0.0;
|
|
||||||
KNS80_serviceable.setBoolValue(0);
|
settimer(update,0.5);
|
||||||
}
|
};
|
||||||
if(vol > 0.0)KNS80_serviceable.setBoolValue(1);
|
|
||||||
KNS80_volume.setDoubleValue(vol);
|
|
||||||
KNS80_volume_adjust.setDoubleValue(0);
|
|
||||||
},1,0);
|
|
||||||
|
|
||||||
setlistener(KNS80_data_adjust, func(dtadj){
|
|
||||||
var dmode = KNS80_data_mode.getValue();
|
|
||||||
var num = dtadj.getValue();
|
|
||||||
dtadj.setDoubleValue(0);
|
|
||||||
if(dmode == 0){
|
|
||||||
if(num == -1 or num ==1){num = num *5;}else{num = num *10;}
|
|
||||||
var newfreq = KNS80_displayed_frequency.getValue();
|
|
||||||
newfreq += num;
|
|
||||||
if(newfreq > 11895){newfreq -= 1100;}
|
|
||||||
if(newfreq < 10800){newfreq += 1100;}
|
|
||||||
KNS80_displayed_frequency.setDoubleValue(newfreq);
|
|
||||||
}elsif(dmode == 1){
|
|
||||||
var newrad = KNS80_displayed_radial.getValue();
|
|
||||||
newrad += num;
|
|
||||||
if(newrad > 359){newrad -= 360;}
|
|
||||||
if(newrad < 0){newrad += 360;}
|
|
||||||
KNS80_displayed_radial.setDoubleValue(newrad);
|
|
||||||
}elsif(dmode == 2){
|
|
||||||
var newdist = KNS80_displayed_distance.getValue();
|
|
||||||
if(num == -1 or num ==1 ){num = num *0.1;}
|
|
||||||
newdist += num;
|
|
||||||
if(newdist > 99){newdist -= 100;}
|
|
||||||
if(newdist < 0){newdist += 100;}
|
|
||||||
KNS80_displayed_distance.setDoubleValue(newdist);
|
|
||||||
}
|
|
||||||
},1,0);
|
|
||||||
|
|
||||||
setlistener(KNS80_displayed_frequency, func(dspfrq){
|
|
||||||
var freq = dspfrq.getValue();
|
|
||||||
var num = KNS80_display.getValue();
|
|
||||||
var use = KNS80_use.getValue();
|
|
||||||
KNS80_wpt_freq[num].setDoubleValue(freq);
|
|
||||||
NAV1.setDoubleValue(KNS80_wpt_freq[num].getValue() * 0.01);
|
|
||||||
},1,0);
|
|
||||||
|
|
||||||
setlistener(KNS80_displayed_radial, func(rdl){
|
|
||||||
var rad = rdl.getValue();
|
|
||||||
var num = KNS80_display.getValue();
|
|
||||||
var radial = KNS80_use.getValue();
|
|
||||||
KNS80_wpt_radial[num].setDoubleValue(rad);
|
|
||||||
},1,0);
|
|
||||||
|
|
||||||
setlistener(KNS80_displayed_distance, func(dst){
|
|
||||||
var dis = dst.getValue();
|
|
||||||
var num = KNS80_display.getValue();
|
|
||||||
KNS80_wpt_distance[num].setDoubleValue(dis);
|
|
||||||
},1,0);
|
|
||||||
|
|
||||||
setlistener(KNS80_serviceable, func(srv){
|
|
||||||
setprop("/instrumentation/nav/serviceable",srv.getValue());
|
|
||||||
setprop("/instrumentation/dme/serviceable",srv.getValue());
|
|
||||||
},1,0);
|
|
||||||
|
|
||||||
setlistener(KNS80_volume, func(vol){
|
|
||||||
setprop("/instrumentation/nav/volume",vol.getValue());
|
|
||||||
setprop("/instrumentation/dme/volume",vol.getValue());
|
|
||||||
},1,0);
|
|
||||||
|
|
||||||
setlistener(KNS80_use, func(frq){
|
|
||||||
var freq = frq.getValue();
|
|
||||||
KNS80.getNode("flash").setDoubleValue(0);
|
|
||||||
KNS80_data_mode.setDoubleValue(0);
|
|
||||||
NAV1.setDoubleValue(KNS80_wpt_freq[freq].getValue()* 0.01);
|
|
||||||
},1,0);
|
|
||||||
|
|
||||||
setlistener(KNS80_display, func(dsp){
|
|
||||||
var freq = dsp.getValue();
|
|
||||||
if(freq == nil)return;
|
|
||||||
var test = KNS80_use.getValue();
|
|
||||||
var wpt = KNS80_wpt_freq[freq].getValue();
|
|
||||||
KNS80_displayed_frequency.setDoubleValue(wpt);
|
|
||||||
KNS80_displayed_distance.setDoubleValue(KNS80_wpt_distance[freq].getValue());
|
|
||||||
KNS80_displayed_radial.setDoubleValue(KNS80_wpt_radial[freq].getValue());
|
|
||||||
KNS80_data_mode.setDoubleValue(0);
|
|
||||||
if(test != freq){
|
|
||||||
KNS80.getNode("flash").setDoubleValue(1);
|
|
||||||
}else{
|
|
||||||
KNS80.getNode("flash").setDoubleValue(0);
|
|
||||||
}
|
|
||||||
},1,0);
|
|
||||||
|
|
||||||
setlistener(KNS80_dme_hold, func(hld){
|
|
||||||
if(hld.getBoolValue()){
|
|
||||||
DME_mhz.setDoubleValue(NAV1.getValue());
|
|
||||||
DME_src.setValue("/instrumentation/dme/frequencies/selected-mhz");
|
|
||||||
}else{
|
|
||||||
DME_mhz.setDoubleValue(0);
|
|
||||||
DME_src.setValue("/instrumentation/nav[0]/frequencies/selected-mhz");
|
|
||||||
}
|
|
||||||
},1,0);
|
|
||||||
|
|
||||||
# ]]></script></PropertyList>
|
|
||||||
|
|
|
@ -95,11 +95,8 @@ Syd Adams
|
||||||
<property>systems/electrical/outputs/KNS80</property>
|
<property>systems/electrical/outputs/KNS80</property>
|
||||||
<value>1</value>
|
<value>1</value>
|
||||||
</greater-than>
|
</greater-than>
|
||||||
<equals>
|
<property>instrumentation/kns-80/flash</property>
|
||||||
<property>instrumentation/kns-80/dsp-state/state</property>
|
</and>
|
||||||
<value>0</value>
|
|
||||||
</equals>
|
|
||||||
</and>
|
|
||||||
</condition>
|
</condition>
|
||||||
</animation>
|
</animation>
|
||||||
|
|
||||||
|
@ -284,7 +281,7 @@ Syd Adams
|
||||||
<condition>
|
<condition>
|
||||||
<and>
|
<and>
|
||||||
<property>instrumentation/kns-80/serviceable</property>
|
<property>instrumentation/kns-80/serviceable</property>
|
||||||
<property>instrumentation/nav/nav-loc</property>
|
<property>instrumentation/nav/has-gs</property>
|
||||||
<property>instrumentation/nav/in-range</property>
|
<property>instrumentation/nav/in-range</property>
|
||||||
<greater-than>
|
<greater-than>
|
||||||
<property>systems/electrical/outputs/KNS80</property>
|
<property>systems/electrical/outputs/KNS80</property>
|
||||||
|
@ -297,7 +294,7 @@ Syd Adams
|
||||||
<animation>
|
<animation>
|
||||||
<type>rotate</type>
|
<type>rotate</type>
|
||||||
<object-name>KNS80.volume</object-name>
|
<object-name>KNS80.volume</object-name>
|
||||||
<property>instrumentation/kns-80/volume</property>
|
<property>instrumentation/nav/volume</property>
|
||||||
<interpolation>
|
<interpolation>
|
||||||
<entry><ind>0</ind><dep>0</dep></entry>
|
<entry><ind>0</ind><dep>0</dep></entry>
|
||||||
<entry><ind>1.0</ind><dep>300</dep></entry>
|
<entry><ind>1.0</ind><dep>300</dep></entry>
|
||||||
|
@ -337,8 +334,9 @@ Syd Adams
|
||||||
<type>textranslate</type>
|
<type>textranslate</type>
|
||||||
<object-name>navfreq.101</object-name>
|
<object-name>navfreq.101</object-name>
|
||||||
<property>instrumentation/kns-80/displayed-frequency</property>
|
<property>instrumentation/kns-80/displayed-frequency</property>
|
||||||
<factor>0.00001</factor>
|
<factor>0.001</factor>
|
||||||
<step>10000</step>
|
<step>100</step>
|
||||||
|
<bias>0.005</bias>
|
||||||
<axis>
|
<axis>
|
||||||
<x>1</x>
|
<x>1</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
|
@ -350,8 +348,9 @@ Syd Adams
|
||||||
<type>textranslate</type>
|
<type>textranslate</type>
|
||||||
<object-name>navfreq.102</object-name>
|
<object-name>navfreq.102</object-name>
|
||||||
<property>instrumentation/kns-80/displayed-frequency</property>
|
<property>instrumentation/kns-80/displayed-frequency</property>
|
||||||
<factor>0.0001</factor>
|
<factor>0.01</factor>
|
||||||
<step>1000</step>
|
<step>10</step>
|
||||||
|
<bias>0.005</bias>
|
||||||
<axis>
|
<axis>
|
||||||
<x>1</x>
|
<x>1</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
|
@ -363,8 +362,9 @@ Syd Adams
|
||||||
<type>textranslate</type>
|
<type>textranslate</type>
|
||||||
<object-name>navfreq.103</object-name>
|
<object-name>navfreq.103</object-name>
|
||||||
<property>instrumentation/kns-80/displayed-frequency</property>
|
<property>instrumentation/kns-80/displayed-frequency</property>
|
||||||
<factor>0.001</factor>
|
<factor>0.1</factor>
|
||||||
<step>100</step>
|
<step>1</step>
|
||||||
|
<bias>0.005</bias>
|
||||||
<axis>
|
<axis>
|
||||||
<x>1</x>
|
<x>1</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
|
@ -376,8 +376,9 @@ Syd Adams
|
||||||
<type>textranslate</type>
|
<type>textranslate</type>
|
||||||
<object-name>navfreq.104</object-name>
|
<object-name>navfreq.104</object-name>
|
||||||
<property>instrumentation/kns-80/displayed-frequency</property>
|
<property>instrumentation/kns-80/displayed-frequency</property>
|
||||||
<factor>0.01</factor>
|
<factor>1.0</factor>
|
||||||
<step>10</step>
|
<step>0.1</step>
|
||||||
|
<bias>0.005</bias>
|
||||||
<axis>
|
<axis>
|
||||||
<x>1</x>
|
<x>1</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
|
@ -389,8 +390,9 @@ Syd Adams
|
||||||
<type>textranslate</type>
|
<type>textranslate</type>
|
||||||
<object-name>navfreq.105</object-name>
|
<object-name>navfreq.105</object-name>
|
||||||
<property>instrumentation/kns-80/displayed-frequency</property>
|
<property>instrumentation/kns-80/displayed-frequency</property>
|
||||||
<factor>0.1</factor>
|
<factor>10.0</factor>
|
||||||
<step>1</step>
|
<step>0.01</step>
|
||||||
|
<bias>0.005</bias>
|
||||||
<axis>
|
<axis>
|
||||||
<x>1</x>
|
<x>1</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
|
@ -626,12 +628,12 @@ Syd Adams
|
||||||
<type>pick</type>
|
<type>pick</type>
|
||||||
<object-name>KNS80.volume</object-name>
|
<object-name>KNS80.volume</object-name>
|
||||||
<action>
|
<action>
|
||||||
<button>1</button>
|
<button>0</button>
|
||||||
<repeatable>true</repeatable>
|
<repeatable>true</repeatable>
|
||||||
|
<interval-sec>0.1</interval-sec>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/instrumentation/kns-80/volume-adjust</property>
|
<script>systems.kns80.volume(0.05)</script>
|
||||||
<value>-1</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</action>
|
</action>
|
||||||
</animation>
|
</animation>
|
||||||
|
@ -640,36 +642,12 @@ Syd Adams
|
||||||
<type>pick</type>
|
<type>pick</type>
|
||||||
<object-name>KNS80.volume</object-name>
|
<object-name>KNS80.volume</object-name>
|
||||||
<action>
|
<action>
|
||||||
<button>0</button>
|
<button>1</button>
|
||||||
|
<repeatable>true</repeatable>
|
||||||
|
<interval-sec>0.1</interval-sec>
|
||||||
<binding>
|
<binding>
|
||||||
<condition>
|
<command>nasal</command>
|
||||||
<not>
|
<script>systems.kns80.volume(-0.05)</script>
|
||||||
<property>devices/status/keyboard/shift</property>
|
|
||||||
</not>
|
|
||||||
</condition>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>/instrumentation/kns-80/volume-adjust</property>
|
|
||||||
<value>1</value>
|
|
||||||
</binding>
|
|
||||||
<binding>
|
|
||||||
<condition>
|
|
||||||
<property>devices/status/keyboard/shift</property>
|
|
||||||
</condition>
|
|
||||||
<command>property-toggle</command>
|
|
||||||
<property>instrumentation/nav/ident</property>
|
|
||||||
</binding>
|
|
||||||
</action>
|
|
||||||
</animation>
|
|
||||||
|
|
||||||
<animation>
|
|
||||||
<type>pick</type>
|
|
||||||
<object-name>KNS80.volume</object-name>
|
|
||||||
<action>
|
|
||||||
<button>4</button>
|
|
||||||
<binding>
|
|
||||||
<command>property-assign</command>
|
|
||||||
<property>/instrumentation/kns-80/volume-adjust</property>
|
|
||||||
<value>-1</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</action>
|
</action>
|
||||||
</animation>
|
</animation>
|
||||||
|
@ -680,10 +658,21 @@ Syd Adams
|
||||||
<action>
|
<action>
|
||||||
<button>3</button>
|
<button>3</button>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/instrumentation/kns-80/volume-adjust</property>
|
<script>systems.kns80.volume(0.05)</script>
|
||||||
<value>1</value>
|
</binding>
|
||||||
</binding>
|
</action>
|
||||||
|
</animation>
|
||||||
|
|
||||||
|
<animation>
|
||||||
|
<type>pick</type>
|
||||||
|
<object-name>KNS80.volume</object-name>
|
||||||
|
<action>
|
||||||
|
<button>4</button>
|
||||||
|
<binding>
|
||||||
|
<command>nasal</command>
|
||||||
|
<script>systems.kns80.volume(-0.05)</script>
|
||||||
|
</binding>
|
||||||
</action>
|
</action>
|
||||||
</animation>
|
</animation>
|
||||||
|
|
||||||
|
@ -693,11 +682,10 @@ Syd Adams
|
||||||
<action>
|
<action>
|
||||||
<button>0</button>
|
<button>0</button>
|
||||||
<repeatable>true</repeatable>
|
<repeatable>true</repeatable>
|
||||||
<interval-sec>0.1</interval-sec>
|
<interval-sec>0.2</interval-sec>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/instrumentation/kns-80/data-adjust</property>
|
<script>systems.kns80.data_adjust(1)</script>
|
||||||
<value>1</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</action>
|
</action>
|
||||||
</animation>
|
</animation>
|
||||||
|
@ -708,11 +696,10 @@ Syd Adams
|
||||||
<action>
|
<action>
|
||||||
<button>1</button>
|
<button>1</button>
|
||||||
<repeatable>true</repeatable>
|
<repeatable>true</repeatable>
|
||||||
<interval-sec>0.1</interval-sec>
|
<interval-sec>0.2</interval-sec>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/instrumentation/kns-80/data-adjust</property>
|
<script>systems.kns80.data_adjust(-1)</script>
|
||||||
<value>-1</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</action>
|
</action>
|
||||||
</animation>
|
</animation>
|
||||||
|
@ -723,9 +710,8 @@ Syd Adams
|
||||||
<action>
|
<action>
|
||||||
<button>3</button>
|
<button>3</button>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/instrumentation/kns-80/data-adjust</property>
|
<script>systems.kns80.data_adjust(1)</script>
|
||||||
<value>1</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</action>
|
</action>
|
||||||
</animation>
|
</animation>
|
||||||
|
@ -736,9 +722,8 @@ Syd Adams
|
||||||
<action>
|
<action>
|
||||||
<button>4</button>
|
<button>4</button>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/instrumentation/kns-80/data-adjust</property>
|
<script>systems.kns80.data_adjust(-1)</script>
|
||||||
<value>-1</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</action>
|
</action>
|
||||||
</animation>
|
</animation>
|
||||||
|
@ -749,11 +734,10 @@ Syd Adams
|
||||||
<action>
|
<action>
|
||||||
<button>0</button>
|
<button>0</button>
|
||||||
<repeatable>true</repeatable>
|
<repeatable>true</repeatable>
|
||||||
<interval-sec>0.1</interval-sec>
|
<interval-sec>0.2</interval-sec>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/instrumentation/kns-80/data-adjust</property>
|
<script>systems.kns80.data_adjust(10)</script>
|
||||||
<value>10</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</action>
|
</action>
|
||||||
</animation>
|
</animation>
|
||||||
|
@ -764,11 +748,10 @@ Syd Adams
|
||||||
<action>
|
<action>
|
||||||
<button>1</button>
|
<button>1</button>
|
||||||
<repeatable>true</repeatable>
|
<repeatable>true</repeatable>
|
||||||
<interval-sec>0.1</interval-sec>
|
<interval-sec>0.2</interval-sec>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/instrumentation/kns-80/data-adjust</property>
|
<script>systems.kns80.data_adjust(-10)</script>
|
||||||
<value>-10</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</action>
|
</action>
|
||||||
</animation>
|
</animation>
|
||||||
|
@ -779,9 +762,8 @@ Syd Adams
|
||||||
<action>
|
<action>
|
||||||
<button>3</button>
|
<button>3</button>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/instrumentation/kns-80/data-adjust</property>
|
<script>systems.kns80.data_adjust(10)</script>
|
||||||
<value>10</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</action>
|
</action>
|
||||||
</animation>
|
</animation>
|
||||||
|
@ -792,9 +774,8 @@ Syd Adams
|
||||||
<action>
|
<action>
|
||||||
<button>4</button>
|
<button>4</button>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>/instrumentation/kns-80/data-adjust</property>
|
<script>systems.kns80.data_adjust(-10)</script>
|
||||||
<value>-10</value>
|
|
||||||
</binding>
|
</binding>
|
||||||
</action>
|
</action>
|
||||||
</animation>
|
</animation>
|
||||||
|
@ -806,8 +787,8 @@ Syd Adams
|
||||||
<button>0</button>
|
<button>0</button>
|
||||||
<repeatable>false</repeatable>
|
<repeatable>false</repeatable>
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-toggle</command>
|
<command>nasal</command>
|
||||||
<property>instrumentation/kns-80/dme-hold</property>
|
<script>systems.kns80.DME_hold();</script>
|
||||||
</binding>
|
</binding>
|
||||||
</action>
|
</action>
|
||||||
</animation>
|
</animation>
|
||||||
|
@ -817,12 +798,10 @@ Syd Adams
|
||||||
<object-name>USE.btn</object-name>
|
<object-name>USE.btn</object-name>
|
||||||
<action>
|
<action>
|
||||||
<button>0</button>
|
<button>0</button>
|
||||||
<repeatable>false</repeatable>
|
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>nasal</command>
|
||||||
<property>instrumentation/kns-80/use</property>
|
<script>systems.kns80.use_btn();</script>
|
||||||
<property>instrumentation/kns-80/display</property>
|
</binding>
|
||||||
</binding>
|
|
||||||
</action>
|
</action>
|
||||||
</animation>
|
</animation>
|
||||||
|
|
||||||
|
@ -831,15 +810,10 @@ Syd Adams
|
||||||
<object-name>DSP.btn</object-name>
|
<object-name>DSP.btn</object-name>
|
||||||
<action>
|
<action>
|
||||||
<button>0</button>
|
<button>0</button>
|
||||||
<repeatable>false</repeatable>
|
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-adjust</command>
|
<command>nasal</command>
|
||||||
<property>instrumentation/kns-80/display</property>
|
<script>systems.kns80.display_btn();</script>
|
||||||
<step>1</step>
|
</binding>
|
||||||
<min>0</min>
|
|
||||||
<max>4</max>
|
|
||||||
<wrap>true</wrap>
|
|
||||||
</binding>
|
|
||||||
</action>
|
</action>
|
||||||
</animation>
|
</animation>
|
||||||
|
|
||||||
|
@ -848,14 +822,9 @@ Syd Adams
|
||||||
<object-name>DATA.btn</object-name>
|
<object-name>DATA.btn</object-name>
|
||||||
<action>
|
<action>
|
||||||
<button>0</button>
|
<button>0</button>
|
||||||
<repeatable>false</repeatable>
|
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-adjust</command>
|
<command>nasal</command>
|
||||||
<property>instrumentation/kns-80/data-mode</property>
|
<script>systems.kns80.data_btn()</script>
|
||||||
<step>1</step>
|
|
||||||
<min>0</min>
|
|
||||||
<max>3</max>
|
|
||||||
<wrap>true</wrap>
|
|
||||||
</binding>
|
</binding>
|
||||||
</action>
|
</action>
|
||||||
</animation>
|
</animation>
|
||||||
|
|
Loading…
Reference in a new issue