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.

More C Help

Featured Replies

Hi all,Working through the SDK at the moment trying to get to grips with this C business....When you look at the code below which is trying to work out the compass value, I can't understand where the code is accessing the FS compass variable?Can anyone explain it to me?FLOAT64 FSAPI compass_moving_card_x_cb( PELEMENT_MOVING_IMAGE pelement ){ FLOAT64 val = 360.0 - pelement->source_var_x.var_value.n; if( val >= 0 && val <= 360 ) return val; else return 0;}Many thanks,Paul.

The function wiskey_moving_card_x_cb() gets the variable from pelement->source_var_x.var_value.n. source_var_x is the first of the two MODULE_VARs defined in the MAKE_MOVING macro called a few lines further down:WHISKEY_COMPASS_DEGREES, wiskey_moving_card_x_cbHope that helps

Hans,That does. Thanks very much!

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.