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.

GTN Sim Variables

Featured Replies

Hi All,

I would like to be able to access the Simulation Variables mentioned in the reference manual but have been unable to do so.

I am not overly familiar with  referencing  3rd party (non P3D) variables so I'm probably doing something glaringly wrong.

Here's my setup code:-

SimConnect_MapClientDataNameToID ( hSimConnect, "rxp.gps.cross_track_nm_1", GTN_ID_XTRACK);  // trying to read cross track var

SimConnect_AddToClientDataDefinition ( hSimConnect, CLIENT_DATA_DEF, SIMCONNECT_CLIENTDATAOFFSET_AUTO, SIMCONNECT_DATATYPE_FLOAT64);

SimConnect_RequestClientData ( hSimConnect, GTN_ID_XTRACK,  CLIENT_REF , CLIENT_DATA_DEF, SIMCONNECT_CLIENT_DATA_PERIOD_SECOND);

 

As far as I know , this is all I should be doing to get sent a message: SIMCONNECT_RECV_ID_CLIENT_DATA with data within for  xtrack. 

If I can get this working then I can expand to get multiple data out.

But I get nothing. 

Can anybody point out what I am doing wrong. Am I referencing the GTN variables correctly? Is the code sequence in correct ?

I'd be grateful for any help.

 

Cheers.

 

 

 

 

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.