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.

Limited event posting with Simconnect

Featured Replies

Hi,

 

I'm experiencing some lag when sending a lot of events using Simconnect to connect to PMDG 737NGX:
EVT_MCP_ALTITUDE_SELECTOR

The PMDG_NGX_Control structure is used to send the actual event:
struct PMDG_NGX_Control {
    unsigned int Event;
    unsigned int Parameter;
};

I'm calling the SimConnect_SetClientData function to set this structure with the appropriate event and paramenter.
Once I receive SIMCONNECT_RECV_ID_CLIENT_DATA for the NGX structure, I check if Event variable has returned to 0. If it has, I will send the next event (if any).

This seems to work okay, the problem is that is quite slow. I get the feeling that it is tied to the frame rate of the sim.
We have it hooked up to a hardware rotary encoder, which can generate quite a lot of events. You will see a definite lag in the sim as it is trying to catch up.

Please let me know if my way of doing this is wrong. Hopefully there is a quicker way to send events.

 

Any help is appreciated,

Corjan

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.