13,208
edits
m (Header cleanup: No real need for the Property-list header, it's already implied by the ingress) |
(Extending) |
||
Line 1: | Line 1: | ||
FlightGear | FlightGear use a few different '''flightplan xml formats''' stored in property-list xml files. Due to having different needs the flightplans used in the route manager and AI scenarios and have different formats. | ||
== AI flightplans == | == AI flightplans == | ||
:''See also [[AI Scenarios#Flightplans and Their Waypoints]].'' | :''See also [[AI Scenarios#Flightplans and Their Waypoints]].'' | ||
These flightplans contain only waypoints. | These flightplans contain only waypoints. By tying an AI flightplan to an AI model in a scenario xml file, an AI scenario will be created. | ||
=== Waypoint tags === | === Waypoint tags === | ||
Each waypoint can contain the following tags: | Each waypoint can contain the following tags: | ||
* <tt>'''<name>'''</tt> - Waypoint name, if it is the last waypoint use EOF or, if you want the AI model deleted, END. | * <tt>'''<name>'''</tt> - Waypoint name, if it is the last waypoint use <tt>'''EOF'''</tt> or, if you want the AI model deleted, use <tt>'''END'''</tt>. | ||
* <tt>'''<lat>'''</tt> - Latitude, decimal degrees | * <tt>'''<lat>'''</tt> - Latitude, decimal degrees | ||
* <tt>'''<lon>'''</tt> - Longitude, decimal degrees | * <tt>'''<lon>'''</tt> - Longitude, decimal degrees | ||
Line 14: | Line 14: | ||
* <tt>'''<crossat>'''</tt> - Crossing altitude, feet | * <tt>'''<crossat>'''</tt> - Crossing altitude, feet | ||
* <tt>'''<ktas>'''</tt> - Knots true air speed | * <tt>'''<ktas>'''</tt> - Knots true air speed | ||
* <tt>'''<on-ground>'''</tt> - | * <tt>'''<on-ground>'''</tt> - Set to <tt>'''true'''</tt> or <tt>1</tt> if on ground, if in air or in a tunnel set to <tt>'''false'''</tt> or <tt>'''0'''</tt> | ||
* <tt>'''<gear-down>'''</tt> - | * <tt>'''<gear-down>'''</tt> - <tt>'''true'''</tt> for gear down, <tt>'''false'''</tt> for gear up, or any number between 0 and 1 | ||
* <tt>'''<flaps-down>'''</tt> - | * <tt>'''<flaps-down>'''</tt> - <tt>'''true'''</tt> for flaps down, <tt>'''false'''</tt> for flaps up, or any number between 0 and 1 | ||
=== Example === | === Example === | ||
Line 44: | Line 44: | ||
:''See also [[Route manager#Defining a Route]].'' | :''See also [[Route manager#Defining a Route]].'' | ||
Route manager waypoints are a bit more complex, for starters they contain departure and destination information and not just one type of waypoint. | |||
Note that the first and last waypoint are the departure and destination airports. | Note that the first and last waypoint are the departure and destination airports. | ||
There | There is also support for Level-D 767 SID:s and STAR:s in FlightGear. | ||
=== Departure and destination tags === | === Departure and destination tags === | ||
Line 58: | Line 58: | ||
=== Waypoint types and tags === | === Waypoint types and tags === | ||
* <tt>'''runway'''</tt> - The | * <tt>'''<type type="string">'''</tt> - Either of: | ||
* <tt>'''navaid'''</tt> - Any significant point along the route. Both airports, navaids and fixes. | ** <tt>'''runway'''</tt> - The number of the departure or destination airport's runway. Accompanied in the waypoint by the <icao> tag. | ||
* <tt>'''offset-navaid'''</tt> - An point offset from a navaid by a bearing and distance. Note that true bearings are used here. | ** <tt>'''navaid'''</tt> - Any significant point along the route. Both airports, navaids and fixes. | ||
** <tt>'''offset-navaid'''</tt> - An point offset from a navaid by a bearing and distance. Note that true bearings are used here. | |||
* <tt>'''<alt-restrict type="string">'''</tt> - ? #FIXME | |||
* <tt>'''<alt-restrict type="string">'''</tt> - | * <tt>'''<altitude-ft type="double">'''</tt> - Altitude in feet | ||
* <tt>'''<altitude-ft type="double">'''</tt> - | * <tt>'''<ident type="string">'''</tt> - Identity of an airport, navaid or fixe | ||
* <tt>'''<ident type="string">'''</tt> - | * <tt>'''<icao type="string">'''</tt> - ICAO code of an airport | ||
* <tt>'''<icao type="string">'''</tt> - | * <tt>'''<lon type="double">'''</tt> - Longitude of the waypoint in decimal degrees | ||
* <tt>'''<lon type="double">'''</tt> - | * <tt>'''<lat type="double">'''</tt> - Latitude of the waypoint in decimal degrees | ||
* <tt>'''<lat type="double">'''</tt> - | * <tt>'''<radial-deg type="double">'''</tt> - True bearing from a navaid, fix or airport ''Do note that radials on charts are magnetic!'' | ||
* <tt>'''<radial-deg type="double">'''</tt> - | * <tt>'''<distance-nm type="double">'''</tt> - Distance from a navaid, fix or airport | ||
* <tt>'''<distance-nm type="double">'''</tt> - | |||
=== Example === | === Example === | ||
Line 124: | Line 123: | ||
</route> | </route> | ||
</PropertyList> | </PropertyList> | ||
</syntaxhighlight> | </syntaxhighlight> | ||