1
0
Fork 0

minor fixes and catching up

This commit is contained in:
sydadams 2007-04-15 16:54:09 +00:00
parent d5e2f26a84
commit 9f811b66c6
3 changed files with 15 additions and 10 deletions

View file

@ -132,7 +132,7 @@ update_nav = func {
if(VNAV == "gs-arm"){ if(VNAV == "gs-arm"){
if(NAVGS_RANGE.getValue()< 30000){ if(NAVGS_RANGE.getValue()< 30000){
test = GS_DEFLECTION.getValue(); test = GS_DEFLECTION.getValue();
if(test < 10 or test > -10){fdprop.getNode("fdmodeV").setValue("gs");} if(test < 1 ){fdprop.getNode("fdmodeV").setValue("gs");}
} }
} }
@ -141,6 +141,12 @@ update_nav = func {
if(offset > -990 and offset < 990){ if(offset > -990 and offset < 990){
fdprop.getNode("fdmodeV").setValue("alt");} fdprop.getNode("fdmodeV").setValue("alt");}
} }
if(VNAV == "alt"){
offset = fdprop.getNode("alt-offset").getValue();
if(offset < -990 and offset > 990){
fdprop.getNode("fdmodeV").setValue("alt-arm");}
}
} }
get_altoffset = func{ get_altoffset = func{
@ -161,4 +167,3 @@ update = func {
} }
settimer(update, 0); settimer(update, 0);

View file

@ -214,9 +214,9 @@ Syd Adams
<object-name>kfc-crs.001</object-name> <object-name>kfc-crs.001</object-name>
<property>instrumentation/nav/heading-needle-deflection</property> <property>instrumentation/nav/heading-needle-deflection</property>
<interpolation> <interpolation>
<entry><ind>-10.0</ind><dep>-0.0193</dep></entry> <entry><ind>-10.0</ind><dep>-0.018</dep></entry>
<entry><ind>0.0</ind><dep>0.0</dep></entry> <entry><ind>0.0</ind><dep>0.0</dep></entry>
<entry><ind>10.0</ind><dep>0.0193</dep></entry> <entry><ind>10.0</ind><dep>0.018</dep></entry>
</interpolation> </interpolation>
<axis> <axis>
<x>0.0</x> <x>0.0</x>
@ -235,11 +235,11 @@ Syd Adams
<object-name>GSneedle</object-name> <object-name>GSneedle</object-name>
<property>instrumentation/nav/gs-needle-deflection</property> <property>instrumentation/nav/gs-needle-deflection</property>
<interpolation> <interpolation>
<entry><ind>-100.0</ind><dep>-0.0183</dep></entry> <entry><ind>-100.0</ind><dep>-0.010</dep></entry>
<entry><ind>-10.0</ind><dep>-0.0183</dep></entry> <entry><ind>-5.0</ind><dep>-0.010</dep></entry>
<entry><ind>0.0</ind><dep>0.0</dep></entry> <entry><ind>0.0</ind><dep>0.0</dep></entry>
<entry><ind>10.0</ind><dep>0.0183</dep></entry> <entry><ind>10.0</ind><dep>0.0172</dep></entry>
<entry><ind>100.0</ind><dep>0.0183</dep></entry> <entry><ind>100.0</ind><dep>0.0172</dep></entry>
</interpolation> </interpolation>
<axis> <axis>
<x>0.0</x> <x>0.0</x>

View file

@ -116,7 +116,7 @@ setlistener("/instrumentation/kns-80/serviceable", func {
setlistener("/instrumentation/kns-80/volume", func { setlistener("/instrumentation/kns-80/volume", func {
if(FDM_ON == 0){return;} if(FDM_ON == 0){return;}
#setprop("/instrumentation/nav/volume",cmdarg().getValue()); setprop("/instrumentation/nav/volume",cmdarg().getValue());
setprop("/instrumentation/dme/volume",cmdarg().getValue()); setprop("/instrumentation/dme/volume",cmdarg().getValue());
}); });