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.

Server gauge updating

Featured Replies

HI! It's me again ;) ... i created a server gauge, and 2 client gauges . now i would like to know how can i change the values of these variables in server gauges .. here's the codecase PANEL_SERVICE_PRE_INSTALL: { register_var_by_name (&EcamPage, TYPE_UINT32, "EcamPage"); register_var_by_name (&EcamAction, TYPE_UINT32, "EcamAction"); break; } case PANEL_SERVICE_PRE_UPDATE: { EcamPage = 10; break; } case PANEL_SERVICE_PRE_KILL: { unregister_var_by_name ("EcamPage"); unregister_var_by_name ("EcamAction"); break; ..now the EcamPage = 10; does not update the variable value ... can i do this in server gauge, or is this only doable over client gauge?

  • Author
  • Moderator

This works:UINT32 EcamPage = 0 ; // server gauge broadcast version of variableUINT32 EcamPage_local =0 ; // server gauge local version of variablevoid FSAPI gaugecall(PGAUGEHDR pgauge, int service_id, UINT32 extra_data){ switch(service_id) { case PANEL_SERVICE_PRE_INSTALL: register_var_by_name(&EcamPage,TYPE_UINT32,"EcamPage"); break; case PANEL_SERVICE_PRE_UPDATE: EcamPage = EcamPage_local ; break; case PANEL_SERVICE_PRE_KILL: unregister_var_by_name("EcamPage"); break; }}

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

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.