Flightplan XML formats: Difference between revisions

Jump to navigation Jump to search
→‎Related content: + Links to the source code
m (small fixes)
(→‎Related content: + Links to the source code)
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
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.
FlightGear use a few different '''flightplan XML formats''' stored in property-list xml files.  Due to different needs the flightplans used in the route manager and AI scenarios and have different formats.


== AI flightplans ==
== AI flightplans ==
Line 9: Line 9:
Each waypoint can contain the following tags:
Each waypoint can contain the following tags:
{| class="wikitable"
{| class="wikitable"
! Tag !! Type !! Use !! Comment
! Tag !! Type !! Use !! Remarks
|-
|-
| <name> || N/A || Waypoint name || The last waypoint use '''EOF''' or, if the AI model is to be deleted, '''END'''.
| <code>&lt;name&gt;</code> || string || Waypoint name || The last waypoint use <code>EOF</code>, or if the AI model is to be deleted <code>END</code>.
|-
|-
| &lt;lat&gt; || N/A || Latitude, decimal degrees ||
| <code>&lt;lat&gt;</code> || double || Latitude, decimal degrees ||
|-
|-
| &lt;lon&gt; || N/A || Longitude, decimal degrees ||
| <code>&lt;lon&gt;</code> || double || Longitude, decimal degrees ||
|-
|-
| &lt;alt&gt; || N/A || Altitude above mean sea level, feet ||
| <code>&lt;alt&gt;</code> || double || Altitude above mean sea level, feet ||
|-
|-
| &lt;crossat&gt; || N/A || Crossing altitude, feet ||
| <code>&lt;crossat&gt;</code> || double || Crossing altitude, feet ||
|-
|-
| &lt;ktas&gt; || N/A || True air speed, knots ||
| <code>&lt;ktas&gt;</code> || double || True air speed, knots ||
|-
|-
| &lt;on-ground&gt; || N/A || Set to '''true''' or '''1''' if on ground
| <code>&lt;on-ground&gt;</code> || bool || Set to <code>true</code> or <code>1</code> if on ground


Set to '''false''' or '''0''' if in air or in a tunnel
Set to <code>false</code> or <code>0</code> if in air or in a tunnel
|
|
|-
|-
| &lt;gear-down&gt; || N/A || '''true''' for gear down
| <code>&lt;gear-down&gt;</code> || double || <code>true</code> for gear down


'''false''' for gear up
<code>false</code> for gear up
| Or any number between '''0''' and '''1'''
| Or any number between 0 and 1
|-
|-
| &lt;flaps-down&gt; || N/A || '''true''' for flaps down
| <code>&lt;flaps-down&gt;</code> || double || <code>true</code> for flaps down


'''false''' for flaps up
<code>false</code> for flaps up
| Or any number between '''0''' and '''1'''
| Or any number between 0 and 1
|}
|}


Line 73: Line 73:
=== Departure and destination tags ===
=== Departure and destination tags ===
{| class="wikitable"
{| class="wikitable"
! Tag !! Type !! Use !! Comment
! Tag !! Type !! Use !! Remarks
|-
|-
| &lt;airport&gt; || string || The ICAO identifier of the airport ||
| <code>&lt;airport&gt;</code> || string || The ICAO identifier of the airport ||
|-
|-
| &lt;sid&gt; || string || Any available SID ||
| <code>&lt;sid&gt;</code> || string || Any available SID ||
|-
|-
| &lt;star&gt; || string || Any available STAR ||
| <code>&lt;star&gt;</code> || string || Any available STAR ||
|-
|-
| &lt;transition&gt; || string || ? #FIXME ||
| <code>&lt;transition&gt;</code> || string ||  ||
|-
|-
| &lt;runway&gt; || string || Departure or destination runway ||
| <code>&lt;runway&gt;</code> || string || Departure or destination runway ||
|}
|}


