Archived

This topic is now archived and is closed to further replies.

Guest cbuchner1

AI aircraft following stored GPS tracks?

Recommended Posts

Hi, I am searching for a little bit of advice regarding an application that I'd like to come up with.A friend of mine can record his flights in soar planes as GPS tracks, similar as one can record a flight in FSX. Now we would like to replay these flights in FSX so that one can watch for example an AI aircraft repeat that very flight.Two problems arise here: - how to extrapolate credible yaw, pitch, roll of the aircraft from a series of Lat, Lon, Altitude values?- how to control AI aircraft through SimConnect?Maybe someone can help me out a little with ideas and input. It

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

It's late and I haven't thought this through much, but there is this:AI WAYPOINT LIST List of waypoints that an AI controlled object should follow.When you create an AI plane and give it places to go, FS flies the aircraft, so if you pull the LLA values from the GPS tracking and create a waypoint structure:struct SIMCONNECT_DATA_WAYPOINT{ double Latitude; double Longitude; double Altitude; unsigned long Flags; double ktsSpeed; double percentThrottle;};Then the AI plane will fly there. Obviously you'd have to write something to figure out speed, either via actual tracking or by taking the distance between waypoints and the time it took to travel between them.If you put that info in correctly, I think you'll find that the AI plane flies a reasonable approximation of the path.

Share this post


Link to post
Share on other sites