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
Can I read how far have I moved horizontally?
-
- Posts: 58
- Joined: Fri Aug 18, 2017 1:04 am
- Rob McCarthy
- Lockheed Martin
- Posts: 3703
- Joined: Wed Aug 24, 2011 1:37 pm
Re: Can I read how far have I moved horizontally?
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
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
Prepar3D® Core Lead
Re: Can I read how far have I moved horizontally?
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.
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.