Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

reference to map xplane variables to prepar3d variables

Featured Replies

Hello,

I need to get the corresponding P3d variables for these variables in Xplane
http://www.xsquawkbox.net/xpsdk/docs/DataRefs.html

Is there any reference which would be useful or could anyone help me map a few variables

For instance, what prepar3d variables should we use to denote Position of pilot's head relative to CG, (acf_peX,acf_peY,acf_peZ in Xplane)?

Thank you

  • Commercial Member
10 hours ago, Mangala Gandhamadhanan said:

Is there any reference which would be useful or could anyone help me map a few variables

Use the "Learning Center.chm" file in your main P3D directory, the specs for the P3D variables are in there. But - XP and P3D are vastly different in terms of API access and functionality. You cannot even begin to compare the two, let alone "map" variables. 

Quote

For instance, what prepar3d variables should we use to denote Position of pilot's head relative to CG, (acf_peX,acf_peY,acf_peZ in Xplane)?

In your example, you would use the SimConnect method "RequestCameraRelative6DOF", which will give you the camera position relative to the eyepoint. Alternatively you could use the "STRUCT_EYEPOINT_DYNAMIC_ANGLE" and "STRUCT_EYEPOINT_DYNAMIC_OFFSET" simulator variables. There is always more than one way to do things in SimConnect.

The eyepoint in turn must be requested using a SIMCONNECT_DATA_XYZ structure and querying the simulator variable "EYEPOINT POSITION".

Both value sets combined give you the distances from the datum reference point, which is the 0,0,0 point of the 3D model (but which usually isn't the CG).

Learning Center -> SDK -> SimConnect API -> References -> View functions

Learning Center -> SDK -> References -> Variables -> Simulation Variables -> Aircraft Position and Speed Variables

 

Best regards

Edited by Lorby_SI

LORBY-SI

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.