Jump to content
Sign in to follow this  
Guest cbuchner1

AI aircraft following stored GPS tracks?

Recommended Posts

Guest cbuchner1

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...