From 255d3f2790fd46d1177c8dfef4bbe262003b9712 Mon Sep 17 00:00:00 2001 From: sydadams Date: Wed, 16 Sep 2009 19:49:51 +0000 Subject: [PATCH] removed obsolete file --- Aircraft/Instruments-3d/ky196/KY196.nas | 28 ------------------------- 1 file changed, 28 deletions(-) delete mode 100644 Aircraft/Instruments-3d/ky196/KY196.nas diff --git a/Aircraft/Instruments-3d/ky196/KY196.nas b/Aircraft/Instruments-3d/ky196/KY196.nas deleted file mode 100644 index 1d82ac494..000000000 --- a/Aircraft/Instruments-3d/ky196/KY196.nas +++ /dev/null @@ -1,28 +0,0 @@ -#### King KY-196 Comm Transciever #### -#### Syd Adams #### -#### -####Must be included in the Set file to run the KY-196 radio -#### - -KY196 = props.globals.getNode("/instrumentation/ky-196",1); -FDM_ON = 0; - -setlistener("/sim/signals/fdm-initialized", func { - KY196.getNode("comm-num",1).setIntValue(0); - KY196.getNode("volume-adjust",1).setDoubleValue(0); - FDM_ON = 1; - print("KY-196 Comm System ... OK"); - }); - -setlistener("/instrumentation/ky-196/volume-adjust", func(n) { - if(FDM_ON == 0){return;} - var setting = n.getValue(); - n.setDoubleValue(0); - comm_num = KY196.getNode("comm-num").getValue(); - var commNode = props.globals.getNode("instrumentation/comm[" ~ comm_num ~"]"); - var vol = commNode.getNode("volume").getValue() + setting; - if(vol > 1.0){vol = 1.0;} - if(vol < 0.0){vol = 0.0;commNode.getNode("serviceable").setBoolValue(0);} - if(vol > 0.0){commNode.getNode("serviceable").setBoolValue(1);} - commNode.getNode("volume").setDoubleValue(vol); - });