Page 1 of 1

Can I read how far have I moved horizontally?

Posted: Tue Oct 10, 2017 5:44 am
by ppp333ddd_
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

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

Posted: Wed Oct 11, 2017 1:00 pm
by Rob McCarthy
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

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

Posted: Wed Oct 11, 2017 5:41 pm
by dsdawson
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.