Skip to content

Move a non ATC aircraft #102

Answered by EvenAR
Arsaphes asked this question in Q&A
May 10, 2024 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

Regarding the data definition ID this must be created in the same way you would do when requesting or setting simvars on the user's aircraft. The data definition is used to describe the contents of the data chunk you will be sending. The definition should be created once and reused whenever you need to send the same set of simvars.

Example:

// Define the data structure (done once)
const PLANE_POSITION_DEFINITION_ID = 123;
handle.addToDataDefinition(PLANE_POSITION_DEFINITION_ID, 'Plane Latitude', 'degrees', SimConnectDataType.FLOAT64);
handle.addToDataDefinition(PLANE_POSITION_DEFINITION_ID, 'Plane Longitude', 'degrees', SimConnectDataType.FLOAT64);

// Prepare the data blob to send
const d…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Arsaphes
Comment options

@EvenAR
Comment options

Answer selected by Arsaphes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants