From 454950d0f968d7a60f92092098b394aa3b646338 Mon Sep 17 00:00:00 2001 From: helijah <helijah> Date: Mon, 21 Jul 2008 22:42:01 +0000 Subject: [PATCH] - GPS update by Zakharov --- .../Instruments-3d/zkv500/MainScreens.nas | 4 + Aircraft/Instruments-3d/zkv500/ZKV500.ac | 1228 ++++++++++------- Aircraft/Instruments-3d/zkv500/ZKV500.nas | 78 +- Aircraft/Instruments-3d/zkv500/ZKV500.xml | 55 +- Aircraft/Instruments-3d/zkv500/manual.txt | 94 +- Aircraft/Instruments-3d/zkv500/zkv_dbg.nas | 5 - 6 files changed, 856 insertions(+), 608 deletions(-) diff --git a/Aircraft/Instruments-3d/zkv500/MainScreens.nas b/Aircraft/Instruments-3d/zkv500/MainScreens.nas index fab5a1a57..389704f3d 100644 --- a/Aircraft/Instruments-3d/zkv500/MainScreens.nas +++ b/Aircraft/Instruments-3d/zkv500/MainScreens.nas @@ -35,6 +35,10 @@ var screenModeAndSettings = { # screen for changing the GPS mode and settings mode = me.mode_ + 1; page = 0; displayed_screen = page_list[mode][page]; + if (mode == 3) + screenTaskSelect.n = list_routes(); + elsif (mode == 2) + screenTurnpointSelect.n = load_bookmarks(); } }, lines : func { diff --git a/Aircraft/Instruments-3d/zkv500/ZKV500.ac b/Aircraft/Instruments-3d/zkv500/ZKV500.ac index fb17f5883..f711df6e4 100644 --- a/Aircraft/Instruments-3d/zkv500/ZKV500.ac +++ b/Aircraft/Instruments-3d/zkv500/ZKV500.ac @@ -8,7 +8,7 @@ MATERIAL "BlackPlastic.001" rgb 0.153331 0.153331 0.153331 amb 0.5 0.5 0.5 emis MATERIAL "WhitePlastic.002" rgb 0.9 0.9 0.9 amb 0.5 0.5 0.5 emis 0 0 0 spec 0.186866 0.186866 0.186866 shi 32 trans 0 MATERIAL "BlackPlastic.009" rgb 0.2 0.2 0.2 amb 0.5 0.5 0.5 emis 0 0 0 spec 0.186866 0.186866 0.186866 shi 32 trans 0 OBJECT world -kids 13 +kids 17 OBJECT poly name "LCD.display" data 10 @@ -2546,7 +2546,7 @@ numvert 97 0.011 0.033245 0.02913 0.011 0.03291 0.02832 0.011395 0.03 0.03 -numsurf 96 +numsurf 72 SURF 0x10 mat 7 refs 4 @@ -2885,174 +2885,6 @@ refs 4 48 0.0 0.0 SURF 0x10 mat 7 -refs 4 -49 0.0 0.0 -48 0.0 0.0 -72 0.0 0.0 -73 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -50 0.0 0.0 -49 0.0 0.0 -73 0.0 0.0 -74 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -51 0.0 0.0 -50 0.0 0.0 -74 0.0 0.0 -75 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -52 0.0 0.0 -51 0.0 0.0 -75 0.0 0.0 -76 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -53 0.0 0.0 -52 0.0 0.0 -76 0.0 0.0 -77 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -54 0.0 0.0 -53 0.0 0.0 -77 0.0 0.0 -78 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -55 0.0 0.0 -54 0.0 0.0 -78 0.0 0.0 -79 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -56 0.0 0.0 -55 0.0 0.0 -79 0.0 0.0 -80 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -57 0.0 0.0 -56 0.0 0.0 -80 0.0 0.0 -81 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -58 0.0 0.0 -57 0.0 0.0 -81 0.0 0.0 -82 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -59 0.0 0.0 -58 0.0 0.0 -82 0.0 0.0 -83 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -60 0.0 0.0 -59 0.0 0.0 -83 0.0 0.0 -84 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -61 0.0 0.0 -60 0.0 0.0 -84 0.0 0.0 -85 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -62 0.0 0.0 -61 0.0 0.0 -85 0.0 0.0 -86 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -63 0.0 0.0 -62 0.0 0.0 -86 0.0 0.0 -87 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -64 0.0 0.0 -63 0.0 0.0 -87 0.0 0.0 -88 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -65 0.0 0.0 -64 0.0 0.0 -88 0.0 0.0 -89 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -66 0.0 0.0 -65 0.0 0.0 -89 0.0 0.0 -90 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -67 0.0 0.0 -66 0.0 0.0 -90 0.0 0.0 -91 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -68 0.0 0.0 -67 0.0 0.0 -91 0.0 0.0 -92 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -69 0.0 0.0 -68 0.0 0.0 -92 0.0 0.0 -93 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -70 0.0 0.0 -69 0.0 0.0 -93 0.0 0.0 -94 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -71 0.0 0.0 -70 0.0 0.0 -94 0.0 0.0 -95 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -48 0.0 0.0 -71 0.0 0.0 -95 0.0 0.0 -72 0.0 0.0 -SURF 0x10 -mat 7 refs 3 73 0.0 0.0 72 0.0 0.0 @@ -3197,6 +3029,230 @@ refs 3 96 0.0 0.0 kids 0 OBJECT poly +name "knob.LEFT.circle" +data 15 +knob.UPDOWN.001 +crease 30.000000 +numvert 48 +0.011 0.03291 0.02832 +0.011 0.033245 0.02913 +0.011 0.03336 0.03 +0.011 0.033245 0.03087 +0.011 0.03291 0.03168 +0.011 0.032376 0.032376 +0.011 0.03168 0.03291 +0.011 0.03087 0.033246 +0.011 0.03 0.03336 +0.011 0.02913 0.033246 +0.011 0.02832 0.03291 +0.011 0.027624 0.032376 +0.011 0.02709 0.03168 +0.011 0.026754 0.03087 +0.011 0.02664 0.03 +0.011 0.026754 0.02913 +0.011 0.02709 0.02832 +0.011 0.027624 0.027624 +0.011 0.02832 0.02709 +0.011 0.02913 0.026755 +0.011 0.03 0.02664 +0.011 0.03087 0.026755 +0.011 0.03168 0.02709 +0.011 0.032376 0.027624 +0.01 0.034157 0.0276 +0.01 0.034636 0.028758 +0.01 0.0348 0.03 +0.01 0.034636 0.031242 +0.01 0.034157 0.0324 +0.01 0.033394 0.033394 +0.01 0.0324 0.034157 +0.01 0.031242 0.034637 +0.01 0.03 0.0348 +0.01 0.028758 0.034637 +0.01 0.0276 0.034157 +0.01 0.026606 0.033394 +0.01 0.025843 0.0324 +0.01 0.025363 0.031242 +0.01 0.0252 0.03 +0.01 0.025363 0.028758 +0.01 0.025843 0.0276 +0.01 0.026606 0.026606 +0.01 0.0276 0.025843 +0.01 0.028758 0.025364 +0.01 0.03 0.0252 +0.01 0.031242 0.025364 +0.01 0.0324 0.025843 +0.01 0.033394 0.026606 +numsurf 24 +SURF 0x10 +mat 7 +refs 4 +0 0.0 0.0 +23 0.0 0.0 +47 0.0 0.0 +24 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +1 0.0 0.0 +0 0.0 0.0 +24 0.0 0.0 +25 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +25 0.0 0.0 +26 0.0 0.0 +2 0.0 0.0 +1 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +26 0.0 0.0 +27 0.0 0.0 +3 0.0 0.0 +2 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +27 0.0 0.0 +28 0.0 0.0 +4 0.0 0.0 +3 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +28 0.0 0.0 +29 0.0 0.0 +5 0.0 0.0 +4 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +29 0.0 0.0 +30 0.0 0.0 +6 0.0 0.0 +5 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +30 0.0 0.0 +31 0.0 0.0 +7 0.0 0.0 +6 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +31 0.0 0.0 +32 0.0 0.0 +8 0.0 0.0 +7 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +32 0.0 0.0 +33 0.0 0.0 +9 0.0 0.0 +8 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +33 0.0 0.0 +34 0.0 0.0 +10 0.0 0.0 +9 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +34 0.0 0.0 +35 0.0 0.0 +11 0.0 0.0 +10 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +35 0.0 0.0 +36 0.0 0.0 +12 0.0 0.0 +11 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +36 0.0 0.0 +37 0.0 0.0 +13 0.0 0.0 +12 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +37 0.0 0.0 +38 0.0 0.0 +14 0.0 0.0 +13 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +38 0.0 0.0 +39 0.0 0.0 +15 0.0 0.0 +14 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +39 0.0 0.0 +40 0.0 0.0 +16 0.0 0.0 +15 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +40 0.0 0.0 +41 0.0 0.0 +17 0.0 0.0 +16 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +41 0.0 0.0 +42 0.0 0.0 +18 0.0 0.0 +17 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +42 0.0 0.0 +43 0.0 0.0 +19 0.0 0.0 +18 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +43 0.0 0.0 +44 0.0 0.0 +20 0.0 0.0 +19 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +44 0.0 0.0 +45 0.0 0.0 +21 0.0 0.0 +20 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +45 0.0 0.0 +46 0.0 0.0 +22 0.0 0.0 +21 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +46 0.0 0.0 +47 0.0 0.0 +23 0.0 0.0 +22 0.0 0.0 +kids 0 +OBJECT poly name "knob.MODE" data 9 knob.MODE @@ -3299,7 +3355,7 @@ numvert 97 0.011 -0.026755 0.02913 0.011 -0.02709 0.02832 0.011395 -0.03 0.03 -numsurf 96 +numsurf 72 SURF 0x10 mat 7 refs 4 @@ -3638,174 +3694,6 @@ refs 4 48 0.0 0.0 SURF 0x10 mat 7 -refs 4 -49 0.0 0.0 -48 0.0 0.0 -72 0.0 0.0 -73 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -50 0.0 0.0 -49 0.0 0.0 -73 0.0 0.0 -74 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -51 0.0 0.0 -50 0.0 0.0 -74 0.0 0.0 -75 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -52 0.0 0.0 -51 0.0 0.0 -75 0.0 0.0 -76 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -53 0.0 0.0 -52 0.0 0.0 -76 0.0 0.0 -77 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -54 0.0 0.0 -53 0.0 0.0 -77 0.0 0.0 -78 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -55 0.0 0.0 -54 0.0 0.0 -78 0.0 0.0 -79 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -56 0.0 0.0 -55 0.0 0.0 -79 0.0 0.0 -80 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -57 0.0 0.0 -56 0.0 0.0 -80 0.0 0.0 -81 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -58 0.0 0.0 -57 0.0 0.0 -81 0.0 0.0 -82 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -59 0.0 0.0 -58 0.0 0.0 -82 0.0 0.0 -83 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -60 0.0 0.0 -59 0.0 0.0 -83 0.0 0.0 -84 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -61 0.0 0.0 -60 0.0 0.0 -84 0.0 0.0 -85 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -62 0.0 0.0 -61 0.0 0.0 -85 0.0 0.0 -86 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -63 0.0 0.0 -62 0.0 0.0 -86 0.0 0.0 -87 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -64 0.0 0.0 -63 0.0 0.0 -87 0.0 0.0 -88 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -65 0.0 0.0 -64 0.0 0.0 -88 0.0 0.0 -89 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -66 0.0 0.0 -65 0.0 0.0 -89 0.0 0.0 -90 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -67 0.0 0.0 -66 0.0 0.0 -90 0.0 0.0 -91 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -68 0.0 0.0 -67 0.0 0.0 -91 0.0 0.0 -92 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -69 0.0 0.0 -68 0.0 0.0 -92 0.0 0.0 -93 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -70 0.0 0.0 -69 0.0 0.0 -93 0.0 0.0 -94 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -71 0.0 0.0 -70 0.0 0.0 -94 0.0 0.0 -95 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -48 0.0 0.0 -71 0.0 0.0 -95 0.0 0.0 -72 0.0 0.0 -SURF 0x10 -mat 7 refs 3 73 0.0 0.0 72 0.0 0.0 @@ -3950,6 +3838,230 @@ refs 3 96 0.0 0.0 kids 0 OBJECT poly +name "knob.MODE.circle" +data 13 +knob.MODE.001 +crease 30.000000 +numvert 48 +0.011 -0.02709 0.02832 +0.011 -0.026755 0.02913 +0.011 -0.02664 0.03 +0.011 -0.026755 0.03087 +0.011 -0.02709 0.03168 +0.011 -0.027624 0.032376 +0.011 -0.02832 0.03291 +0.011 -0.02913 0.033246 +0.011 -0.03 0.03336 +0.011 -0.03087 0.033246 +0.011 -0.03168 0.03291 +0.011 -0.032376 0.032376 +0.011 -0.03291 0.03168 +0.011 -0.033246 0.03087 +0.011 -0.03336 0.03 +0.011 -0.033246 0.02913 +0.011 -0.03291 0.02832 +0.011 -0.032376 0.027624 +0.011 -0.03168 0.02709 +0.011 -0.03087 0.026755 +0.011 -0.03 0.02664 +0.011 -0.02913 0.026755 +0.011 -0.02832 0.02709 +0.011 -0.027624 0.027624 +0.01 -0.025843 0.0276 +0.01 -0.025364 0.028758 +0.01 -0.0252 0.03 +0.01 -0.025364 0.031242 +0.01 -0.025843 0.0324 +0.01 -0.026606 0.033394 +0.01 -0.0276 0.034157 +0.01 -0.028758 0.034637 +0.01 -0.03 0.0348 +0.01 -0.031242 0.034637 +0.01 -0.0324 0.034157 +0.01 -0.033394 0.033394 +0.01 -0.034157 0.0324 +0.01 -0.034637 0.031242 +0.01 -0.0348 0.03 +0.01 -0.034637 0.028758 +0.01 -0.034157 0.0276 +0.01 -0.033394 0.026606 +0.01 -0.0324 0.025843 +0.01 -0.031242 0.025364 +0.01 -0.03 0.0252 +0.01 -0.028758 0.025364 +0.01 -0.0276 0.025843 +0.01 -0.026606 0.026606 +numsurf 24 +SURF 0x10 +mat 7 +refs 4 +0 0.0 0.0 +23 0.0 0.0 +47 0.0 0.0 +24 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +1 0.0 0.0 +0 0.0 0.0 +24 0.0 0.0 +25 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +25 0.0 0.0 +26 0.0 0.0 +2 0.0 0.0 +1 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +26 0.0 0.0 +27 0.0 0.0 +3 0.0 0.0 +2 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +27 0.0 0.0 +28 0.0 0.0 +4 0.0 0.0 +3 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +28 0.0 0.0 +29 0.0 0.0 +5 0.0 0.0 +4 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +29 0.0 0.0 +30 0.0 0.0 +6 0.0 0.0 +5 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +30 0.0 0.0 +31 0.0 0.0 +7 0.0 0.0 +6 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +31 0.0 0.0 +32 0.0 0.0 +8 0.0 0.0 +7 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +32 0.0 0.0 +33 0.0 0.0 +9 0.0 0.0 +8 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +33 0.0 0.0 +34 0.0 0.0 +10 0.0 0.0 +9 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +34 0.0 0.0 +35 0.0 0.0 +11 0.0 0.0 +10 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +35 0.0 0.0 +36 0.0 0.0 +12 0.0 0.0 +11 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +36 0.0 0.0 +37 0.0 0.0 +13 0.0 0.0 +12 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +37 0.0 0.0 +38 0.0 0.0 +14 0.0 0.0 +13 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +38 0.0 0.0 +39 0.0 0.0 +15 0.0 0.0 +14 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +39 0.0 0.0 +40 0.0 0.0 +16 0.0 0.0 +15 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +40 0.0 0.0 +41 0.0 0.0 +17 0.0 0.0 +16 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +41 0.0 0.0 +42 0.0 0.0 +18 0.0 0.0 +17 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +42 0.0 0.0 +43 0.0 0.0 +19 0.0 0.0 +18 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +43 0.0 0.0 +44 0.0 0.0 +20 0.0 0.0 +19 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +44 0.0 0.0 +45 0.0 0.0 +21 0.0 0.0 +20 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +45 0.0 0.0 +46 0.0 0.0 +22 0.0 0.0 +21 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +46 0.0 0.0 +47 0.0 0.0 +23 0.0 0.0 +22 0.0 0.0 +kids 0 +OBJECT poly name "knob.ONOFF" data 10 knob.ONOFF @@ -4052,7 +4164,7 @@ numvert 97 0.011 -0.026755 -0.03087 0.011 -0.02709 -0.03168 0.011395 -0.03 -0.03 -numsurf 96 +numsurf 94 SURF 0x10 mat 7 refs 4 @@ -4490,20 +4602,6 @@ refs 4 SURF 0x10 mat 7 refs 4 -63 0.0 0.0 -62 0.0 0.0 -86 0.0 0.0 -87 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -64 0.0 0.0 -63 0.0 0.0 -87 0.0 0.0 -88 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 65 0.0 0.0 64 0.0 0.0 88 0.0 0.0 @@ -4703,6 +4801,34 @@ refs 3 96 0.0 0.0 kids 0 OBJECT poly +name "knob.ONOFF.circle" +data 14 +knob.ONOFF.001 +crease 30.000000 +numvert 6 +0.011 -0.02913 -0.026754 +0.011 -0.03 -0.02664 +0.011 -0.03087 -0.026754 +0.01 -0.028758 -0.025363 +0.01 -0.03 -0.0252 +0.01 -0.031242 -0.025363 +numsurf 2 +SURF 0x10 +mat 6 +refs 4 +1 0.0 0.0 +0 0.0 0.0 +3 0.0 0.0 +4 0.0 0.0 +SURF 0x10 +mat 6 +refs 4 +4 0.0 0.0 +5 0.0 0.0 +2 0.0 0.0 +1 0.0 0.0 +kids 0 +OBJECT poly name "knob.RIGHT" data 14 knob.RIGHTLEFT @@ -4805,7 +4931,7 @@ numvert 97 0.011 0.033245 -0.03087 0.011 0.03291 -0.03168 0.011395 0.03 -0.03 -numsurf 96 +numsurf 72 SURF 0x10 mat 7 refs 4 @@ -5144,174 +5270,6 @@ refs 4 48 0.0 0.0 SURF 0x10 mat 7 -refs 4 -49 0.0 0.0 -48 0.0 0.0 -72 0.0 0.0 -73 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -50 0.0 0.0 -49 0.0 0.0 -73 0.0 0.0 -74 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -51 0.0 0.0 -50 0.0 0.0 -74 0.0 0.0 -75 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -52 0.0 0.0 -51 0.0 0.0 -75 0.0 0.0 -76 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -53 0.0 0.0 -52 0.0 0.0 -76 0.0 0.0 -77 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -54 0.0 0.0 -53 0.0 0.0 -77 0.0 0.0 -78 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -55 0.0 0.0 -54 0.0 0.0 -78 0.0 0.0 -79 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -56 0.0 0.0 -55 0.0 0.0 -79 0.0 0.0 -80 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -57 0.0 0.0 -56 0.0 0.0 -80 0.0 0.0 -81 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -58 0.0 0.0 -57 0.0 0.0 -81 0.0 0.0 -82 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -59 0.0 0.0 -58 0.0 0.0 -82 0.0 0.0 -83 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -60 0.0 0.0 -59 0.0 0.0 -83 0.0 0.0 -84 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -61 0.0 0.0 -60 0.0 0.0 -84 0.0 0.0 -85 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -62 0.0 0.0 -61 0.0 0.0 -85 0.0 0.0 -86 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -63 0.0 0.0 -62 0.0 0.0 -86 0.0 0.0 -87 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -64 0.0 0.0 -63 0.0 0.0 -87 0.0 0.0 -88 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -65 0.0 0.0 -64 0.0 0.0 -88 0.0 0.0 -89 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -66 0.0 0.0 -65 0.0 0.0 -89 0.0 0.0 -90 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -67 0.0 0.0 -66 0.0 0.0 -90 0.0 0.0 -91 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -68 0.0 0.0 -67 0.0 0.0 -91 0.0 0.0 -92 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -69 0.0 0.0 -68 0.0 0.0 -92 0.0 0.0 -93 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -70 0.0 0.0 -69 0.0 0.0 -93 0.0 0.0 -94 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -71 0.0 0.0 -70 0.0 0.0 -94 0.0 0.0 -95 0.0 0.0 -SURF 0x10 -mat 7 -refs 4 -48 0.0 0.0 -71 0.0 0.0 -95 0.0 0.0 -72 0.0 0.0 -SURF 0x10 -mat 7 refs 3 73 0.0 0.0 72 0.0 0.0 @@ -5455,3 +5413,227 @@ refs 3 95 0.0 0.0 96 0.0 0.0 kids 0 +OBJECT poly +name "knob.RIGHT.circle" +data 18 +knob.RIGHTLEFT.001 +crease 30.000000 +numvert 48 +0.011 0.03291 -0.03168 +0.011 0.033245 -0.03087 +0.011 0.03336 -0.03 +0.011 0.033245 -0.02913 +0.011 0.03291 -0.02832 +0.011 0.032376 -0.027624 +0.011 0.03168 -0.02709 +0.011 0.03087 -0.026754 +0.011 0.03 -0.02664 +0.011 0.02913 -0.026754 +0.011 0.02832 -0.02709 +0.011 0.027624 -0.027624 +0.011 0.02709 -0.02832 +0.011 0.026754 -0.02913 +0.011 0.02664 -0.03 +0.011 0.026754 -0.03087 +0.011 0.02709 -0.03168 +0.011 0.027624 -0.032376 +0.011 0.02832 -0.03291 +0.011 0.02913 -0.033245 +0.011 0.03 -0.03336 +0.011 0.03087 -0.033245 +0.011 0.03168 -0.03291 +0.011 0.032376 -0.032376 +0.01 0.034157 -0.0324 +0.01 0.034636 -0.031242 +0.01 0.0348 -0.03 +0.01 0.034636 -0.028758 +0.01 0.034157 -0.0276 +0.01 0.033394 -0.026606 +0.01 0.0324 -0.025843 +0.01 0.031242 -0.025363 +0.01 0.03 -0.0252 +0.01 0.028758 -0.025363 +0.01 0.0276 -0.025843 +0.01 0.026606 -0.026606 +0.01 0.025843 -0.0276 +0.01 0.025363 -0.028758 +0.01 0.0252 -0.03 +0.01 0.025363 -0.031242 +0.01 0.025843 -0.0324 +0.01 0.026606 -0.033394 +0.01 0.0276 -0.034157 +0.01 0.028758 -0.034636 +0.01 0.03 -0.0348 +0.01 0.031242 -0.034636 +0.01 0.0324 -0.034157 +0.01 0.033394 -0.033394 +numsurf 24 +SURF 0x10 +mat 7 +refs 4 +0 0.0 0.0 +23 0.0 0.0 +47 0.0 0.0 +24 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +1 0.0 0.0 +0 0.0 0.0 +24 0.0 0.0 +25 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +25 0.0 0.0 +26 0.0 0.0 +2 0.0 0.0 +1 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +26 0.0 0.0 +27 0.0 0.0 +3 0.0 0.0 +2 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +27 0.0 0.0 +28 0.0 0.0 +4 0.0 0.0 +3 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +28 0.0 0.0 +29 0.0 0.0 +5 0.0 0.0 +4 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +29 0.0 0.0 +30 0.0 0.0 +6 0.0 0.0 +5 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +30 0.0 0.0 +31 0.0 0.0 +7 0.0 0.0 +6 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +31 0.0 0.0 +32 0.0 0.0 +8 0.0 0.0 +7 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +32 0.0 0.0 +33 0.0 0.0 +9 0.0 0.0 +8 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +33 0.0 0.0 +34 0.0 0.0 +10 0.0 0.0 +9 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +34 0.0 0.0 +35 0.0 0.0 +11 0.0 0.0 +10 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +35 0.0 0.0 +36 0.0 0.0 +12 0.0 0.0 +11 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +36 0.0 0.0 +37 0.0 0.0 +13 0.0 0.0 +12 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +37 0.0 0.0 +38 0.0 0.0 +14 0.0 0.0 +13 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +38 0.0 0.0 +39 0.0 0.0 +15 0.0 0.0 +14 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +39 0.0 0.0 +40 0.0 0.0 +16 0.0 0.0 +15 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +40 0.0 0.0 +41 0.0 0.0 +17 0.0 0.0 +16 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +41 0.0 0.0 +42 0.0 0.0 +18 0.0 0.0 +17 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +42 0.0 0.0 +43 0.0 0.0 +19 0.0 0.0 +18 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +43 0.0 0.0 +44 0.0 0.0 +20 0.0 0.0 +19 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +44 0.0 0.0 +45 0.0 0.0 +21 0.0 0.0 +20 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +45 0.0 0.0 +46 0.0 0.0 +22 0.0 0.0 +21 0.0 0.0 +SURF 0x10 +mat 7 +refs 4 +46 0.0 0.0 +47 0.0 0.0 +23 0.0 0.0 +22 0.0 0.0 +kids 0 diff --git a/Aircraft/Instruments-3d/zkv500/ZKV500.nas b/Aircraft/Instruments-3d/zkv500/ZKV500.nas index d865e71a4..aea907a23 100644 --- a/Aircraft/Instruments-3d/zkv500/ZKV500.nas +++ b/Aircraft/Instruments-3d/zkv500/ZKV500.nas @@ -52,31 +52,31 @@ var gps_wp = gps_data.getNode("wp",1); #### warps for buttons and knobs ########################################" var right_knob = func(dir) { #manage right knob, depends of displayed screen - isOn == 1 or return; + isOn > 0 or return; screen[displayed_screen].right(dir); refresh_display(); } var enter_button = func() { #manage enter button, depends of displayed screen - isOn == 1 or return; + isOn > 0 or return; screen[displayed_screen].enter(); refresh_display(); } var escape_button = func() { #manage escape button, depends of displayed screen - isOn == 1 or return; + isOn > 0 or return; screen[displayed_screen].escape(); refresh_display(); } var start_button = func() { #manage start button, depends of displayed screen - isOn == 1 or return; + isOn > 0 or return; screen[displayed_screen].start(); refresh_display(); } var left_knob = func(dir) { #manage left button, cycle in mode's pages if not blocked - isOn == 1 or return; + isOn > 0 or return; if (blocked == 0) { page = cycle(size(page_list[mode]), page, dir); displayed_screen = page_list[mode][page]; @@ -85,7 +85,7 @@ var left_knob = func(dir) { #manage left button, cycle in mode's pages if not bl } var select_mode = func(dir) { #manage mode knob, cycle into available modes - isOn == 1 or return; + isOn > 0 or return; blocked = 0; if (displayed_screen != 0) { displayed_screen = 0; #screenModeAndSettings @@ -98,17 +98,19 @@ var select_mode = func(dir) { #manage mode knob, cycle into available modes } var switch_ON_OFF = func() { #manage ON/OFF knob - if (isOn) { - isOn = 0; + if (arg[0] > 0 and isOn < 11) isOn += 1; + elsif (arg[0] < 0 and isOn > 0) isOn -= 1; + else return; + + if (isOn == 0) { #empty lcd display for (var i = 0; i < LINES; i += 1) line[i].setValue(""); } - else { - isOn = 1; - screenTaskSelect.n = list_routes(); - screenTurnpointSelect.n = load_bookmarks(); - refresh_display(); - } - props.globals.getNode("/instrumentation/gps/serviceable",1).setBoolValue(isOn); + else + props.globals.getNode("/instrumentation/zkv500/retro-light").setDoubleValue((isOn - 1)/20); + + props.globals.getNode("/instrumentation/zkv500/on_off_position",1).setIntValue(isOn); + props.globals.getNode("/instrumentation/gps/serviceable",1).setBoolValue((isOn > 0)? 1 : 0); + refresh_display(); } ### useful funcs ######################################################### @@ -252,20 +254,16 @@ var EditMode = func (length, title, start_command, numcar = 0) { } ### initialisation stuff ################################################### -var init = func() { - mode = 0; - page = 0; - displayed_screen = 0; #screenModeAndSettings - blocked = 0; #unlock left_knob - isOn = 0; #start OFF - startpos = nil; #unset start position - waypointindex = 0; #route waypoint index on beginning +var load_screens = func { + var zkv500_dir = getprop("/sim/fg-root") ~ "/Aircraft/Instruments-3d/zkv500/"; + io.load_nasal(zkv500_dir ~ "AirportScreens.nas","zkv500"); + io.load_nasal(zkv500_dir ~ "TurnpointScreens.nas","zkv500"); + io.load_nasal(zkv500_dir ~ "MainScreens.nas","zkv500"); + io.load_nasal(zkv500_dir ~ "TaskScreens.nas","zkv500"); +} + +var organize_screens = func { screen = []; #empty screens - for (var i = 0; i < LINES; i += 1) { - append(line, props.globals.getNode("/instrumentation/zkv500/line[" ~ i ~ "]", 1)); - line[i].setValue(""); - } - props.globals.getNode("/instrumentation/gps/serviceable",1).setBoolValue(0); append(screen, zkv500.screenModeAndSettings); #0 append(screen, zkv500.screenPositionMain); #1 append(screen, zkv500.screenOdometers); #2 @@ -280,12 +278,34 @@ var init = func() { append(screen, zkv500.screenWaypointInfos); #11 append(screen, zkv500.screenWaypointsList); #12 append(screen, zkv500.screenEdit); #13 +} + +var init_gps_variables = func { + mode = 0; + page = 0; + displayed_screen = 0; #screenModeAndSettings + blocked = 0; #unlock left_knob + isOn = 0; #start OFF + startpos = nil; #unset start position + waypointindex = 0; #route waypoint index on beginning + for (var i = 0; i < LINES; i += 1) { + append(line, props.globals.getNode("/instrumentation/zkv500/line[" ~ i ~ "]", 1)); + line[i].setValue(""); + } + props.globals.getNode("/instrumentation/gps/serviceable",1).setBoolValue(0); + props.globals.getNode("/instrumentation/zkv500/retro-light",1).setDoubleValue(0); + props.globals.getNode("/instrumentation/zkv500/on_off_position",1).setIntValue(0); aircraft.light.new("/sim/model/gps/redled", [0.1, 0.1, 0.1, 0.7], "/instrumentation/gps/waypoint-alert"); aircraft.light.new("/sim/model/gps/greenled", [0.6, 0.3], "/instrumentation/gps/message-alert"); startpos = geo.Coord.new(geo.aircraft_position()); screenPositionMain.begin_time = props.globals.getNode("/sim/time/elapsed-sec",1).getValue(); setlistener("/instrumentation/gps/wp/wp[1]/TTW", waypointAlert, 0, 0); - #setlistener("/instrumentation/gps/wp/wp[1]/desired-course", obsMode, 0, 0); +} + +var init = func() { + load_screens(); + organize_screens(); + init_gps_variables(); print("GPS... initialized"); } diff --git a/Aircraft/Instruments-3d/zkv500/ZKV500.xml b/Aircraft/Instruments-3d/zkv500/ZKV500.xml index cd016d94c..87b189a96 100644 --- a/Aircraft/Instruments-3d/zkv500/ZKV500.xml +++ b/Aircraft/Instruments-3d/zkv500/ZKV500.xml @@ -21,6 +21,24 @@ </top-left> </panel> + <animation> + <type>material</type> + <object-name>LCD.display</object-name> + <object-name>button.ENTER</object-name> + <object-name>button.START</object-name> + <object-name>button.ESCAPE</object-name> + <object-name>knob.ONOFF.circle</object-name> + <object-name>knob.MODE.circle</object-name> + <object-name>knob.RIGHT.circle</object-name> + <object-name>knob.LEFT.circle</object-name> + <emission> + <red>0.1</red> + <blue>0.1</blue> + <green>0.8</green> + <factor-prop>/instrumentation/zkv500/retro-light</factor-prop> + </emission> + </animation> + <animation> <type>select</type> <condition> @@ -37,19 +55,45 @@ <object-name>LED.1_ON</object-name> </animation> + <animation> + <type>rotate</type> + <object-name>knob.ONOFF</object-name> + <object-name>knob.ONOFF.circle</object-name> + <property>/instrumentation/zkv500/on_off_position</property> + <factor>30</factor> + <axis> + <x>-1</x> + <y>0</y> + <z>0</z> + </axis> + <center> + <x-m>0</x-m> + <y-m>0.03</y-m> + <z-m>-0.03</z-m> + </center> + </animation> + <animation> <type>pick</type> <object-name>knob.ONOFF</object-name> + <object-name>knob.ONOFF.circle</object-name> <visible>true</visible> <action> - <name>switch on and off</name> - <!-- this one will manage volume control soon too, - but for now keep it simple --> + <name>increase gps state off - on - enlighted</name> <button>0</button> <repeatable>false</repeatable> <binding> <command>nasal</command> - <script>zkv500.switch_ON_OFF()</script> + <script>zkv500.switch_ON_OFF(1)</script> + </binding> + </action> + <action> + <name>decrease gps state off - on - enlighted</name> + <button>2</button> + <repeatable>false</repeatable> + <binding> + <command>nasal</command> + <script>zkv500.switch_ON_OFF(-1)</script> </binding> </action> </animation> @@ -57,6 +101,7 @@ <animation> <type>pick</type> <object-name>knob.LEFT</object-name> + <object-name>knob.LEFT.circle</object-name> <visible>true</visible> <action> <name>next menu</name> @@ -81,6 +126,7 @@ <animation> <type>pick</type> <object-name>knob.RIGHT</object-name> + <object-name>knob.RIGHT.circle</object-name> <visible>true</visible> <action> <name>next item</name> @@ -105,6 +151,7 @@ <animation> <type>pick</type> <object-name>knob.MODE</object-name> + <object-name>knob.MODE.circle</object-name> <visible>true</visible> <action> <name>select next mode</name> diff --git a/Aircraft/Instruments-3d/zkv500/manual.txt b/Aircraft/Instruments-3d/zkv500/manual.txt index 6604dd3bf..89104b6d4 100644 --- a/Aircraft/Instruments-3d/zkv500/manual.txt +++ b/Aircraft/Instruments-3d/zkv500/manual.txt @@ -16,7 +16,7 @@ CONTENTS 3. Without 3D interface 3. Global presentation 4. User's Manual - 1. Powering ON + 1. Powering ON / Enlight / Switch OFF 2. List of screens 3. The modes 4. Editing some text @@ -51,10 +51,6 @@ available for all aircrafts. To install it, just add these lines in your config files, inside the <nasal> section: <zkv500> <file>Aircraft/Instruments-3d/zkv500/ZKV500.nas</file> - <file>Aircraft/Instruments-3d/zkv500/MainScreens.nas</file> - <file>Aircraft/Instruments-3d/zkv500/TurnpointScreens.nas</file> - <file>Aircraft/Instruments-3d/zkv500/TaskScreens.nas</file> - <file>Aircraft/Instruments-3d/zkv500/AirportScreens.nas</file> </zkv500> [example from Lionceau: Aircraft/Lionceau/lionceau-base.xml] Please note that <zkv500> is mandatory for namespaces reasons. @@ -123,7 +119,6 @@ The ZKV500 is quite useful to create bookmarks on the fly. 2. Debugging installation if you want to debug the nasal, you can use the "debugging tool" I've created: - - comment in your aircraft files all gps-related installation - edit the Aircraft/Instruments-3d/zkv500/*.nas files with your favourite text editor - in the Nasal console from FGside type: @@ -142,13 +137,11 @@ var zkv_dir = getprop("/sim/fg-root") ~ "/Aircraft/Instruments-3d/zkv500/"; io.load_nasal(zkv_dir ~ "zkv_dbg.nas", "zkv_dbg"); zkv_dbg.test(); - - 3. GLOBAL PRESENTATION ====================== The interface is simple: (http://seb.marque.free.fr/fichiers/flightgear/zkv500/presentation.png) -* 4 knobs turning left (left mouse clic) or right (right mous clic) +* 4 knobs turning left (left mouse click) or right (right mous click) * 3 white buttons * 1 LCD display * 2 LEDs (red and green) @@ -170,24 +163,27 @@ KNOB|------------------------|KNOB edit some simple text (depending of screen). -> MODE knob allows you to select a mode, and acces to the ZKV500 settings you can access this knob at any time, any screen. --> ON/OFF knob allows you to turn ON and OFF the ZKV500, note it is a knob - because I plan to associate some sounds with the ZKV500, this knob then - could be used to change the volume. - +-> ON/OFF knob allows you to turn ON and OFF the ZKV500, and set the + LCD enlightment. The goal of each button depends of the displayed screen. 4. USER'S MANUAL ================ - 1. Powering ON -To power ON, just left click on the ON/OFF knob. Clicking again wil make it -turning OFF. When powered you are on the ModeAndSettings screen. + 1. Powering ON / Enlight / Switch OFF +To power ON, just left click on the ON/OFF knob. Clicking again will make it +more and more enlighted. +When powered ON, you are on the ModeAndSettings screen. +Right-click on ON/OFF knob will first decrease enlightment intensity until +switch the ZKV500 off. 2. Screens list +[] -> button +() -> knob *** ModeAndSettings *** From this screen you can change from a mode to another mode (see 4.3 Modes, below) - START...enter in a mode - PAGE....enter in settings pages (cycle) - SELECT..modify settings + [START] enter in a mode + (PAGE) enter in settings pages (cycle) + (SELECT) modify settings the available settings are: * units @@ -201,7 +197,7 @@ the available settings are: *** PositionMain *** This page gives you infos about the aircraft position. You find it in every modes. - ENTER...save the position as a bookmark (entering in Edit screen) + [ENTER] save the position as a bookmark (entering in Edit screen) LAT: latitude in deg:min:sec LON: longitude in deg:min:sec @@ -211,7 +207,7 @@ You find it in every modes. *** Odometers *** This screen gives you odo-values. You can find it in every modes. - ESCAPE...reset odometers, except TRIP + [ESCAPE] reset odometers, except TRIP ODO: travelled distance TRIP: total travelled distance @@ -233,9 +229,9 @@ screen is available on every modes This screen gives the related position of the aircraft about the calcualted route. It is only available in TURNPOINT and TASK modes. - ENTER...TURNPOINT mode: add the actual position to the route, + [ENTER] TURNPOINT mode: add the actual position to the route, TASK mode: jump to next waypoint - START...save the route (mode TURNPOINT only) + [START] save the route (mode TURNPOINT only) ID: Id of the waypoint to go [waypoint type] BRG: bearing from the aircraft to the waypoint (geographic) @@ -249,9 +245,9 @@ the | symbol represents the route, the little aircraft represents... the aircraf This screen gives infos about the nearest, or a specific searched airport (see SearcAirport screen, below). It is only reachable from AIRPORT mode. - ENTER...add the airport to route - ESCAPE..get the nearest airport - START...add airport to bookmarks, and enter TURNPOINT mode, to go directly + [ENTER] add the airport to route + [ESCAPE] get the nearest airport + [START] add airport to bookmarks, and enter TURNPOINT mode, to go directly NEAREST or SEARCHED APT: OACI code of airport ELEV: airport altitude @@ -265,7 +261,7 @@ SearcAirport screen, below). It is only reachable from AIRPORT mode. This screen gives infos about the airport (nearest or searched). It is only reachable from AIRPORT mode. - SELECT...navigate in the runway list (not yet implemented) + (SELECT) navigate in the runway list (not yet implemented) First line gives the full name of airport Lines below show the runways with the format @@ -277,17 +273,17 @@ AIRPORT mode. If the search is successful, the AirportMain screen is shown, in other case the text is erased, and you are invited to retry. - SELECT...modify letter (from A to Z then 0 to 9, cycled) - ENTER....next step - ESCAPE...back to AirportMain screen, without search - START....search the given OACI code + (SELECT) modify letter (from A to Z then 0 to 9, cycled) + [ENTER] next step + [ESCAPE] back to AirportMain screen, without search + [START] search the given OACI code *** TurnpointSelect *** This screen shows a list of already bookmarked gps points. It is only available in TURNPOINT mode. - SELECT...navigate through the list (eventually through multiple pages) - START....begin the navigation from actual position to the bookmark + (SELECT) navigate through the list (eventually through multiple pages) + [START] begin the navigation from actual position to the bookmark *** TurnpointInfos *** This screen is not yet implemented. It will gives infos about the bookmark @@ -296,29 +292,29 @@ This screen is not yet implemented. It will gives infos about the bookmark This screen allows you to choose a route (if one available). It is only available in TASK mode. - SELECT...navigate through the routes list (eventually through multiple pages) - START....load the route, and begins navigation + (SELECT) navigate through the routes list (eventually through multiple pages) + [START] load the route, and begins navigation *** WaypointInfos *** Not yet implemented, will give infos about waypoint. Only available in TASK mode. *** WaypointsList *** This screen shows the list of waypoint loaded from a route. - SELECT...navigate through the list + (SELECT) navigate through the list *** WaypointEdit *** This screen allows you to name a gps point in order to bookmark it. - SELECT...cycle letters (from A to Z then 1 to 9) - ENTER....next step - ESCAPE...abort saving bookmark - START....save bookmark + (SELECT) cycle letters (from A to Z then 1 to 9) + [ENTER] next step + [ESCAPE] abort saving bookmark + [START] save bookmark 3. the 4 modes *** POSITION *** The simpliest one, just give information about the aircraft position. You can save bookmarks from this mode (pressing ENTER in PositionMain screen). - PAGE...cycle through these screens (both ways): + (PAGE) cycle through these screens (both ways): PositionMain, Odometers, WindInfos *** AIRPORT *** @@ -326,12 +322,12 @@ Useful to know wher you can put you aircraft safely on the ground, gives other i as the best runway, it is possible to search an airport (turn the PAGE knob until Search airport page), add the airport to a route or as a bookmark (automatically called by airports ID and name). - PAGE...cycle through these screens (both ways) + (PAGE) cycle through these screens (both ways) AirportMain, NavigationMain, PositionMain, Odometers, WindInfos, AirportInfos, SearchAirport *** TURNPOINT *** Useful mode to join a specific point of interest, or to navigate around. - PAGE...cycle through these screens (both ways) + (PAGE) cycle through these screens (both ways) TurnpointSelect, NavigationMain, PositionMain, Odometers, WindInfos, TurnpointInfos *** TASK *** @@ -342,7 +338,7 @@ When approaching a waypoint, a red led blink (this can be set in ModeAndSettings When on the point (idem), it loads autmatically the next point and calculate the leg infos When the last point is reached, it come back to TaskSelect screen to allow chosing an other route. - PAGE...cycle through these screens (both ways) + (PAGE) cycle through these screens (both ways) TaskSelect, NavigationMain, PositionMain, Odometers, WindInfos, WaypointInfos, WaypointsList 5. FG INTEGRATION @@ -377,10 +373,14 @@ for now, as I want it to be the more bug-free possible before creating other bug 8. ANNEXES ========== 1. creating flightplans with ./flightplan -You can get ./flightplan from this link: http://seb.marque.free.fr/fichiers/scripts/perl/flightplan -Make it executable, best to set $FGROOT and $FGHOME to respectives folders -For creating a flightplan from LFPT to LFBD: +You can get ./flightplan from this link: +http://seb.marque.free.fr/fichiers/scripts/perl/flightplan + +-> Make it executable, +-> best to set $FGROOT and $FGHOME to respectives folders +-> For creating a flightplan from LFPT to LFBD: $ ./flightplan -d lfpt -a lfbd --wpt + This will write in $FGHOME/Routes a file named lfpt-lfbd.xml, suitable for the ZKV500 diff --git a/Aircraft/Instruments-3d/zkv500/zkv_dbg.nas b/Aircraft/Instruments-3d/zkv500/zkv_dbg.nas index 671b62ba3..66716b71a 100644 --- a/Aircraft/Instruments-3d/zkv500/zkv_dbg.nas +++ b/Aircraft/Instruments-3d/zkv500/zkv_dbg.nas @@ -77,12 +77,7 @@ var _bottom_buttons = func { var reload_zkv_code = func { var zkv500_dir = getprop("/sim/fg-root") ~ "/Aircraft/Instruments-3d/zkv500/"; io.load_nasal(zkv500_dir ~ "ZKV500.nas","zkv500"); - io.load_nasal(zkv500_dir ~ "AirportScreens.nas","zkv500"); - io.load_nasal(zkv500_dir ~ "TurnpointScreens.nas","zkv500"); - io.load_nasal(zkv500_dir ~ "MainScreens.nas","zkv500"); - io.load_nasal(zkv500_dir ~ "TaskScreens.nas","zkv500"); print("debugger: zkv500 loaded"); - zkv500.isOn = 0; zkv500.init(); }