Wrong output from (P:ACTIVE EYEPOINT ALT, feet)

AlexisVGR
Posts: 33
Joined: Wed Jan 18, 2012 8:23 am

Wrong output from (P:ACTIVE EYEPOINT ALT, feet)

Postby AlexisVGR » Mon Apr 29, 2019 6:10 pm

While working on our aircraft, we needed to query the aircraft eyepoint and observed that the Altitude P:var outputs wrong information.

The difference in height between aircraft origin and eyepoint is 2.47ft or 0.75m in aircraft.cfg.

In the sim, we tried reading eyepoint and aircraft altitude in metres and feet and noted that eyepoint gives erroneous values.

Specifically, when querying eyepoint in metres, the result output is what it should be in Feet.
When querying the eyepoint in feet, the result is ~3.28 times the result of "metres".

So the conversion factor of 3.28 is correct, but the base value that is used is wrong.

Attached is an image showing the outputs of the eyepoint in metres, feet and the aircraft altitude in feet. These are raw values, taken from P3Dv4.4.

Image
SimWorks Studios
Alex Vletsas
3D Modeler & Animator
http://www.facebook.com/SimWorksStudios

User avatar
Brady Butler
Lockheed Martin
Posts: 880
Joined: Tue May 09, 2017 5:31 pm

Re: Wrong output from (P:ACTIVE EYEPOINT ALT, feet)

Postby Brady Butler » Tue Apr 30, 2019 5:12 pm

Hello AlexisVGR,

Thanks for the report, we should have this fixed in the next release.

Regards,
Brady
Brady Butler
Prepar3D® Software Engineer


Return to “Software Development Kit (SDK) Questions”

Who is online

Users browsing this forum: No registered users and 2 guests