AI Traffic: Difference between revisions

Jump to navigation Jump to search
234 bytes removed ,  16 July 2020
m
No edit summary
Line 9: Line 9:




== Building Traffic Files ==
== Traffic Files Location ==
Traffic patterns are stored in data files in extended markup language (.xml) format. The actual location of these files are version dependent. For FlightGear 0.9.x, traffic files are stored in a subdirectory called '''Traffic''' in FlightGear's main data directory, hereafter referred to with it's technical name:
Traffic patterns are stored in data files in extended markup language (.xml) format. The actual location of these files are version dependent.
 
* FlightGear 0.9.x : <tt>[[$FG ROOT]]/Traffic/</tt>
<tt>[[$FG ROOT]]/Traffic/</tt>
* FlightGear 1.0 : <tt>[[$FG ROOT]]/AI/Aircraft/</tt>
 
* FlightGear 1.9.0 and subsequent versions : <tt>[[$FG ROOT]]/AI/Traffic/</tt>
In FlightGear 1.0, the traffic files can be found in a subdirectory of:
 
<tt>[[$FG ROOT]]/AI/Aircraft/</tt>
 
For example, traffic belonging to a United Airlines 737 would be located in: <tt>[[$FG ROOT]]/AI/Aircraft/737/737-UnitedAirlines-traffic.xml</tt>
 
FlightGear 1.9.0 has seen yet another move. In this version, the traffic files can be located in:
 
<tt>[[$FG ROOT]]/AI/Traffic/</tt>
 
For FlightGear 1.9.0 and later, a new traffic file format was introduced (henceforth referred to as "Traffic Manager II" format (TM-II), in which aircraft and flights are no longer directly coupled, leading to more flexibility.


Traffic is organised by Operator in subfolders, using the initial of the operator's ICAO designator. For example, traffic for United Airlines is stored under <tt>[[$FG ROOT]]/AI/Traffic/U/UAL.xml


A new traffic file format was introduced with FlightGear 1.9.0, referred to as "Traffic Manager II" format (TM-II), in which aircraft and flights are no longer directly coupled, leading to more flexibility.
Each traffic pattern is built around two entities: Aircraft and Flights. Before discussing the details, lets start by exploring these two concepts a little further.
Each traffic pattern is built around two entities: Aircraft and Flights. Before discussing the details, lets start by exploring these two concepts a little further.


86

edits

Navigation menu