tangyong wrote:
>
> Hi,I want want to dirive many airplanes to fly automatically and all
> the airplanes' flight information are saved in a file.Stuart gave me
> an suggestion that I can use the AI sub-system to define the flights I
> want the aircraft to take,but can I save all my flight
> information(maybe millions of data of lat,lon and alt) in the
> flightplan XML files' waypoint section.And can I set many airplanes
> and flightplans in the \data\AI\aircraft_demo.xml,and how can a
> airplane know which flightplan responses to him correctly.
>
> Another question,I JUST want to all the airplanes fly automatically
> drived by my data.So I don't want to control any aircraft.But I when I
> start up the fgfs,I get a aircraft to control by myself.And how can I
> view any airplane flight in the FlightGear.Just like play
> Counter-Strike(a computer game),the surveillant can see any player he
> want to see.
>
>
Yes...is the easy answer, there are two ways;
AI-Traffic Manager that I haven't used but gather you specify Airports
and times etc and these are flown rather like a schedule ie multiple
planes, multiple routes.

Scenarios, I have used these. The are more for making objects follow
specific non-airport points on a flight plan. I use one to control two
ferry models going backwards and forwards between the North and South
Islands of New Zealand. You write flight plans in a xml formated database;


<PropertyList>
<flightplan>
<wpt>
<name>Start1</name>
<lat>43.991640</lat>
<lon>-88.572028</lon>
<alt>806.100000</alt>
<ktas>1</ktas>
<gear-down>true</gear-down>
<flaps-down>false</flaps-down>
<on-ground>true</on-ground>
</wpt>
<wpt>
<name>Flare1</name>
<lat>43.991606</lat>
<lon>-88.56232</lon>
<alt>790.908472</alt>
<ktas>30</ktas>
<flaps-down>false</flaps-down>
<on-ground>true</on-ground>
</wpt>
<wpt>
<name>Brake1</name>
<lat>43.991572</lat>
<lon>-88.558086</lon>
<alt>787.201315</alt>
<ktas>45</ktas>
<on-ground>true</on-ground>
</wpt>
<wpt>
<name>Rotate1</name>
<lat>43.991537</lat>
<lon>-88.553849</lon>
<alt>784.540965</alt>
<ktas>60</ktas>
<on-ground>true</on-ground>
</wpt>

Then refer to these flight plans in the scenario file thus;

<PropertyList>
<scenario>
<entry>
<callsign>AI 1</callsign>
<type>aircraft</type>
<class>jet_fighter</class>
<model>Aircraft/dhc2/Models/dhc2-AI-model.xml</model>
<flightplan>testfp01.xml</flightplan>
<repeat>1</repeat>
</entry>
<entry>
<callsign>AI 2</callsign>
<type>aircraft</type>
<class>jet_fighter</class>
<model>Aircraft\Spitfire\Models\spitfire_AI_model.xml</model>
<flightplan>testfp02.xml</flightplan>
<repeat>1</repeat>
</entry>
</scenario>
</PropertyList>


I hope this helps

Cheers
Dene

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to