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.

Setting up an SDK...

Featured Replies

  • Commercial Member

I would like to design an SDK similar to those used by Level-D 767 and the CIVA INS where access to certain variables within the project is given to developers. Specifically I would like to include library/header files and document the variables. How can the internal multi-gauge variables be exported and used externally in this way? Appreciate any help or suggestions.

Andrew Wilson

sig_fslDeveloper.jpg

  • Author
  • Moderator

Simply designate all variables you want "exposed" as "broadcast variables."*Broadcast Variable*UINT32 variable1;case PANEL_SERVICE_PRE_INSTALL:register_var_by_name(&variable1,TYPE_UINT32,"variable1");break;case PANEL_SERVICE_PRE_KILL:unregister_var_by_name("variable1");break;*Receive Variable*MODULE_VAR variable1READ1;local_variable1 = 0;void FSAPI gaugecall(PGAUGEHDR pgauge, int service_id, UINT32 extra_data){PUINT32 variable1 = (PUINT32)variable1READ1.var_ptr;switch(service_id){case PANEL_SERVICE_PRE_INITIALIZE:initialize_var_by_name(&variable1READ1,"variable1");break;case PANEL_SERVICE_PRE_DRAW://now, bullet-proof the receive variable!if (variable1) != NULL {local_variable1 = *variable2 ; } break;Now you have local_variable1 to use in the remote gauge... ;)

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator
  • Commercial Member

Thanks for the reply Bill. Please correct me if I

Andrew Wilson

sig_fslDeveloper.jpg

  • Author
  • Moderator

FLOAT64 is a "double"...You can pass FLOAT64 if you set it up to do so...I just provided a UNIT32 example...

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.