1
0
Fork 0

Aircraft/Instruments-3d/: Added missing var keywords.

This commit is contained in:
Anders Gidenstam 2010-10-04 21:43:22 +02:00
parent 3f1c9d1be5
commit 4699b1e520
2 changed files with 6 additions and 5 deletions

View file

@ -1,6 +1,6 @@
var m877 = {
new : func(prop1){
m = { parents : [m877]};
var m = { parents : [m877]};
m.MODE =0;
m.flip =0;
m.digit_to_set=0;
@ -205,4 +205,4 @@ setlistener("/sim/signals/fdm-initialized", func {
var update = func{
davtron.update_clock();
settimer(update,0.5);
}
}

View file

@ -3,7 +3,7 @@
# ie: var primus = P1000.new(prop);
var P1000 = {
new : func(prop){
m = { parents : [P1000]};
var m = { parents : [P1000]};
m.FMS_VNAV =["VNV","FMS"];
m.NAV_SRC = ["VOR1","VOR2","ILS1","ILS2","FMS"];
m.NAV_PTR_SRC = [" ","NAV","ADF","FMS"];
@ -91,6 +91,7 @@ var P1000 = {
#### pointer needle update ####
get_pointer_offset : func(test,src){
var hdg = getprop("/orientation/heading-magnetic-deg");
var offset = 0;
if(test==0 or test == nil)return 0.0;
if(test == 1){
offset=getprop("/instrumentation/nav["~src~"]/heading-deg") or 0;
@ -100,7 +101,7 @@ var P1000 = {
}elsif(test == 2){
offset = getprop("/instrumentation/adf/indicated-bearing-deg");
}elsif(test == 3){
offset = getprop("/autopilot/internal/true-heading-error-deg");
offset = getprop("/autopilot/internal/true-heading-error-deg");
}
return offset;
},
@ -306,7 +307,7 @@ var P1000 = {
me.NavID.setValue(id);
me.NavTime.setValue(ttg);
var RA =0;
tmp =me.DH.getValue();
var tmp =me.DH.getValue();
if(tmp > getprop("position/altitude-agl-ft") and tmp !=0)RA=1;
me.ctl_RA.setBoolValue(RA);
},