From 89467fe9ca15cad0a41ba7f6da1958e10e996056 Mon Sep 17 00:00:00 2001 From: sydadams Date: Wed, 12 Dec 2007 05:31:44 +0000 Subject: [PATCH] Added hotspots and nasal file for the b1900d trancievers ... didnt realize they only had OSG hotspots... and nasal control because the tag doesn't seem to work here --- .../VHF-22/ctl22-com1-hotspot.xml | 149 ++++++++++++++++++ Aircraft/Instruments-3d/VHF-22/ctl22-com1.xml | 88 +++++------ .../VHF-22/ctl22-com2-hotspot.xml | 149 ++++++++++++++++++ Aircraft/Instruments-3d/VHF-22/ctl22-com2.xml | 114 ++++++-------- Aircraft/Instruments-3d/VHF-22/vhf22.nas | 38 +++++ .../VIR-32/ctl32-nav1-hotspot.xml | 149 ++++++++++++++++++ Aircraft/Instruments-3d/VIR-32/ctl32-nav1.xml | 74 ++++----- .../VIR-32/ctl32-nav2-hotspot.xml | 149 ++++++++++++++++++ Aircraft/Instruments-3d/VIR-32/ctl32-nav2.xml | 97 ++++++------ Aircraft/Instruments-3d/VIR-32/vir32.nas | 38 +++++ 10 files changed, 838 insertions(+), 207 deletions(-) create mode 100644 Aircraft/Instruments-3d/VHF-22/ctl22-com1-hotspot.xml create mode 100644 Aircraft/Instruments-3d/VHF-22/ctl22-com2-hotspot.xml create mode 100644 Aircraft/Instruments-3d/VHF-22/vhf22.nas create mode 100644 Aircraft/Instruments-3d/VIR-32/ctl32-nav1-hotspot.xml create mode 100644 Aircraft/Instruments-3d/VIR-32/ctl32-nav2-hotspot.xml create mode 100644 Aircraft/Instruments-3d/VIR-32/vir32.nas diff --git a/Aircraft/Instruments-3d/VHF-22/ctl22-com1-hotspot.xml b/Aircraft/Instruments-3d/VHF-22/ctl22-com1-hotspot.xml new file mode 100644 index 000000000..d0f02c93a --- /dev/null +++ b/Aircraft/Instruments-3d/VHF-22/ctl22-com1-hotspot.xml @@ -0,0 +1,149 @@ + + + + + Comm1 hotspots + 60 + 68 + 60 + 68 + + + + + + swap freq + + 17 + 13 + 10 + 10 + false + + property-swap + /instrumentation/VHF-22/comm1 + /instrumentation/VHF-22/standby1 + + + + + power off + + -22 + -26 + 8 + 15 + false + + property-assign + /instrumentation/comm/serviceable + false + + + + + power on + + -14 + -26 + 8 + 15 + false + + property-assign + /instrumentation/comm/serviceable + true + + + + + stby down + + 8 + -24 + 9 + 18 + true + 0.2 + + property-adjust + /instrumentation/VHF-22/standby1 + -25 + 118000 + 136000 + true + + + + + stby up + + 17 + -24 + 9 + 18 + true + 0.2 + + property-adjust + /instrumentation/VHF-22/standby1 + 25 + 118000 + 136000 + true + + + + + stby down large + + 8 + -24 + 9 + 18 + true + 0.2 + + property-adjust + /instrumentation/VHF-22/standby1 + -1000 + 118000 + 136000 + true + + + + + stby up large + + 17 + 8 + -24 + 9 + 18 + true + 0.2 + + property-adjust + /instrumentation/VHF-22/standby1 + 1000 + 118000 + 136000 + true + + + + + + \ No newline at end of file diff --git a/Aircraft/Instruments-3d/VHF-22/ctl22-com1.xml b/Aircraft/Instruments-3d/VHF-22/ctl22-com1.xml index 5d1edc1f0..1390eb309 100644 --- a/Aircraft/Instruments-3d/VHF-22/ctl22-com1.xml +++ b/Aircraft/Instruments-3d/VHF-22/ctl22-com1.xml @@ -81,10 +81,9 @@ Syd Adams textranslate freq.001 - instrumentation/comm/frequencies/selected-mhz - 0.001 - 100 - 0.0005 + instrumentation/VHF-22/comm1 + 0.000001 + 100000 0 1 @@ -95,10 +94,9 @@ Syd Adams textranslate freq.002 - instrumentation/comm/frequencies/selected-mhz - 0.01 - 10 - 0.0005 + instrumentation/VHF-22/comm1 + 0.00001 + 10000 0 1 @@ -109,10 +107,9 @@ Syd Adams textranslate freq.003 - instrumentation/comm/frequencies/selected-mhz - 0.1 - 1 - 0.00005 + instrumentation/VHF-22/comm1 + 0.0001 + 1000 0 1 @@ -123,10 +120,9 @@ Syd Adams textranslate freq.004 - instrumentation/comm/frequencies/selected-mhz - 1.0 - 0.1 - 0.00005 + instrumentation/VHF-22/comm1 + 0.001 + 100 0 1 @@ -137,10 +133,9 @@ Syd Adams textranslate freq.005 - instrumentation/comm/frequencies/selected-mhz - 10.0 - 0.01 - 0.00005 + instrumentation/VHF-22/comm1 + 0.01 + 10 0 1 @@ -151,10 +146,9 @@ Syd Adams textranslate freq.006 - instrumentation/comm/frequencies/selected-mhz - 100.0 - 0.001 - 0.00005 + instrumentation/VHF-22/comm1 + 0.1 + 1 0 1 @@ -167,10 +161,9 @@ Syd Adams textranslate stby.001 - instrumentation/comm/frequencies/standby-mhz - 0.001 - 100 - 0.00005 + instrumentation/VHF-22/standby1 + 0.000001 + 100000 0 1 @@ -181,10 +174,9 @@ Syd Adams textranslate stby.002 - instrumentation/comm/frequencies/standby-mhz - 0.01 - 10 - 0.00005 + instrumentation/VHF-22/standby1 + 0.00001 + 10000 0 1 @@ -195,10 +187,9 @@ Syd Adams textranslate stby.003 - instrumentation/comm/frequencies/standby-mhz - 0.1 - 1 - 0.00005 + instrumentation/VHF-22/standby1 + 0.0001 + 1000 0 1 @@ -209,10 +200,9 @@ Syd Adams textranslate stby.004 - instrumentation/comm/frequencies/standby-mhz - 1.0 - 0.1 - 0.00005 + instrumentation/VHF-22/standby1 + 0.001 + 100 0 1 @@ -223,10 +213,9 @@ Syd Adams textranslate stby.005 - instrumentation/comm/frequencies/standby-mhz - 10.0 - 0.01 - 0.00005 + instrumentation/VHF-22/standby1 + 0.01 + 10 0 1 @@ -237,10 +226,9 @@ Syd Adams textranslate stby.006 - instrumentation/comm/frequencies/standby-mhz - 100.0 - 0.001 - 0.00005 + instrumentation/VHF-22/standby1 + 0.1 + 1 0 1 @@ -248,7 +236,7 @@ Syd Adams - + \ No newline at end of file diff --git a/Aircraft/Instruments-3d/VHF-22/ctl22-com2-hotspot.xml b/Aircraft/Instruments-3d/VHF-22/ctl22-com2-hotspot.xml new file mode 100644 index 000000000..12513f533 --- /dev/null +++ b/Aircraft/Instruments-3d/VHF-22/ctl22-com2-hotspot.xml @@ -0,0 +1,149 @@ + + + + + Comm2 hotspots + 60 + 68 + 60 + 68 + + + + + + swap freq + + 17 + 13 + 10 + 10 + false + + property-swap + /instrumentation/VHF-22/comm2 + /instrumentation/VHF-22/standby2 + + + + + power off + + -22 + -26 + 8 + 15 + false + + property-assign + /instrumentation/comm/serviceable + false + + + + + power on + + -14 + -26 + 8 + 15 + false + + property-assign + /instrumentation/comm/serviceable + true + + + + + stby down + + 8 + -24 + 9 + 18 + true + 0.2 + + property-adjust + /instrumentation/VHF-22/standby2 + -25 + 118000 + 136000 + true + + + + + stby up + + 17 + -24 + 9 + 18 + true + 0.2 + + property-adjust + /instrumentation/VHF-22/standby2 + 25 + 118000 + 136000 + true + + + + + stby down large + + 8 + -24 + 9 + 18 + true + 0.2 + + property-adjust + /instrumentation/VHF-22/standby2 + -1000 + 118000 + 136000 + true + + + + + stby up large + + 17 + 8 + -24 + 9 + 18 + true + 0.2 + + property-adjust + /instrumentation/VHF-22/standby2 + 1000 + 118000 + 136000 + true + + + + + + \ No newline at end of file diff --git a/Aircraft/Instruments-3d/VHF-22/ctl22-com2.xml b/Aircraft/Instruments-3d/VHF-22/ctl22-com2.xml index 5511ef0a3..3c5165f7f 100644 --- a/Aircraft/Instruments-3d/VHF-22/ctl22-com2.xml +++ b/Aircraft/Instruments-3d/VHF-22/ctl22-com2.xml @@ -1,5 +1,5 @@ - + \ No newline at end of file diff --git a/Aircraft/Instruments-3d/VHF-22/vhf22.nas b/Aircraft/Instruments-3d/VHF-22/vhf22.nas new file mode 100644 index 000000000..54162dea8 --- /dev/null +++ b/Aircraft/Instruments-3d/VHF-22/vhf22.nas @@ -0,0 +1,38 @@ +#### VHF-22 tranciever #### +#### Syd Adams #### + +var VHF = props.globals.getNode("/instrumentation/VHF-22",1); +var VH1_STBY = VHF.getNode("standby1",1); +var VH2_STBY = VHF.getNode("standby2",1); +var VH1_COMM = VHF.getNode("comm1",1); +var VH2_COMM = VHF.getNode("comm2",1); + +var SB1=props.globals.getNode("/instrumentation/comm/frequencies/standby-mhz"); +var SB2=props.globals.getNode("/instrumentation/comm[1]/frequencies/standby-mhz"); +var COMM1=props.globals.getNode("/instrumentation/comm/frequencies/selected-mhz"); +var COMM2=props.globals.getNode("/instrumentation/comm[1]/frequencies/selected-mhz"); + + +setlistener("/sim/signals/fdm-initialized", func { + VH1_STBY.setValue(getprop("/instrumentation/comm/frequencies/standby-mhz")*1000); + VH2_STBY.setValue(getprop("/instrumentation/comm[1]/frequencies/standby-mhz")*1000); + VH1_COMM.setValue(getprop("/instrumentation/comm/frequencies/selected-mhz")*1000); + VH2_COMM.setValue(getprop("/instrumentation/comm[1]/frequencies/selected-mhz")*1000); + print("VHF-22 ... OK"); + }); + +setlistener("/instrumentation/VHF-22/standby1", func(sb1){ + SB1.setValue(sb1.getValue() * 0.001); + },0,0); + +setlistener("/instrumentation/VHF-22/standby2", func(sb2){ + SB2.setValue(sb2.getValue() * 0.001); + },0,0); + +setlistener("/instrumentation/VHF-22/comm1", func(cm1){ + COMM1.setValue(cm1.getValue() * 0.001); + },0,0); + +setlistener("/instrumentation/VHF-22/comm2", func(cm2){ + COMM2.setValue(cm2.getValue() * 0.001); + },0,0); diff --git a/Aircraft/Instruments-3d/VIR-32/ctl32-nav1-hotspot.xml b/Aircraft/Instruments-3d/VIR-32/ctl32-nav1-hotspot.xml new file mode 100644 index 000000000..70a3cc12d --- /dev/null +++ b/Aircraft/Instruments-3d/VIR-32/ctl32-nav1-hotspot.xml @@ -0,0 +1,149 @@ + + + + + Nav 1 hotspots + 60 + 68 + 60 + 68 + + + + + + swap freq + + 17 + 13 + 10 + 10 + false + + property-swap + /instrumentation/VIR-32/nav1 + /instrumentation/VIR-32/standby1 + + + + + power off + + -22 + -26 + 8 + 15 + false + + property-assign + /instrumentation/nav/serviceable + false + + + + + power on + + -14 + -26 + 8 + 15 + false + + property-assign + /instrumentation/nav/serviceable + true + + + + + stby down + + 8 + -24 + 9 + 18 + true + 0.2 + + property-adjust + /instrumentation/VIR-32/standby1 + -5 + 10800 + 11800 + true + + + + + stby up + + 17 + -24 + 9 + 18 + true + 0.2 + + property-adjust + /instrumentation/VIR-32/standby1 + 5 + 10800 + 11800 + true + + + + + stby down large + + 8 + -24 + 9 + 18 + true + 0.2 + + property-adjust + /instrumentation/VIR-32/standby1 + -100 + 10800 + 11800 + true + + + + + stby up large + + 17 + 8 + -24 + 9 + 18 + true + 0.2 + + property-adjust + /instrumentation/VIR-32/standby1 + 100 + 10800 + 11800 + true + + + + + + \ No newline at end of file diff --git a/Aircraft/Instruments-3d/VIR-32/ctl32-nav1.xml b/Aircraft/Instruments-3d/VIR-32/ctl32-nav1.xml index b15be810a..7e42f6269 100644 --- a/Aircraft/Instruments-3d/VIR-32/ctl32-nav1.xml +++ b/Aircraft/Instruments-3d/VIR-32/ctl32-nav1.xml @@ -81,10 +81,9 @@ Syd Adams textranslate freq.001 - instrumentation/nav/frequencies/selected-mhz - 0.001 - 100 - 0.0005 + instrumentation/VIR-32/nav1 + 0.00001 + 10000 0 1 @@ -95,10 +94,9 @@ Syd Adams textranslate freq.002 - instrumentation/nav/frequencies/selected-mhz - 0.01 - 10 - 0.0005 + instrumentation/VIR-32/nav1 + 0.0001 + 1000 0 1 @@ -109,10 +107,9 @@ Syd Adams textranslate freq.003 - instrumentation/nav/frequencies/selected-mhz - 0.1 - 1 - 0.0005 + instrumentation/VIR-32/nav1 + 0.001 + 100 0 1 @@ -123,10 +120,9 @@ Syd Adams textranslate freq.004 - instrumentation/nav/frequencies/selected-mhz - 1.0 - 0.1 - 0.0005 + instrumentation/VIR-32/nav1 + 0.01 + 10 0 1 @@ -137,10 +133,9 @@ Syd Adams textranslate freq.005 - instrumentation/nav/frequencies/selected-mhz - 10.0 - 0.01 - 0.0005 + instrumentation/VIR-32/nav1 + 0.1 + 1 0 1 @@ -153,10 +148,9 @@ Syd Adams textranslate stby.001 - instrumentation/nav/frequencies/standby-mhz - 0.001 - 100 - 0.0005 + instrumentation/VIR-32/standby1 + 0.00001 + 10000 0 1 @@ -167,10 +161,9 @@ Syd Adams textranslate stby.002 - instrumentation/nav/frequencies/standby-mhz - 0.01 - 10 - 0.0005 + instrumentation/VIR-32/standby1 + 0.0001 + 1000 0 1 @@ -181,10 +174,9 @@ Syd Adams textranslate stby.003 - instrumentation/nav/frequencies/standby-mhz - 0.1 - 1 - 0.0005 + instrumentation/VIR-32/standby1 + 0.001 + 100 0 1 @@ -195,10 +187,9 @@ Syd Adams textranslate stby.004 - instrumentation/nav/frequencies/standby-mhz - 1.0 - 0.1 - 0.0005 + instrumentation/VIR-32/standby1 + 0.01 + 10 0 1 @@ -209,10 +200,9 @@ Syd Adams textranslate stby.005 - instrumentation/nav/frequencies/standby-mhz - 10.0 - 0.01 - 0.0005 + instrumentation/VIR-32/standby1 + 0.1 + 1 0 1 @@ -220,7 +210,7 @@ Syd Adams - + \ No newline at end of file diff --git a/Aircraft/Instruments-3d/VIR-32/ctl32-nav2-hotspot.xml b/Aircraft/Instruments-3d/VIR-32/ctl32-nav2-hotspot.xml new file mode 100644 index 000000000..fdb338a9c --- /dev/null +++ b/Aircraft/Instruments-3d/VIR-32/ctl32-nav2-hotspot.xml @@ -0,0 +1,149 @@ + + + + + Nav 2 hotspots + 60 + 68 + 60 + 68 + + + + + + swap freq + + 17 + 13 + 10 + 10 + false + + property-swap + /instrumentation/VIR-32/nav2 + /instrumentation/VIR-32/standby2 + + + + + power off + + -22 + -26 + 8 + 15 + false + + property-assign + /instrumentation/nav[1]/serviceable + false + + + + + power on + + -14 + -26 + 8 + 15 + false + + property-assign + /instrumentation/nav[1]/serviceable + true + + + + + stby down + + 8 + -24 + 9 + 18 + true + 0.2 + + property-adjust + /instrumentation/VIR-32/standby2 + -5 + 10800 + 11800 + true + + + + + stby up + + 17 + -24 + 9 + 18 + true + 0.2 + + property-adjust + /instrumentation/VIR-32/standby2 + 5 + 10800 + 11800 + true + + + + + stby down large + + 8 + -24 + 9 + 18 + true + 0.2 + + property-adjust + /instrumentation/VIR-32/standby2 + -100 + 10800 + 11800 + true + + + + + stby up large + + 17 + 8 + -24 + 9 + 18 + true + 0.2 + + property-adjust + /instrumentation/VIR-32/standby2 + 100 + 10800 + 11800 + true + + + + + + \ No newline at end of file diff --git a/Aircraft/Instruments-3d/VIR-32/ctl32-nav2.xml b/Aircraft/Instruments-3d/VIR-32/ctl32-nav2.xml index e827bc947..b7ce8975e 100644 --- a/Aircraft/Instruments-3d/VIR-32/ctl32-nav2.xml +++ b/Aircraft/Instruments-3d/VIR-32/ctl32-nav2.xml @@ -49,7 +49,10 @@ Syd Adams select mem.annun - instrumentation/nav[1]/serviceable + + /systems/electrical/outputs/nav[1] + 1 + @@ -78,10 +81,9 @@ Syd Adams textranslate freq.001 - instrumentation/nav[1]/frequencies/selected-mhz - 0.001 - 100 - 0.0005 + instrumentation/VIR-32/nav2 + 0.00001 + 10000 0 1 @@ -92,10 +94,9 @@ Syd Adams textranslate freq.002 - instrumentation/nav[1]/frequencies/selected-mhz - 0.01 - 10 - 0.0005 + instrumentation/VIR-32/nav2 + 0.0001 + 1000 0 1 @@ -106,10 +107,9 @@ Syd Adams textranslate freq.003 - instrumentation/nav[1]/frequencies/selected-mhz - 0.1 - 1 - 0.0005 + instrumentation/VIR-32/nav2 + 0.001 + 100 0 1 @@ -120,10 +120,9 @@ Syd Adams textranslate freq.004 - instrumentation/nav[1]/frequencies/selected-mhz - 1.0 - 0.1 - 0.0005 + instrumentation/VIR-32/nav2 + 0.01 + 10 0 1 @@ -134,10 +133,9 @@ Syd Adams textranslate freq.005 - instrumentation/nav[1]/frequencies/selected-mhz - 10.0 - 0.01 - 0.0005 + instrumentation/VIR-32/nav2 + 0.1 + 1 0 1 @@ -150,10 +148,9 @@ Syd Adams textranslate stby.001 - instrumentation/nav[1]/frequencies/standby-mhz - 0.001 - 100 - 0.0005 + instrumentation/VIR-32/standby2 + 0.00001 + 10000 0 1 @@ -164,10 +161,9 @@ Syd Adams textranslate stby.002 - instrumentation/nav[1]/frequencies/standby-mhz - 0.01 - 10 - 0.0005 + instrumentation/VIR-32/standby2 + 0.0001 + 1000 0 1 @@ -178,10 +174,9 @@ Syd Adams textranslate stby.003 - instrumentation/nav[1]/frequencies/standby-mhz - 0.1 - 1 - 0.0005 + instrumentation/VIR-32/standby2 + 0.001 + 100 0 1 @@ -192,10 +187,9 @@ Syd Adams textranslate stby.004 - instrumentation/nav[1]/frequencies/standby-mhz - 1.0 - 0.1 - 0.0005 + instrumentation/VIR-32/standby2 + 0.01 + 10 0 1 @@ -206,10 +200,9 @@ Syd Adams textranslate stby.005 - instrumentation/nav[1]/frequencies/standby-mhz - 10.0 - 0.01 - 0.0005 + instrumentation/VIR-32/standby2 + 0.1 + 1 0 1 @@ -217,7 +210,7 @@ Syd Adams - + \ No newline at end of file diff --git a/Aircraft/Instruments-3d/VIR-32/vir32.nas b/Aircraft/Instruments-3d/VIR-32/vir32.nas new file mode 100644 index 000000000..74de8db2a --- /dev/null +++ b/Aircraft/Instruments-3d/VIR-32/vir32.nas @@ -0,0 +1,38 @@ +#### VIR-22 NAV reciever #### +#### Syd Adams #### + +var VIR = props.globals.getNode("/instrumentation/VIR-32",1); +var VR1_STBY = VIR.getNode("standby1",1); +var VR2_STBY = VIR.getNode("standby2",1); +var VR1_NAV = VIR.getNode("nav1",1); +var VR2_NAV = VIR.getNode("nav2",1); + +var STBY1=props.globals.getNode("/instrumentation/nav/frequencies/standby-mhz"); +var STBY2=props.globals.getNode("/instrumentation/nav[1]/frequencies/standby-mhz"); +var NAV1=props.globals.getNode("/instrumentation/nav/frequencies/selected-mhz"); +var NAV2=props.globals.getNode("/instrumentation/nav[1]/frequencies/selected-mhz"); + + +setlistener("/sim/signals/fdm-initialized", func { + VR1_STBY.setValue(getprop("/instrumentation/nav/frequencies/standby-mhz")*100); + VR2_STBY.setValue(getprop("/instrumentation/nav[1]/frequencies/standby-mhz")*100); + VR1_NAV.setValue(getprop("/instrumentation/nav/frequencies/selected-mhz")*100); + VR2_NAV.setValue(getprop("/instrumentation/nav[1]/frequencies/selected-mhz")*100); + print("VIR-32 ... OK"); + }); + +setlistener("/instrumentation/VIR-32/standby1", func(sb1){ + STBY1.setValue(sb1.getValue() * 0.01); + },0,0); + +setlistener("/instrumentation/VIR-32/standby2", func(sb2){ + STBY2.setValue(sb2.getValue() * 0.01); + },0,0); + +setlistener("/instrumentation/VIR-32/nav1", func(nm1){ + NAV1.setValue(nm1.getValue() * 0.01); + },0,0); + +setlistener("/instrumentation/VIR-32/nav2", func(nm2){ + NAV2.setValue(nm2.getValue() * 0.01); + },0,0);