Update of /var/cvs/FlightGear-0.9/data/Aircraft/b1900d/Models/Instruments/KLN90B In directory baron.flightgear.org:/tmp/cvs-serv31795/Models/Instruments/KLN90B Added Files: gps.png gps.xml gpstext.xml kln90b.ac kln90b.nas kln90b.xml transparent-bg.png Log Message: Update gps ... collected all gps files into one folder --- NEW FILE --- PNG X´Ú×iËÈ`ªE3hmT`+V¦Ú·vJÕH½ðÓ ZŶ£TVÐÖ©o¥PQrQá¢(b,Ø&!$át}Í>9ûì³¾{¯½÷ÚC&L ÅCÉáF]¢¸Y©¬Q w±ÄÕMHµÑûÓá²DU(.¸PWS=òWctõ°Mzÿ~²¦ÚÕ]DÖ¿wqquã; nÕQUDW46¨ ·±lyIJå¬y.b3_,¡!Æl¨]x|úÌYv ICo·ÜF^ëð#[½hìô(¯¨`.¦BeT:{LxéI&Oäó ±âAD²^bPã<|M}ÖÉ¥I&F.Yl+ óÎ;9×)öözKVk'z{cÜDÐãÆòö'8/þãq.?÷µ/§çÞ^ãF =Ñ7Í !ÐÍýûmå×å\ë_XX¨âP^^;gÎG^R¬¸Yù ¨C ölwûÎÝ:OY%-D?B¡÷PÒ÷Äã0úAP«Äbñ)S´ó8qâÄ:O/..cö42¨Õêo½+¼**+§£¼|µôó¼ðü¯íííÊ1äK¯Ö©T}t§nBqgç¦ßY O.À ¥¥¥EEŵµµJJÎûZ.þéüÚõ¡CàDÖ)Äpwáèè°üX är9 "88ØØoP©T;wî\»v- 7QG_?wapB! I ËåòÌ úMaçÏ aCBBìííãââXJlll||< H rvvÆ"¡ýijj²²2 ÊÊààéû|~üøW[ÆQ./íÉ îßoSÖTsM?3ú]Ù???ü_&¥¤¤%''£ CbÐÕ]ÔsWH(Üûɾð?.ò7æòÕ=y*kÀdÌB ®éàñxÌøäææVVVj´?cÆH$R©Çãùùù¥§§§¤¤lÚ´ (=tE òíÝÿ©tÞ\ìý Bá=~<6ðEBassóÿLý þnâââÉ©Q(nV¶··ø=ÒÐ9ÛS6G.YÌîQ£´3k$a2Ûwîæ~X¶<bÙòK%%sC_»v w}±lù_þ½ÞªÞ!&àQaÞy'çá#õ¯NݶÅ{üø÷>¨UÖmÙüa`P ÙzVïJJ&M¹dqüÚ?/Z8^]è9þ&øø<)HÌËø$ £Gy%H||Ä¿9²[ß²¦ v;úX£¸8î¸cÇ~ðüâèªú°ãÒÙÜDt4Çãáä B½< ³mÛ¾ãÔ©SƧÀQ1+5f JY/-îöJõ·jñ << 2=hX$Úõñns ýÆÏ8ö;eÊÃÏe1Z[[ñaÈd²´´4>ÏùcTuÕúö¹TR2iâDgÏ&§Ø. e~Á²a`£& ç}À+W÷eÀ© 1Ý´qÓß#-/i#ûxôØqÃOG>{Öо®X·náãõ8Ż޺[> EC:bÙòÓg΢SòRI NÒX¶üÀgáÁê5ÿK¯.AôF½\Ìý ÀÀ¹'¸VÀØ58¿pL?ÍÍÍ\DÿW¦°3u{Nv[âøâ³^þ}·gi(pUUjáíí½cÇc'1 ÀÑCòÀäÉñcgvúÚÞY»æ«£:Ýj.îO¤34AiþÍ7¶L5Íñ7Ä k÷Öi#ìl¿~rrr Ë7æÎÛÐÐ`òJ1¤¸¸U«~píÜÓO?Ýñ81Z·¦$u4S*§è øøø¼øâÝzä333wíÚeHNýÞïÃÚO{³A!ÑKXèí6lZóvË)ÚÙÛÝn¹½äõèÔm[DBáì¹aÚ5CD·°ÅFù EûögX¶}çîëeeÁÁÓ³²N£çøñ¯<ø²?ã»»»v8&uI1Ð!S^^nàìÁÞÍP/_Ù·? Yõçµ >Q#G2µXýç5¬Nè ¯½ýÏÿúúõë>jÔ({{{X{+DsÕrøåÞ6 ßáíéååe¸³8 ̽YíûÒ¾ñ¬áæ§÷ zöïܹöӦ-Æ:øÑÝÝ]û\ ÄÒ¥K ¼hff&Ûá« `Î9zÌn/Ë ·þ µKA·þ ÔþOMèIÝöÇ 3IKK_µjázÜl3;;[&Éd²ÊÊʺºº/úùù¹¸¸üæ7¿ñðð 9sf`` T*É~[.çåå;v̨ÚgÍö nç¾/òx<¶VÀ],éSë¿ÜÍ8NÐû¦Ø2(mÆz=)¿üSff¦D"7|U¯7ÿÐÙÿâî/SèlXmOÙ¬3%úÍÝàü|¼íííYÀný(ÊÊÊJwwwÜÇ?À¤IðãöíÛ%ÉÄÇËÂÛÊåòLÇýFi //¦±Äy ÀB"ýY]Ôç±cÇ ??¿ÄÄÄ4£Ú+Z$ô...¸à@áÑ 7}!à ÓûÄ\*)á®B6 kkkÖCH$êÓñ 7oÞÌãñ0FZëIFÍûܸéÃ~öñyã+ëäOÃÿ¶>±®®ÎØGàÀwàcèÇÉd=ÇðLXûlÎÏx_C^U«VÍ3û]¹rGÙÔì-õÿ0fmm-k;ãÏç/²ö,b&"ëäå_É'Ï=»©© í)ûë À0[ --- NEW FILE --- <?xml version="1.0"?> <!-- Honeywell Bendix/King KLN-90B GPS --> <PropertyList> <name>KLN-90B</name> <background>Aircraft/b1900d/Models/Instruments/KLN90B/transparent-bg.png</background> <w>300</w> <h>142</h> <instruments> <instrument include="gpstext.xml"> <name>GPStext</name> <x>150</x> <y>71</y> <w>300</w> <h>142</h> </instrument> </instruments> </PropertyList> --- NEW FILE --- <?xml version="1.0"?> <!-- Honeywell Bendix/King KLN-90B GPS --> <PropertyList> <name>KLN-90B</name> <w-base>300</w-base> <h-base>142</h-base> <layers> <layer> <name>LH line1</name> <type>text</type> <font>courier-bold</font> <point-size>14</point-size> <color> <red>0.4</red> <green>1.0</green> <blue>0.1</blue> </color> <chunks> <chunk> <type>text-value</type> <property>instrumentation/gps-annunciator/LHmode-string[0]</property> </chunk> </chunks> <transformations> <transformation> <type>x-shift</type> <offset>-140</offset> </transformation> <transformation> <type>y-shift</type> <offset>56</offset> </transformation> </transformations> </layer> <layer> <name>LH line2</name> <type>text</type> <font>courier-bold</font> <point-size>14</point-size> <color> <red>0.4</red> <green>1.0</green> <blue>0.1</blue> </color> <chunks> <chunk> <type>text-value</type> <property>instrumentation/gps-annunciator/LHmode-string[1]</property> </chunk> </chunks> <transformations> <transformation> <type>x-shift</type> <offset>-140</offset> </transformation> <transformation> <type>y-shift</type> <offset>35</offset> </transformation> </transformations> </layer> <layer> <name>LH line3</name> <type>text</type> <font>courier-bold</font> <point-size>14</point-size> <color> <red>0.4</red> <green>1.0</green> <blue>0.1</blue> </color> <chunks> <chunk> <type>text-value</type> <property>instrumentation/gps-annunciator/LHmode-string[2]</property> </chunk> </chunks> <transformations> <transformation> <type>x-shift</type> <offset>-140</offset> </transformation> <transformation> <type>y-shift</type> <offset>15</offset> </transformation> </transformations> </layer> <layer> <name>LH line4</name> <type>text</type> <font>courier-bold</font> <point-size>14</point-size> <color> <red>0.4</red> <green>1.0</green> <blue>0.1</blue> </color> <chunks> <chunk> <type>text-value</type> <property>instrumentation/gps-annunciator/LHmode-string[3]</property> </chunk> </chunks> <transformations> <transformation> <type>x-shift</type> <offset>-140</offset> </transformation> <transformation> <type>y-shift</type> <offset>-5</offset> </transformation> </transformations> </layer> <layer> <name>LH line5</name> <type>text</type> <font>courier-bold</font> <point-size>14</point-size> <color> <red>0.4</red> <green>1.0</green> <blue>0.1</blue> </color> <chunks> <chunk> <type>text-value</type> <property>instrumentation/gps-annunciator/LHmode-string[4]</property> </chunk> </chunks> <transformations> <transformation> <type>x-shift</type> <offset>-140</offset> </transformation> <transformation> <type>y-shift</type> <offset>-25</offset> </transformation> </transformations> </layer> <layer> <name>LH line6</name> <type>text</type> <font>courier-bold</font> <point-size>14</point-size> <color> <red>0.4</red> <green>1.0</green> <blue>0.1</blue> </color> <chunks> <chunk> <type>text-value</type> <property>instrumentation/gps-annunciator/LHmode-string[5]</property> </chunk> </chunks> <transformations> <transformation> <type>x-shift</type> <offset>-140</offset> </transformation> <transformation> <type>y-shift</type> <offset>-45</offset> </transformation> </transformations> </layer> <layer> <name>LH line7</name> <type>text</type> <font>courier-bold</font> <point-size>14</point-size> <color> <red>0.4</red> <green>1.0</green> <blue>0.1</blue> </color> <chunks> <chunk> <type>text-value</type> <property>instrumentation/gps-annunciator/LHmode-string[6]</property> </chunk> </chunks> <transformations> <transformation> <type>x-shift</type> <offset>-140</offset> </transformation> <transformation> <type>y-shift</type> <offset>-65</offset> </transformation> </transformations> </layer> <!-- RH menu--> <layer> <name>RH line1</name> <type>text</type> <font>courier-bold</font> <point-size>14</point-size> <color> <red>0.4</red> <green>1.0</green> <blue>0.1</blue> </color> <chunks> <chunk> <type>text-value</type> <property>instrumentation/gps-annunciator/RHmode-string[0]</property> </chunk> </chunks> <transformations> <transformation> <type>x-shift</type> <offset>-50</offset> </transformation> <transformation> <type>y-shift</type> <offset>55</offset> </transformation> </transformations> </layer> <layer> <name>RH line2</name> <type>text</type> <font>courier-bold</font> <point-size>14</point-size> <color> <red>0.4</red> <green>1.0</green> <blue>0.1</blue> </color> <chunks> <chunk> <type>text-value</type> <property>instrumentation/gps-annunciator/RHmode-string[1]</property> </chunk> </chunks> <transformations> <transformation> <type>x-shift</type> <offset>20</offset> </transformation> <transformation> <type>y-shift</type> <offset>35</offset> </transformation> </transformations> </layer> <layer> <name>RH line3</name> <type>text</type> <font>courier-bold</font> <point-size>14</point-size> <color> <red>0.4</red> <green>1.0</green> <blue>0.1</blue> </color> <chunks> <chunk> <type>text-value</type> <property>instrumentation/gps-annunciator/RHmode-string[2]</property> </chunk> </chunks> <transformations> <transformation> <type>x-shift</type> <offset>20</offset> </transformation> <transformation> <type>y-shift</type> <offset>15</offset> </transformation> </transformations> </layer> <layer> <name>RH line4</name> <type>text</type> <font>courier-bold</font> <point-size>14</point-size> <color> <red>0.4</red> <green>1.0</green> <blue>0.1</blue> </color> <chunks> <chunk> <type>text-value</type> <property>instrumentation/gps-annunciator/RHmode-string[3]</property> </chunk> </chunks> <transformations> <transformation> <type>x-shift</type> <offset>20</offset> </transformation> <transformation> <type>y-shift</type> <offset>-5</offset> </transformation> </transformations> </layer> <layer> <name>RH line5</name> <type>text</type> <font>courier-bold</font> <point-size>14</point-size> <color> <red>0.4</red> <green>1.0</green> <blue>0.1</blue> </color> <chunks> <chunk> <type>text-value</type> <property>instrumentation/gps-annunciator/RHmode-string[4]</property> </chunk> </chunks> <transformations> <transformation> <type>x-shift</type> <offset>20</offset> </transformation> <transformation> <type>y-shift</type> <offset>-25</offset> </transformation> </transformations> </layer> <layer> <name>RH line6</name> <type>text</type> <font>courier-bold</font> <point-size>14</point-size> <color> <red>0.4</red> <green>1.0</green> <blue>0.1</blue> </color> <chunks> <chunk> <type>text-value</type> <property>instrumentation/gps-annunciator/RHmode-string[5]</property> </chunk> </chunks> <transformations> <transformation> <type>x-shift</type> <offset>20</offset> </transformation> <transformation> <type>y-shift</type> <offset>-45</offset> </transformation> </transformations> </layer> <layer> <name>RH line7</name> <type>text</type> <font>courier-bold</font> <point-size>14</point-size> <color> <red>0.4</red> <green>1.0</green> <blue>0.1</blue> </color> <chunks> <chunk> <type>text-value</type> <property>instrumentation/gps-annunciator/RHmode-string[6]</property> </chunk> </chunks> <transformations> <transformation> <type>x-shift</type> <offset>20</offset> </transformation> <transformation> <type>y-shift</type> <offset>-65</offset> </transformation> </transformations> </layer> </layers> </PropertyList> --- NEW FILE --- AC3Db MATERIAL "DefaultWhite" rgb 1 1 1 amb 1 1 1 emis 0 0 0 spec 0.5 0.5 0.5 shi 64 trans 0 MATERIAL "dimlit" rgb 0.5 0.5 0.5 amb 0 0 0 emis 0.5 0.5 0.5 spec 0 0 0 shi 0 trans 0 MATERIAL "Bezel" rgb 0.9 0.9 0.9 amb 0.2 0.2 0.2 emis 0.2 0.2 0.2 spec 0.772973 0.772973 0.772973 shi 32 trans 0 MATERIAL "illum" rgb 1 1 1 amb 0 0 0 emis 0.7 0.7 0.7 spec 0 0 0 shi 0 trans 0 OBJECT world kids 14 OBJECT poly name "ALT.btn.001" data 8 Mesh.290 texture "gps.png" texrep 1 1 crease 30.000000 numvert 4 0.003388 -0.015223 0.020876 0.003395 -0.019962 0.020876 0.003395 -0.019962 0.011805 0.003388 -0.015223 0.011805 [...1483 lines suppressed...] kids 0 OBJECT poly name "RH.up" data 9 Plane.062 crease 30.000000 numvert 4 0.002015 -0.003044 -0.067167 0.002015 -0.020667 -0.067167 0.002015 -0.020667 -0.053796 0.002015 -0.003044 -0.053796 numsurf 1 SURF 0x20 mat 2 refs 4 0 0.0 0.0 3 0.0 0.0 2 0.0 0.0 1 0.0 0.0 kids 0 --- NEW FILE --- #GPS KLN90B gps var GPS = { new : func { m = { parents : [GPS]}; m.Menu1 = 3; m.Menu2 = 4; m.Page1 = 0; m.Page2 = 0; m.PWR=0; m.gps = props.globals.getNode("instrumentation/gps",1); m.gps_annun = props.globals.getNode("instrumentation/gps-annunciator",1); m.serviceable = m.gps.getNode("serviceable"); m.serviceable.setBoolValue(0); m.pwr=props.globals.getNode("/systems/electrical/outputs/gps",1); m.pwr.setDoubleValue(0); m.dtrk=m.gps.getNode("wp/wp[1]/desired-course-deg",1); m.LHstring0 = m.gps_annun.getNode("LHmode-string[0]",1); m.LHstring0.setValue(""); m.LHstring1 = m.gps_annun.getNode("LHmode-string[1]",1); m.LHstring1.setValue(""); m.LHstring2 = m.gps_annun.getNode("LHmode-string[2]",1); m.LHstring2.setValue(""); m.LHstring3 = m.gps_annun.getNode("LHmode-string[3]",1); m.LHstring3.setValue(""); m.LHstring4 = m.gps_annun.getNode("LHmode-string[4]",1); m.LHstring4.setValue(""); m.LHstring5 = m.gps_annun.getNode("LHmode-string[5]",1); m.LHstring5.setValue(""); m.LHstring6 = m.gps_annun.getNode("LHmode-string[6]",1); m.LHstring6.setValue(""); m.RHstring0 = m.gps_annun.getNode("RHmode-string[0]",1); m.RHstring0.setValue(""); m.RHstring1 = m.gps_annun.getNode("RHmode-string[1]",1); m.RHstring1.setValue(""); m.RHstring2 = m.gps_annun.getNode("RHmode-string[2]",1); m.RHstring2.setValue(""); m.RHstring3 = m.gps_annun.getNode("RHmode-string[3]",1); m.RHstring3.setValue(""); m.RHstring4 = m.gps_annun.getNode("RHmode-string[4]",1); m.RHstring4.setValue(""); m.RHstring5 = m.gps_annun.getNode("RHmode-string[5]",1); m.RHstring5.setValue(""); m.RHstring6 = m.gps_annun.getNode("RHmode-string[6]",1); m.RHstring6.setValue(""); m.slaved = props.globals.getNode("instrumentation/nav/slaved-to-gps",1); m.slaved.setBoolValue(1); m.legmode = m.gps.getNode("leg-mode",1); m.legmode.setBoolValue(1); m.appr = m.gps.getNode("approach-active",1); m.appr.setBoolValue(0); return m; }, ################## draw_display : func(){ if(me.PWR == 0){ me.LHstring0.setValue(""); me.LHstring1.setValue(""); me.LHstring2.setValue(""); me.LHstring3.setValue(""); me.LHstring4.setValue(""); me.LHstring5.setValue(""); me.LHstring6.setValue("POWER OFF"); me.RHstring0.setValue(""); me.RHstring1.setValue(""); me.RHstring2.setValue(""); me.RHstring3.setValue(""); me.RHstring4.setValue(""); me.RHstring5.setValue(""); me.RHstring6.setValue("POWER OFF"); }else{ me.setmode1(); me.setmode2(); } }, ################## power_up : func(){ var tmp=me.serviceable.getValue(); tmp=1-tmp; me.serviceable.setBoolValue(tmp); me.get_power(); }, ################## get_power : func(){ if(me.pwr.getValue()>5){ me.PWR=1; }else{ me.PWR=0; } }, ################## setmode1: func(){ if(me.Menu1 == 0){ me.set_TRI1(); }elsif(me.Menu1 == 1){ me.set_MOD1(); }elsif(me.Menu1 == 2){ me.set_FPL1(); }elsif(me.Menu1 == 3){ me.set_NAV1(); }elsif(me.Menu1 == 4){ me.set_CAL1(); }elsif(me.Menu1 == 5){ me.set_STA1(); }elsif(me.Menu1 == 6){ me.set_SET1(); }elsif(me.Menu1 == 7){ me.set_OTH1(); } }, ################## setmode2: func(){ if(me.Menu2 == 0){ me.set_CTR2(); }elsif(me.Menu2 == 1){ me.set_REF2(); }elsif(me.Menu2 == 2){ me.set_ACT2(); }elsif(me.Menu2 == 3){ me.set_DT2(); }elsif(me.Menu2 == 4){ me.set_NAV2(); }elsif(me.Menu2 == 5){ me.set_APT2(); }elsif(me.Menu2 == 6){ me.set_VOR2(); }elsif(me.Menu2 == 7){ me.set_NDB2(); }elsif(me.Menu2 == 8){ me.set_INT2(); }elsif(me.Menu2 == 9){ me.set_SUP2(); } }, ################################ #######Update Pages ############ ############################### ####### LEFT MENU ########### ############################# set_TRI1: func { var num=me.Page1+1; me.LHstring6.setValue("TRI "~num); }, ################ set_MOD1: func { var num=me.Page1+1; me.LHstring6.setValue("MOD "~num); }, ############### set_FPL1: func { var num=me.Page1+1; me.LHstring6.setValue("FPL "~num); }, ################ set_NAV1: func { var num=me.Page1+1; me.LHstring6.setValue("NAV "~num); var buf=""; var ID=getprop("instrumentation/gps/wp/wp/ID"); if(ID==nil)ID="D"; var ID2=getprop("instrumentation/gps/wp/wp[1]/ID"); if(ID2==nil)ID2=" "; buf = sprintf(" %s > %s",ID,ID2); me.LHstring0.setValue(buf); me.LHstring1.setValue("* * * * * * * * * * *"); var DIS=getprop("instrumentation/gps/wp/wp[1]/distance-nm"); buf = sprintf("DIS %4.0fNM",DIS); me.LHstring2.setValue(buf); var GS=getprop("velocities/groundspeed-kt"); buf = sprintf("GS %3.0fKT",GS); me.LHstring3.setValue(buf); var ETE=getprop("instrumentation/gps/wp/wp[1]/TTW"); buf = sprintf("ETE %s",ETE); me.LHstring4.setValue(buf); var BRG=getprop("instrumentation/gps/wp/wp[1]/bearing-mag-deg"); buf = sprintf("BRG %3.0f",BRG); me.LHstring5.setValue(buf); }, ################# set_CAL1: func { var num=me.Page1+1; me.LHstring6.setValue("CAL "~num); }, ################# set_STA1: func { var num=me.Page1+1; me.LHstring6.setValue("STA "~num); }, ################## set_SET1: func { var num=me.Page1+1; me.LHstring6.setValue("SET "~num); }, ################## set_OTH1: func { var num=me.Page1+1; me.LHstring6.setValue("OTH "~num); }, ############################## ####### RIGHT MENU ########### ############################## set_CTR2: func { var num=me.Page2+1; me.RHstring6.setValue("CTR "~num); }, ################# set_REF2: func { var num=me.Page2+1; me.RHstring6.setValue("REF "~num); }, ################ set_ACT2: func { var num=me.Page2+1; me.RHstring6.setValue("ACT "~num); }, ################# set_DT2: func { var num=me.Page2+1; me.RHstring6.setValue("D/T "~num); }, ################ set_NAV2: func { var num=me.Page2+1; me.RHstring6.setValue("NAV "~num); }, ################### set_APT2: func { var num=me.Page2+1; me.RHstring6.setValue("APT "~num); }, ################### set_VOR2: func { var num=me.Page2+1; me.RHstring6.setValue("VOR "~num); }, ################## set_NDB2: func { var num=me.Page2+1; me.RHstring6.setValue("NDB "~num); }, ################# set_INT2: func { var num=me.Page2+1; me.RHstring6.setValue("INT "~num); }, ################## set_SUP2: func { var num=me.Page2+1; me.RHstring6.setValue("SUP "~num); }, ################## ################## GPSappr : func { me.legmode.setBoolValue(0); me.slaved.setBoolValue(0); if(me.appr.getBoolValue()){ me.appr.setBoolValue(0); }else{ me.appr.setBoolValue(1); } }, ################## GPScrs : func { me.appr.setBoolValue(0); if(me.legmode.getBoolValue()){ me.legmode.setBoolValue(0); me.slaved.setBoolValue(0); }else{ me.legmode.setBoolValue(1); me.slaved.setBoolValue(1); } }, ################## lh_menu : func (test){ if(me.PWR != 0){ me.Menu1 +=test; if(me.Menu1 > 7)me.Menu1 -= 8; if(me.Menu1 < 0)me.Menu1 += 8; } }, ################## lh_page : func (test){ if(me.PWR != 0){ me.Page1 +=test; if(me.Page1 > 7)me.Page1 -= 8; if(me.Page1 < 0)me.Page1 += 8; } }, ################## rh_menu : func (test){ if(me.PWR != 0){ me.Menu2 +=test; if(me.Menu2 > 7)me.Menu2 -= 8; if(me.Menu2 < 0)me.Menu2 += 8; } }, ################## rh_page : func (test){ if(me.PWR != 0){ me.Page2 +=test; if(me.Page2 > 7)me.Page2 -= 8; if(me.Page2 < 0)me.Page2 += 8; } }, ################# direct_to : func { if(me.PWR != 0){ setprop("instrumentation/gps/wp/wp[0]/waypoint-type",""); setprop("instrumentation/gps/wp/wp[0]/ID",""); setprop("instrumentation/gps/wp/wp[0]/name",""); setprop("instrumentation/gps/wp/wp[0]/latitude-deg",getprop("position/latitude-deg")); setprop("instrumentation/gps/wp/wp[0]/longitude-deg",getprop("position/longitude-deg")); } } }; ######################################################### var Gps = GPS.new(); setlistener("sim/signals/fdm-initialized", func { setprop("instrumentation/gps/wp/wp/ID",getprop("sim/tower/airport-id")); setprop("instrumentation/gps/wp/wp/waypoint-type","airport"); print("KLN-90B GPS ...Check"); settimer(update_gps,5); }); var update_gps = func { Gps.get_power(); Gps.draw_display(); settimer(update_gps,0); } --- NEW FILE --- <?xml version="1.0"?> <!-- KLN90B GPS receiver Syd Adams --> <PropertyList> <path>kln90b.ac</path> <!-- OSG hotspots --> <panel> <name>GPS screen</name> <path>Aircraft/b1900d/Models/Instruments/KLN90B/gps.xml</path> <bottom-left> <x-m>0.003</x-m> <y-m>-0.033</y-m> <z-m>-0.013</z-m> </bottom-left> <bottom-right> <x-m>0.003</x-m> <y-m>0.033</y-m> <z-m>-0.013</z-m> </bottom-right> <top-left> <x-m>0.003</x-m> <y-m>-0.033</y-m> <z-m>0.018</z-m> </top-left> </panel> <animation> <type>pick</type> <object-name>LH.dn</object-name> <action> <button>1</button> <repeatable>false</repeatable> <binding> <command>nasal</command> <script>systems.Gps.lh_menu(-1)</script> </binding> </action> </animation> <animation> <type>pick</type> <object-name>LH.up</object-name> <action> <button>1</button> <repeatable>false</repeatable> <binding> <command>nasal</command> <script>systems.Gps.lh_menu(1)</script> </binding> </action> </animation> <animation> <type>pick</type> <object-name>LH.dn</object-name> <action> <button>0</button> <repeatable>false</repeatable> <binding> <command>nasal</command> <script>systems.Gps.lh_page(-1)</script> </binding> </action> </animation> <animation> <type>pick</type> <object-name>LH.up</object-name> <action> <button>0</button> <repeatable>false</repeatable> <binding> <command>nasal</command> <script>systems.Gps.lh_page(1)</script> </binding> </action> </animation> <animation> <type>pick</type> <object-name>RH.dn</object-name> <action> <button>0</button> <repeatable>false</repeatable> <binding> <command>nasal</command> <script>systems.Gps.rh_page(-1)</script> </binding> </action> </animation> <animation> <type>pick</type> <object-name>RH.up</object-name> <action> <button>0</button> <repeatable>false</repeatable> <binding> <command>nasal</command> <script>systems.Gps.rh_page(1)</script> </binding> </action> </animation> <animation> <type>pick</type> <object-name>RH.dn</object-name> <action> <button>1</button> <repeatable>false</repeatable> <binding> <command>nasal</command> <script>systems.Gps.rh_menu(-1)</script> </binding> </action> </animation> <animation> <type>pick</type> <object-name>RH.up</object-name> <action> <button>1</button> <repeatable>false</repeatable> <binding> <command>nasal</command> <script>systems.Gps.rh_menu(1)</script> </binding> </action> </animation> <animation> <type>pick</type> <object-name>KLN90B.pwr</object-name> <action> <button>0</button> <repeatable>false</repeatable> <binding> <command>nasal</command> <script>systems.Gps.power_up();</script> </binding> </action> </animation> <animation> <type>pick</type> <object-name>DIRECT.btn</object-name> <action> <button>0</button> <repeatable>false</repeatable> <binding> <command>nasal</command> <script>systems.Gps.direct_to();</script> </binding> </action> </animation> </PropertyList> --- NEW FILE --- PNG |