How do I get aircraft state from PDK without using SimConnect

srgriffiths
Posts: 36
Joined: Tue Aug 04, 2015 7:51 pm

How do I get aircraft state from PDK without using SimConnect

Postby srgriffiths » Thu Nov 15, 2018 8:17 pm

I need aircraft Velocity (N,E,D), and Velocity (u,v,w), and Aircraft Pitch, Roll, Heading. I don't see any way to get this information without using SimConnect in addition to the camera PDK.

Thanks in advance for any information you can provide.

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

Re: How do I get aircraft state from PDK without using SimConnect

Postby Brady Butler » Thu Nov 15, 2018 8:35 pm

Hello,

Take a look at GetPosition here: https://www.prepar3d.com/SDKv4/sdk/pdk_ ... _isim.html

Regards,
Brady
Brady Butler
Prepar3D® Software Engineer

srgriffiths
Posts: 36
Joined: Tue Aug 04, 2015 7:51 pm

Re: How do I get aircraft state from PDK without using SimConnect

Postby srgriffiths » Thu Nov 15, 2018 10:58 pm

Great!

What is vPHBVel? what frame is it in? And what units?

Thanks

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

Re: How do I get aircraft state from PDK without using SimConnect

Postby Brady Butler » Thu Nov 15, 2018 11:16 pm

Hello srgriffiths,

If you click on the blue "GetPosition" link it should bring you here: https://www.prepar3d.com/SDKv4/sdk/pdk_ ... dbc06c7243

vPHBVel Pitch, heading, bank velocity (radians / second)

I believe it is the current frame.

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 24 guests