=== Waypoint types and tags ===
=== Waypoint types and tags ===
{| class="wikitable"
{| class="wikitable"
! Tag !! Type !! Use !! Comment
! Tag !! Type !! Use !! Remarks
|-
|-
| &lt;type&gt; || string || Type of waypoint. Either '''runway''', '''navaid''' or '''offset-navaid''' ||
| <code>&lt;type&gt;</code> || string || Type of waypoint. Either <code>runway</code>, <code>navaid</code> or <code>offset-navaid</code> ||
|-
|-
| &lt;alt-restrict&gt; || string || ? #FIXME ||
| <code>&lt;alt-restrict&gt;</code> || string ||  ||
|-
|-
| &lt;altitude-ft&gt; || double || Altitude in feet ||
| <code>&lt;altitude-ft&gt;</code> || double || Altitude in feet ||
|-
|-
| &lt;ident&gt; || string || If '''&lt;type&gt;''' is  
| <code>&lt;ident&gt;</code> || string || If <code>&lt;type&gt;</code> is  
:; runway:  The number of the departure or destination airport's runway. Accompanied in the waypoint by the '''&lt;icao&gt;''' tag.
: <code>runway</code>:  The departure or destination airport's runway number. Accompanied in the waypoint by the <code>&lt;icao&gt;</code> tag.
:; navaid:  Any significant point along the route. Both airports, navaids and fixes.
: <code>navaid</code>:  Any significant point along the route. Both airports, navaids and fixes.
:; offset-navaid:  An point offset from a navaid by a bearing and distance. Note that true bearings are used here.
: <code>offset-navaid</code>:  An point offset from a navaid by a bearing and distance. Note that true bearings are used here.
|
|
|-
|-
| &lt;icao&gt; || string || ICAO code of an airport || Used only if &lt;type&gt; is '''runway'''
| <code>&lt;icao&gt;</code> || string || ICAO code of an airport || Used only if <code>&lt;type&gt;</code> is <code>runway</code>
|-
|-
| &lt;lon&gt; || double || Longitude of the waypoint in decimal degrees ||
| <code>&lt;lon&gt;</code> || double || Longitude of the waypoint in decimal degrees ||
|-
|-
| &lt;lat&gt; || double || Latitude of the waypoint in decimal degrees ||
| <code>&lt;lat&gt;</code> || double || Latitude of the waypoint in decimal degrees ||
|-
|-
| &lt;radial-deg&gt; || double || True bearing from a navaid, fix or airport || {{inote|Radials on charts are magnetic!}}
| <code>&lt;radial-deg&gt;</code> || double || True bearing from a navaid, fix or airport || {{inote|Radials on charts are magnetic!}}
|-
|-
| &lt;distance-nm&gt; || double || Distance from a navaid, fix or airport ||
| <code>&lt;distance-nm&gt;</code> || double || Distance from a navaid, fix or airport ||
|}
|}


Line 175: Line 175:


== Related content ==
== Related content ==
=== Wiki articles ===
* [[AI Systems]]
* [[AI Systems]]
* [[UFO from the 'White Project' of the UNESCO]]
* [[Howto:Create a flightplan]] – Contains no information whatsoever on using flightplans in FlightGear though.
* [[Interactive traffic#An example of a traffic file]] – Not flightplans per see as they only cover cruise altitude and departure and destination airport.
* [[List of Nasal extension functions#flightplan()]]
* [[List of Nasal extension functions#flightplan()]]
* [[Nasal Flightplan]]
* [[Nasal Flightplan]]
* [[PropertyList XML File]]
* [[PropertyList XML File]]
* [[Howto:Create a flightplan]], contains no information whatsoever on using flightplans in FlightGear though.
* [[UFO from the 'White Project' of the UNESCO]]
 
=== Source code ===
* {{flightgear source|src/AIModel/AIFlightPlan.hxx}}
* {{flightgear source|src/AIModel/AIFlightPlan.cxx}}
* {{flightgear source|src/Navaids/FlightPlan.hxx}}
* {{flightgear source|src/Navaids/FlightPlan.cxx}}
 
[[Category:XML]]
[[Category:Artificial intelligence]]
[[Category:Autoflight]]

Navigation menu