diff --git a/Aircraft/Instruments-3d/kns80/KNS80.nas b/Aircraft/Instruments-3d/kns80/KNS80.nas index 87279370f..ffafbf6c5 100644 --- a/Aircraft/Instruments-3d/kns80/KNS80.nas +++ b/Aircraft/Instruments-3d/kns80/KNS80.nas @@ -1,5 +1,6 @@ #### King KNS-80 Integrated Navigation System #### #### Syd Adams #### +#### Ron Jensen #### #### #### Must be included in the Set file to run the KNS80 radio #### @@ -106,7 +107,15 @@ setlistener("/instrumentation/kns-80/displayed-radial", func { NAV1_RADIAL.setValue(KNS80.getNode("wpt[" ~ radial ~ "]/radial").getValue()); } }); - + +setlistener("/instrumentation/kns-80/displayed-distance", func { + if(FDM_ON != 0){ + var dis = cmdarg().getValue(); + var num = KNS80.getNode("display").getValue(); + KNS80.getNode("wpt[" ~ num ~ "]/distance").setValue(dis); + } + }); + setlistener("/instrumentation/kns-80/serviceable", func { if(FDM_ON != 0){ setprop("/instrumentation/nav/serviceable",cmdarg().getValue()); diff --git a/Aircraft/Instruments-3d/kns80/kns80.xml b/Aircraft/Instruments-3d/kns80/kns80.xml index 075de7c6e..83da524b6 100644 --- a/Aircraft/Instruments-3d/kns80/kns80.xml +++ b/Aircraft/Instruments-3d/kns80/kns80.xml @@ -413,7 +413,8 @@ Syd Adams <property>instrumentation/kns-80/displayed-distance</property> <factor>0.01</factor> <step>10</step> - <axis> + <bias>0.005</bias> + <axis> <x>1</x> <y>0</y> <z>0</z> @@ -425,7 +426,8 @@ Syd Adams <object-name>dist.102</object-name> <property>instrumentation/kns-80/displayed-distance</property> <factor>0.1</factor> - <step>1</step> + <bias>0.005</bias> + <step>1</step> <axis> <x>1</x> <y>0</y> @@ -439,7 +441,8 @@ Syd Adams <property>instrumentation/kns-80/displayed-distance</property> <factor>1.0</factor> <step>0.1</step> - <axis> + <bias>0.005</bias> + <axis> <x>1</x> <y>0</y> <z>0</z> @@ -454,6 +457,7 @@ Syd Adams <property>instrumentation/dme/indicated-distance-nm</property> <factor>0.01</factor> <step>10</step> + <bias>0.05</bias> <axis> <x>1</x> <y>0</y> @@ -467,6 +471,7 @@ Syd Adams <property>instrumentation/dme/indicated-distance-nm</property> <factor>0.1</factor> <step>1</step> + <bias>0.05</bias> <axis> <x>1</x> <y>0</y> @@ -480,6 +485,7 @@ Syd Adams <property>instrumentation/dme/indicated-distance-nm</property> <factor>1.0</factor> <step>0.1</step> + <bias>0.05</bias> <axis> <x>1</x> <y>0</y>