> Despite a good-faith effort searching the mailing list
> archives, I've been unable to get AI traffic working.
> Can someone please provide a brief (2-3 sentences)
> HowTo?
>
> What I find really appealing would be this:  Set up a
> Cessna to do repeated touch and gos in a traffic
> patten to 28L, and a 737 on approach (say from near
> the outer marker) to 28R.  I'd then fly into the
> terminal environment (VFR of course) and have to watch
> for traffic and enter the pattern.  Going into 28R I'd
> have to keep the speed up or else end up with a 737 in
> my rear end.


Hi Mike,

There are actually two different AI systems in FlightGear.  The first one was 
written by David Luff and is called AI-Traffic.  This system puts AI Cessnas 
in the traffic pattern at the smaller airports.  I'm not familiar with this 
one, but there are others on this list who are.  I don't know if it's 
possible for this system to create traffic at KSFO.

The second AI system is called AI, and is the system that creates a wide array 
of AI objects, including ships, storms, thermals, static objects, airplanes, 
and ballistic objects.  This system is controlled by an AI scenario file 
(XML).  You will find several demo scenario files in the directory 
data/Data/AI.  Each scenario file defines one or more AI objects.  You may 
have as many AI objects as you like in each scenario, but there can only be 
one scenario running at a time.

Overall control of this AI system is done in preferences.xml under the <ai> 
section.  Here you turn the system on and define which AI scenario file you 
want to run.  This causes the scenario to start at the start of the 
simulation, and it will run until the simulation ends.

If you look at the aircraft_demo.xml scenario file you'll see how to create a 
737 AI aircraft.  To have this airplane fly approaches to 28L you just need 
to change the <flightplan> to KSFO_ILS28L.xml.  (Note that the flight plans 
are in the FlightPlans subdirectory, and you can make your own to put in 
there).  A new feature, available only in the CVS version of FlightGear so 
far, is the <repeat> tag, which will cause the aircraft to vanish at the end 
of its flight plan and reappear at the beginning, which it will do 
indefinitely.  You do this by setting <repeat> to any non-zero value, for 
example <repeat>1</repeat>.

That's a quick look at it.  There's a document on this system at the wiki 
(which doesn't display properly), but I need to write an HTML doc for the 
Docs collection.  Let me know if you have any questions.

Dave

_______________________________________________
Flightgear-users mailing list
[email protected]
http://mail.flightgear.org/mailman/listinfo/flightgear-users
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to