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.

Can't adjust Altimeter through SimConnect. What am I doing wrong?

Featured Replies

I've got SimConnect up and running, and can pull in data (Altitude, Indicated Altitude, etc.) and I can send events back to the simulator to unpause the simulation - so I know the connection is up and working and my basic method of sending events seems to be correct, but for the life of me I can't adjust the altimeter settings.  The SEND_UNPAUSE works fine, but the INC_ALTIMETER has no effect.  I've tried it with both Transmits and with each one separately with the same results.  Thanks in advance for any help.

 

Here is the code I'm using (C#):

... (Declarations)
        enum EVENTS 
        { 
            INC_ALTIMETER,
            SEND_UNPAUSE
        }; 

        enum GROUPID 
        { 
            FLAG = 2000000000, 
        }; 

... (When setting up connection)
     simconnect.MapClientEventToSimEvent(EVENTS.INC_ALTIMETER, "KOHLSMAN_INC");
     simconnect.MapClientEventToSimEvent(EVENTS.SEND_UNPAUSE, "PAUSE_OFF"); 
... (In Button Click Event)
     simconnect.TransmitClientEvent((uint)SimConnect.SIMCONNECT_OBJECT_ID_USER, EVENTS.SEND_UNPAUSE,  (uint)0, GROUPID.FLAG, SIMCONNECT_EVENT_FLAG.GROUPID_IS_PRIORITY); 
     simconnect.TransmitClientEvent((uint)SimConnect.SIMCONNECT_OBJECT_ID_USER, EVENTS.INC_ALTIMETER, (uint)0, GROUPID.FLAG, SIMCONNECT_EVENT_FLAG.GROUPID_IS_PRIORITY);
...
  • 4 weeks later...

Hi, im new with SimConnect. If you're trying to set the Reference Altitude, you should use.

... (Declarations)
enum EVENTS 
{
KEY_AP_ALT_VAR_DEC,
KEY_AP_ALT_VAR_INC
}; 

... (When setting up connection
                my_simconnect.MapClientEventToSimEvent(EVENTS.KEY_AP_ALT_VAR_DEC, "AP_ALT_VAR_DEC");
                my_simconnect.MapClientEventToSimEvent(EVENTS.KEY_AP_ALT_VAR_INC, "AP_ALT_VAR_INC");
... (In Button Click Event)
            my_simconnect.TransmitClientEvent(SimConnect.SIMCONNECT_OBJECT_ID_USER, EVENTS.KEY_AP_ALT_VAR_INC, 0, GROUP.ID_PRIORITY_STANDARD, SIMCONNECT_EVENT_FLAG.GROUPID_IS_PRIORITY);

Im missing two things from the Altitude Alerter gauge: The CANCEL button and the light on it (marked with a red circle in the image). I don't know how to read light state / or generate the key event to that CANCEL button. Can't find it in Events IDs or Simulation Variables lists. Do you have any idea on how to do that?

 

Altitude_Alerter.jpg

 

Thx.

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.