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.

Control External Device from within .gau file?

Featured Replies

I'm trying to insert my own code into a .gau file. It all compiles, but there is no effect. I naively assumed that after inserting the code into the sample attitude gauge that comes with the SDK, the .gau file would be read and executed cyclically. Is there a way to get MS FS to execute such code? Thanks for any help.

Where did you put the code? Your best bet is within the gauge callback function, specifically, within the PANEL_SERVICE_PRE_UPDATE case.Doug

Thanks for your reply!I searched the Panels SDK documentation for PANEL_SERVICE_PRE_UPDATE and did not find a reference. Could you point me in the right direction as to its usage? Thanks again.

Have a look at the source code for the FlightMap sub-gauge in the example code in the SDK. It uses a gauge callback, although the only case it uses is PANEL_SERVICE_PRE_DRAW. This case is only executed when the gauge is visible on the screen, which is why PANEL_SERVICE_PRE_UPDATE is more likely suitable for your purposes. It is executed at a rate of 18Hz, regardless of whether the gauge is visible or not.Doug

Thank you very much! I had went and deleted all the other gauges and was only messing with the attitude one for my .gau. This looks promising! Thanks again.

  • Author
  • Moderator

Gee, I must have been sleeping and missed the new update... ;) Thanks for the reminder, Doug!

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.