1
0
Fork 0

More RNAV updates from Ron Jensen...

This commit is contained in:
sydadams 2007-04-20 03:15:05 +00:00
parent 60010498d5
commit e104c45584
2 changed files with 10 additions and 3 deletions

View file

@ -105,7 +105,7 @@ setlistener("/instrumentation/kns-80/displayed-radial", func {
var num = KNS80.getNode("display").getValue(); var num = KNS80.getNode("display").getValue();
var radial = KNS80.getNode("use").getValue(); var radial = KNS80.getNode("use").getValue();
KNS80.getNode("wpt[" ~ num ~ "]/radial").setValue(rad); KNS80.getNode("wpt[" ~ num ~ "]/radial").setValue(rad);
NAV1_RADIAL.setValue(KNS80.getNode("wpt[" ~ radial ~ "]/radial").getValue()); # NAV1_RADIAL.setValue(KNS80.getNode("wpt[" ~ radial ~ "]/radial").getValue());
} }
}); });

View file

@ -418,8 +418,13 @@
<command>nasal</command> <command>nasal</command>
<script> <script>
test = getprop("/instrumentation/kns-80/nav-mode"); test = getprop("/instrumentation/kns-80/nav-mode");
if(test != 0){setprop("/instrumentation/kns-80/nav-mode",0); if(test != 0){
}else{setprop("/instrumentation/kns-80/nav-mode",1);} 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> </script>
</binding> </binding>
</action> </action>
@ -437,6 +442,8 @@
test = getprop("/instrumentation/kns-80/nav-mode"); test = getprop("/instrumentation/kns-80/nav-mode");
if(test != 2){setprop("/instrumentation/kns-80/nav-mode",2); if(test != 2){setprop("/instrumentation/kns-80/nav-mode",2);
}else{setprop("/instrumentation/kns-80/nav-mode",3);} }else{setprop("/instrumentation/kns-80/nav-mode",3);}
setprop("/instrumentation/nav/slaved-to-gps", 1);
</script> </script>
</binding> </binding>
</action> </action>