Can I read how far have I moved horizontally?

Discussion related to Mission design and creation.
ppp333ddd_
Posts: 37
Joined: Fri Aug 18, 2017 1:04 am

Can I read how far have I moved horizontally?

Postby ppp333ddd_ » Tue Oct 10, 2017 5:44 am

In P3D, I can know what is the distance of vertical movement by reading the altitude. But can I read how far have I moved horizontally from taking off?

Thanks,
Jeff

User avatar
Rob McCarthy
Lockheed Martin
Posts: 915
Joined: Wed Aug 24, 2011 1:37 pm

Re: Can I read how far have I moved horizontally?

Postby Rob McCarthy » Wed Oct 11, 2017 1:00 pm

Hi Jeff,

The RequestData sample shows how to get various parameters for the user vehicle. You can use this information to calculate distances over time.

Regards,
Rob McCarthy
Rob McCarthy
Prepar3D® Core Lead

dsdawson
Posts: 26
Joined: Sat Jan 14, 2012 5:46 pm

Re: Can I read how far have I moved horizontally?

Postby dsdawson » Wed Oct 11, 2017 5:41 pm

Track the status of the SIM_ON_GROUND variable. When it becomes false, read Lat and Lon.
If you're running in-process, you can use the GPS interface to calculate the distance between here and there.
If not, you'll have to implement a great circle calculation to get your distance.


Return to “Scenario Development (SimDirector) Questions”

Who is online

Users browsing this forum: No registered users and 2 guests