20,741
edits
(Move intro above TOC.) |
mNo edit summary |
||
| Line 1: | Line 1: | ||
= Background = | |||
There's a new 'NavDisplay' instrument, which is another kind of dynamic texture, along with ground-radar. It is designed to show navigation type info (route, waypoints, traffic, airports, navaids) in a customisable way, and hence be used to simulate the navigation modes of various modern cockpits. | |||
The 'NavDisplay' code in FlightGear 2.6 is already fully generic - using XML and some clever PNGs, it should be able to approximate most moving-map type displays - Honeywell/Boeing, Airbus, a basic Garmin (maybe not a G1000), or various military displays. Right now. | |||
You should be able to get the ND showing TCAS, waypoints, the route path, VORs and airports. I would hope the symbol definitions and textures you need can be borrowed from the A380 and converted, otherwise I have the 777 versions (which are definitely different!) or they're in the main 777 repo. | |||
It is currently implemented for the A380 and the Citation-Bravo aircraft (see $FG_ROOT/Aircraft). | |||
The Bravo now contains a non-Airbus example of using the NavDisplay texture to show traffic, the route-path, and nearby data. The Bravo is definitely the best example in FGDATA right now. There's some docs on the Wiki about using the NavDisplay. The git commit containing the NavDisplay implementation details is available here: http://gitorious.org/fg/fgdata/commit/dcc9efd9de194316a06b6a1801e147e3b023d6cc | |||
The '''navigation display''' (ND) instrument provides a texture resembling the display of the navigation or map displays found in many digital cockpits and GPS units. The instrument tries to be sufficiently generic, to approximate many different real-world displays. Fortunately, most real-world displays are quite similar to each other, with some systems offering additional features that will be added later. | The '''navigation display''' (ND) instrument provides a texture resembling the display of the navigation or map displays found in many digital cockpits and GPS units. The instrument tries to be sufficiently generic, to approximate many different real-world displays. Fortunately, most real-world displays are quite similar to each other, with some systems offering additional features that will be added later. | ||
| Line 43: | Line 56: | ||
In general you will write some Nasal or XML to update these properties each frame (eg, reading the simulated INS position or calculated top-of-climb position) and write that into a property node, supplying the type and state values. Symbol rules with then be applied as normal. | In general you will write some Nasal or XML to update these properties each frame (eg, reading the simulated INS position or calculated top-of-climb position) and write that into a property node, supplying the type and state values. Symbol rules with then be applied as normal. | ||
= Related = | |||
* http://www.mail-archive.com/flightgear-devel@lists.sourceforge.net/msg34143.html | |||
* http://gitorious.org/fg/flightgear/blobs/next/src/Instrumentation/NavDisplay.cxx | |||
* http://gitorious.org/fg/flightgear/blobs/next/src/Instrumentation/NavDisplay.hxx | |||
[[Category: Core development projects]] | |||
[[Category:Aircraft instruments]] | [[Category:Aircraft instruments]] | ||