Debian Codegraph @

Aircraft/Instruments-3d/FG1000/README

raw
1 README for the FG1000 glass panel display
2
3 The FG1000 aims to emulate the successful Garmin G1000 glass panel.
4
5 Development status can be found on the wiki: http://wiki.flightgear.org/FG1000
6
7 =How To Install On An Aircraft=
8
9 1) Place one or more of the display (GDU) units in your model. The XML files
10 are named <model>.<device-number>.xml, e.g.
11
12 GDU-1045.1.xml GDU-1045.2.xml GDU-1045.3.xml GDU-1045.4.xml
13
14 The <device-number> is referenced later to identify which displays to used
15 for each PFD, MFD etc. You must only used one of each <device-number> value,
16 though you can mix and match the GDU models.
17
18 2) Create Interfaces for Navigation, engine, NAV/COM, FMS data. There is a
19 generic interface (GenericInterfaceController) that uses the standard FG route
20 manager, GPS, navigation data and NAV/COM settings, and engine data for a single
21 piston engine.
22
23 You need to load it as follows:
24
25 var nasal_dir = getprop("/sim/fg-root") ~ "/Aircraft/Instruments-3d/FG1000/Nasal/";
26 io.load_nasal(nasal_dir ~ 'Interfaces/GenericInterfaceController.nas', "fg1000");
27 var interfaceController = fg1000.GenericInterfaceController.getOrCreateInstance();
28 interfaceController.start();
29
30 You may want to create your own version depending on what properties you are
31 using for the NAV/COM, and your engine configuration.
32
33 Note that you should only start the interface after you've loaded the FG1000
34 as they will publish information at start of day that the displays need.
35
36 3) Set up the Engine Information System. There is a generic EIS provided
37 (see FG1000/Nasal/EIS, and FG1000/MFDPages/EIS.svg) that is intended to match
38 a Cessna 172. If you need something different, you should create your own
39 EIS class and SVG file.
40
41 Note that you need to pass data to/from the engine using Emesary. See
42 Interfaces/GenericEISPublisher.nas for a reference implementation.
43
44 4) Load the FG1000 itself. See FG1000/Nasal/FG1000.nas for full details,
45 including how to pass in the EIS. A simple FG1000 using the generic EIS, and
46 displaying PFD on device-number 1 and an MFD on device-number 2 is as follows:
47
48 var nasal_dir = getprop("/sim/fg-root") ~ "/Aircraft/Instruments-3d/FG1000/Nasal/";
49 io.load_nasal(nasal_dir ~ 'FG1000.nas', "fg1000");
50
51 # Create the FG1000
52 var fg1000system = fg1000.FG1000.getInstance();
53
54 # Create a PFD as device 1, MFD as device 2
55 fg1000system.addPFD(1);
56 fg1000system.addMFD(2);
57
58 # Display the devices
59 fg1000system.display(1);
60 fg1000system.display(2);
61
62 # Display a GUI version of device 1 at 50% scale.
63 #fg1000system.displayGUI(1, 0.5)