[Flightgear-devel] Can I use AI flight plan to drive many ai rplanes by external file data

2006-12-16 Thread tangyong

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. 
 
 
 -
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.phpp=sourceforgeCID=DEVDEV___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Can I use AI flight plan to drive many ai rplanes by external file data

2006-12-16 Thread Dene


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
nameStart1/name
lat43.991640/lat
lon-88.572028/lon
alt806.10/alt
ktas1/ktas
gear-downtrue/gear-down
flaps-downfalse/flaps-down
on-groundtrue/on-ground
/wpt
wpt
nameFlare1/name
lat43.991606/lat
lon-88.56232/lon
alt790.908472/alt
ktas30/ktas
flaps-downfalse/flaps-down
on-groundtrue/on-ground
/wpt
wpt
nameBrake1/name
lat43.991572/lat
lon-88.558086/lon
alt787.201315/alt
ktas45/ktas
on-groundtrue/on-ground
/wpt
wpt
nameRotate1/name
lat43.991537/lat
lon-88.553849/lon
alt784.540965/alt
ktas60/ktas
on-groundtrue/on-ground
/wpt

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

PropertyList
scenario
entry
callsignAI 1/callsign
typeaircraft/type
classjet_fighter/class
modelAircraft/dhc2/Models/dhc2-AI-model.xml/model
flightplantestfp01.xml/flightplan
repeat1/repeat
/entry
entry
callsignAI 2/callsign
typeaircraft/type
classjet_fighter/class
modelAircraft\Spitfire\Models\spitfire_AI_model.xml/model
flightplantestfp02.xml/flightplan
repeat1/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.phpp=sourceforgeCID=DEVDEV___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel