Debian Codegraph @

Aircraft/Instruments-3d/zkv500/manual.txt

raw
1 ############## GPL
2 # GPS ZKV500 # Sébastien MARQUE
3 ############## 2008, Paris (France)
4
5 note that it is still under heavy development, some functions planned haven't
6 been 100% tested yet... there surely will be bugs or errors (most of the time:
7 nasal runtime error : props.setValue() with non number, etc.)
8
9
10 CONTENTS
11 =========
12 1. A bit of history
13 2. Install onboard
14 1. Normal installation
15 2. Debugging installation
16 3. Without 3D interface
17 3. Global presentation
18 4. User's Manual
19 1. Powering ON / Enlight / Switch OFF
20 2. List of screens
21 3. The modes
22 4. Editing some text
23 5. FG integration
24 6. Examples
25 7. The future
26
27 1. A BIT OF HISTORY
28 ===================
29 Don't search on the market this device, it doesn't exists! :p Indeed I was
30 looking how to create a GPS device in my favorite aircraft, I found the
31 nice 3D object in the not less nice Grob-G115, which it was told me it
32 is intented for the LX5000 gps (http://www.wingsandwheels.com/manuals.htm).
33
34 So I began to write some nasal code, using the C++ implementation of KLN89
35 already built-in FG, to fit as much as possible the LX5000 specifications.
36 But after some tries, I began to create on my own way the interface (which
37 is much more funny for me than following a manual :)). The ZKV500 was born.
38 (read ZaKharoV, which is my current nickname, from Proktor Zakharov in Sid
39 Meyer's Alpha Centauri game :))
40 It keeps by default the very nice 3D object from Jon Stockill, a bit modified.
41 I created also for this device a special font in order to make the LCD diplay
42 more... lcd-compliant (see Fonts/lcd.README).
43
44 2. INSTALL THE ZKV500 ONBOARD
45 =============================
46
47 1. Normal installation
48
49 For now the ZKV500 seats in Aircraft/Instruments-3d/zvk500/, making it easily
50 available for all aircrafts. To install it, just add these lines in your config
51 files, inside the <nasal> section:
52 <zkv500>
53 <file>Aircraft/Instruments-3d/zkv500/ZKV500.nas</file>
54 </zkv500>
55 [example from Lionceau: Aircraft/Lionceau/lionceau-base.xml]
56 Please note that <zkv500> is mandatory for namespaces reasons.
57
58 Then in your panel configuration file, just put the 3D model, as usual:
59 <!-- GPS -->
60 <model>
61 <path>Aircraft/Instruments-3d/zkv500/ZKV500.xml</path>
62 <offsets>
63 <x-m> 0.002 </x-m>
64 <y-m> -0.051 </y-m>
65 <z-m> -0.022 </z-m>
66 </offsets>
67 </model>
68 [example from Lionceau: Aircraft/Lionceau/Models/Panel/front-panel.xml]
69 Your ZKV500 is ready to be powered on!
70
71 It comes with "vi-like" multikey system, accessible with ":g" sequence.
72 To intall it, just add in the <input> section of your configuration file the
73 following line:
74 <keyboard n="0" include="../Instruments-3d/zkv500/multikey.xml"/>
75 NOTE: to avoid creation of multiple instances of keyboard node, it is
76 recommanded to explicit n="0" for each call of keyboard tag.
77 Now turning knobs is as simple as using up or down arrow!
78 The next sequence's keys are described below.
79
80 The ZKV500 has IO capacities: routes are red from $FGHOME/Routes and
81 written in $FGHOME/Export, the bookmarks are red and written in
82 $FGHOME/Export/bookmarks.xml
83
84 An easy way to populate your $FGHOME/Routes directory is a perl script
85 of my own (see the end of file for an how-to). You can also editing by
86 hand, the format is simple and conform to the format used by the KLN89
87 <PropertyList>
88 <Waypoint n="0">
89 <ID type="double">TL</ID>
90 <latitude-deg type="double">43.28838900</latitude-deg>
91 <longitude-deg type="double">000.04963900</longitude-deg>
92 <altitude-ft type="double">0</altitude-ft>
93 <waypoint-type type="string">NBD</waypoint-type>
94 <name type="string">TARBES NDB</name>
95 <desc type="string">Xroads freq: 321</desc>
96 </Waypoint>
97 <Waypoint n="1">
98 <ID type="string">LFCB</ID>
99 <latitude-deg type="double">42.800000</latitude-deg>
100 <longitude-deg type="double">000.600000</longitude-deg>
101 <altitude-ft type="double">2028</altitude-ft>
102 <waypoint-type type="string">APT</waypoint-type>
103 <name type="string">Bagneres de Luchon</name>
104 <desc type="string">In a valley</desc>
105 </Waypoint>
106 </PropertyList>
107 The less easy way is to edit your flightplan direcly from the ZKV500, but
108 as it has very limited editing capacities, and the search of already-known
109 waypoints is limited to airports, it is not a really recommended way.
110
111 The $FGHOME/Export/bookmarks.xml file contains favorites points, it has
112 quite the same format than a route file:
113 <PropertyList>
114 ...
115 <bookmark n="2">
116 <ID type="string">LFBT</ID>
117 <latitude-deg type="double">43.178643</latitude-deg>
118 <longitude-deg type="double">-0.006341</longitude-deg>
119 <altitude-ft type="double">1179.785445</altitude-ft>
120 <name type="string">Tarbes Ossun Lourdes</name>
121 <desc type="string">no infos</desc>
122 <waypoint-type type="string">APT</waypoint-type>
123 </bookmark>
124 ...
125 </PropertyList>
126 The ZKV500 is quite useful to create bookmarks on the fly.
127
128 2. Debugging installation
129
130 if you want to debug the nasal, you can use the "debugging tool" I've created:
131 - edit the Aircraft/Instruments-3d/zkv500/*.nas files with your favourite
132 text editor
133 - in the Nasal console from FGside type:
134 var zkv_dir = getprop("/sim/fg-root") ~ "/Aircraft/Instruments-3d/zkv500/";
135 io.load_nasal(zkv_dir ~ "zkv_dbg.nas", "zkv_dbg");
136 zkv_dbg.reload_zkv_code();
137 - click on "Execute"
138 - find errors
139 - modify source code then re-click on "Execute" until satisfaction (or death :D)
140
141 3. Without 3D interface
142
143 if you want to use the zkv500 without the 3D interface and all installation steps
144 as described above, type in a Nasal console:
145 var zkv_dir = getprop("/sim/fg-root") ~ "/Aircraft/Instruments-3d/zkv500/";
146 io.load_nasal(zkv_dir ~ "zkv_dbg.nas", "zkv_dbg");
147 zkv_dbg.test();
148
149 3. GLOBAL PRESENTATION
150 ======================
151 The interface is simple:
152 (http://seb.marque.free.fr/fichiers/flightgear/zkv500/presentation.png)
153 * 4 knobs turning left (left mouse click) or right (right mouse click)
154 * 3 white buttons
155 * 1 LCD display
156 * 2 LEDs (red and green)
157
158 enter escape start
159 button button button
160 PAGE|------------------------|SELECT
161 KNOB| |KNOB
162 | LCD DISPLAY |
163 | 5 LINES |
164 MODE| |POWER
165 KNOB|------------------------|KNOB
166 red green
167 led led
168
169 -> PAGE knob allows you to cycle in the different pages available for
170 each mode.
171 key sequence ":gl"
172 -> SELECT knob allows yo to navigate in a page, or select element, or
173 edit some simple text (depending of screen).
174 key sequence ":gr"
175 -> MODE knob allows you to select a mode, and acces to the ZKV500 settings
176 you can access this knob at any time, any screen.
177 key sequence ":gm"
178 -> POWER knob allows you to turn ON and OFF the ZKV500, and set the
179 LCD enlightment.
180 key sequence ":gp"
181 The goal of each button depends of the displayed screen.
182
183 4. USER'S MANUAL
184 ================
185 1. Powering ON / Enlight / Switch OFF
186 To power ON, just left click on the ON/OFF knob. Clicking again will make it
187 more and more enlighted.
188 When powered ON, you are on the ModeAndSettings screen.
189 Right-click on POWER knob will first decrease enlightment intensity until
190 switch the ZKV500 off.
191 key sequence ":gp [up/down x times]"
192
193 2. Screens list
194 [] -> button
195 () -> knob
196 *** ModeAndSettings ***
197 From this screen you can change from a mode to another mode (see 4.3 Modes, below)
198 [START] enter in a mode
199 (PAGE) enter in settings pages (cycle)
200 (SELECT) modify settings
201
202 the available settings are:
203 * units
204 you can change the displayed unit for altitude, distance and speed.
205 the units are long named, on other screens only short name wilm be
206 displayed.
207 * thresolds
208 you can change the thresold from when the ZKV500 will alert you about
209 next waypoint approach, or will load the next waypoint into calculation.
210
211 *** PositionMain ***
212 This page gives you infos about the aircraft position.
213 You find it in every modes.
214 [ENTER] save the position as a bookmark (entering in Edit screen)
215
216 LAT: latitude in deg:min:sec
217 LON: longitude in deg:min:sec
218 ALT: altitude
219 HDG: geographic cap (! not magnetic cap, or aircraft heading)
220 SPD: speed
221
222 *** Odometers ***
223 This screen gives you odo-values. You can find it in every modes.
224 [ESCAPE] reset odometers, except TRIP
225
226 ODO: travelled distance
227 TRIP: total travelled distance
228 TIME: elapsed time from last reset
229 AVG HDG: average heading
230 AVG SPD: average speed
231
232 *** WindInfos ***
233 This screens gives you infos about wind as it should be calculated by the
234 GPS, indeed, as the calculation is already done elsewhere, it takes the value
235 from /environnement/* node (btw I don't really know how to calculate correctly
236 these values). You need to have a airspped > 10kts for having it work. This
237 screen is available on every modes
238
239 SPEED: windspeed
240 FROM: the direction where the wind come from (geographic North)
241
242 *** NavigationMain ***
243 This screen gives the related position of the aircraft about the calcualted
244 route. It is only available in TURNPOINT and TASK modes.
245
246 [ENTER] TURNPOINT mode: add the actual position to the route,
247 TASK mode: jump to next waypoint
248 [START] save the route (mode TURNPOINT only)
249
250 ID: Id of the waypoint to go [waypoint type]
251 BRG: bearing from the aircraft to the waypoint (geographic)
252 DST: remaining distance
253 XCRS: course error in degree (in distance unit)
254 TTW: remaining estimated time
255 The graph represents the position in nautic miles, of the aircraft on the leg.
256 The precision depends on the remaining distance before the waypoint. If less than
257 5 nm, each + means 0.1 nm, if greater than 5nm each + means 0.5 nm.
258 the | symbol represents the route, the little aircraft represents... the aircraft.
259
260 *** AirportMain ***
261 This screen gives infos about the nearest, or a specific searched airport (see
262 SearcAirport screen, below). It is only reachable from AIRPORT mode.
263
264 [ENTER] add the airport to route
265 [ESCAPE] get the nearest airport
266 [START] add airport to bookmarks, and enter TURNPOINT mode, to go directly
267
268 NEAREST or SEARCHED APT: OACI code of airport
269 ELEV: airport altitude
270 DIST: distance between aircraft and airport
271 BRG: bearing from aircraft to airport (geographic)
272 RWY: best runway calculated from known wind, it is to say not really useful
273 when airport is very far away...
274 ETE: estimated time enroute to go
275
276 *** AirportInfos ***
277 This screen gives infos about the airport (nearest or searched). It is only
278 reachable from AIRPORT mode.
279
280 (SELECT) navigate in the runway list (not yet implemented)
281
282 First line gives the full name of airport
283 Lines below show the runways with the format
284 heading (length in meters / width in meters)
285
286 *** SearchAirport ***
287 This screen allows you to search an airport from OACI code. It is reachable from
288 AIRPORT mode.
289 If the search is successful, the AirportMain screen is shown, in other case the text
290 is erased, and you are invited to retry.
291
292 (SELECT) modify letter (from A to Z then 0 to 9, cycled)
293 [ENTER] next step
294 [ESCAPE] back to AirportMain screen, without search
295 [START] search the given OACI code
296
297 *** TurnpointSelect ***
298 This screen shows a list of already bookmarked gps points. It is only available
299 in TURNPOINT mode.
300
301 (SELECT) navigate through the list (eventually through multiple pages)
302 [START] begin the navigation from actual position to the bookmark
303
304 *** TurnpointInfos ***
305 This screen is not yet implemented. It will gives infos about the bookmark
306
307 *** TaskSelect ***
308 This screen allows you to choose a route (if one available). It is only available
309 in TASK mode.
310
311 (SELECT) navigate through the routes list (eventually through multiple pages)
312 [START] load the route, and begins navigation
313
314 *** WaypointInfos ***
315 Not yet implemented, will give infos about waypoint. Only available in TASK mode.
316
317 *** WaypointsList ***
318 This screen shows the list of waypoint loaded from a route.
319 (SELECT) navigate through the list
320
321 *** WaypointEdit ***
322 This screen allows you to name a gps point in order to bookmark it.
323
324 (SELECT) cycle letters (from A to Z then 1 to 9)
325 [ENTER] next step
326 [ESCAPE] abort saving bookmark
327 [START] save bookmark
328
329 3. the 4 modes
330 *** POSITION ***
331 The simpliest one, just give information about the aircraft position. You can
332 save bookmarks from this mode (pressing ENTER in PositionMain screen).
333 (PAGE) cycle through these screens (both ways):
334 PositionMain, Odometers, WindInfos
335
336 *** AIRPORT ***
337 Useful to know wher you can put you aircraft safely on the ground, gives other infos
338 as the best runway, it is possible to search an airport (turn the PAGE knob until
339 Search airport page), add the airport to a route or as a bookmark (automatically
340 called by airports ID and name).
341 (PAGE) cycle through these screens (both ways)
342 AirportMain, NavigationMain, PositionMain, Odometers, WindInfos, AirportInfos, SearchAirport
343
344 *** TURNPOINT ***
345 Useful mode to join a specific point of interest, or to navigate around.
346 (PAGE) cycle through these screens (both ways)
347 TurnpointSelect, NavigationMain, PositionMain, Odometers, WindInfos, TurnpointInfos
348
349 *** TASK ***
350 Most useful mode :). Follow the route to go through long distances, without being
351 lost at anytime (even with no VOR or NDB near enough to get capted by radios). Or
352 if you aren't IFR skilled :D
353 When approaching a waypoint, a red led blink (this can be set in ModeAndSettings screens)
354 When on the point (idem), it loads autmatically the next point and calculate the leg infos
355 When the last point is reached, it come back to TaskSelect screen to allow chosing an other
356 route.
357 (PAGE) cycle through these screens (both ways)
358 TaskSelect, NavigationMain, PositionMain, Odometers, WindInfos, WaypointInfos, WaypointsList
359
360 5. FG INTEGRATION
361 =================
362 You can change the waypoints directly from the property tree (/instrumentation/gps)
363 or using the GUI (Menu Instruments -> GPS Settings).
364 Please note that, at this stage of development, I haven't yes set listeners
365 on the properties, when changing the waypoint, new route is automatically
366 calculated, but changing them don't call yet the correct mode and page.
367
368 6. PRACTICAL EXAMPLES
369 =====================
370
371 7. THE FUTURE
372 =============
373 The ZKV500 still lacks many features I plan to implement. I stop adding features
374 for now, as I want it to be the more bug-free possible before creating other bugs.
375 1. PLANNED FEATURES
376 * integrated help
377 * description pages (waypoints and airports)
378 * more useful informations
379 * make use of green led (for which use? surely depends of the above)
380 * altitude control
381 * two ways routes (toward and back)
382
383 2. PLANNED FEATURES LIMITED BY FG "API'S"
384 * search for VOR/TAC, NDB and FIX capacities
385
386 2. NOT PLANNED FEATURES
387 * graphical view of regions
388
389 8. ANNEXES
390 ==========
391 1. creating flightplans with ./flightplan
392 You can get ./flightplan from this link:
393 http://seb.marque.free.fr/fichiers/scripts/perl/flightplan
394
395 -> Make it executable,
396 -> best to set $FGROOT and $FGHOME to respectives folders
397 -> For creating a flightplan from LFPT to LFBD:
398 $ ./flightplan -d lfpt -a lfbd --wpt
399
400 This will write in $FGHOME/Routes a file named lfpt-lfbd.xml, suitable for the
401 ZKV500
402
403 Sébastien MARQUE
404 [email protected]
405