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.

Set Data example

Featured Replies

I am attempting to modify the Set Data example to use SIMCONNECT_DATA_LATLONALT instead of SIMCONNECT_DATA_INITPOSITION.The program compiles and runs but the user aircraft doesn't move. case EVENT_6: {/* SIMCONNECT_DATA_INITPOSITION Init; Init.Altitude = 5000.0; Init.Latitude = 54.9315248414087; Init.Longitude = -2.95371576251096; Init.Pitch = 0.0; Init.Bank = -1.0; Init.Heading = 180.0; Init.OnGround = 0; Init.Airspeed = 60; hr = SimConnect_SetDataOnSimObject(hSimConnect, DEFINITION_6, SIMCONNECT_OBJECT_ID_USER, 0, 0, sizeof(Init), &Init );*/ SIMCONNECT_DATA_LATLONALT pos; pos.Latitude = 54.9315248414087; pos.Longitude = -2.9537157625109; pos.Altitude = 5000.0; hr = SimConnect_SetDataOnSimObject(hSimConnect, DEFINITION_7, SIMCONNECT_OBJECT_ID_USER, 0, 0, sizeof(pos), &pos ); printf("nEVENT_6 received and data sent");I have added DEFINITION_7 to the DATA_DEFINE_ID and added: hr = SimConnect_AddToDataDefinition(hSimConnect, DEFINITION_7, "Position",NULL,SIMCONNECT_DATATYPE_LATLONALT);to set up the definition.I would be grateful for your comments.George

  • Author

It's ok, I've figured it out. I can't use a SIMCONNECT_DATA_LATLONALT struct, I need to use a custom struct.

Create an account or sign in to comment

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.