How do I get aircraft state from PDK without using SimConnect

SDK supports Prepar3D’s philosophy of an open development architecture and encourages third parties to bring new innovations with improved add-ons and training content.
Post Reply
srgriffiths
Posts: 36
Joined: Tue Aug 04, 2015 7:51 pm

How do I get aircraft state from PDK without using SimConnect

Post by srgriffiths »

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

Post by Brady Butler »

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

Post by srgriffiths »

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

Post by Brady Butler »

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
Post Reply