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.

ADF problems getting relative bearing

Featured Replies

Patrick,ADF_NEEDLE is relative to the AC headingHere is a code snippet from one of my ADFs with a fixed card (no in-built compass)MODULE_VAR adf_strength = {ADF_SIGNAL_STRENGTH};MODULE_VAR ac_heading = {PLANE_HEADING_DEGREES_MAGNETIC};FLOAT64 FSAPI wes_adf_conv_cb( PELEMENT_NEEDLE pelement ){ lookup_var(&adf_strength); if(adf_strength.var_value.n < 256){ adf_flag=1; return 90; } else{ adf_flag=0; lookup_var(&ac_heading); return (ac_heading.var_value.n + pelement->source_var.var_value.n); }}MAKE_NEEDLE( wes_adf_needle, BMP_ADF_NEEDLE, &adf_signal_flag_list, NULL, IMAGE_USE_ERASE | IMAGE_USE_TRANSPARENCY | IMAGE_USE_BRIGHT, 0, 199,199, 26,162, ADF_NEEDLE,wes_adf_conv_cb, NULL, 6)PELEMENT_HEADER wes_adf_needle_list[] ={ &wes_adf_needle.header, NULL};Basically it ADDS the ADF_NEEDLE value to AC_HEADINGRegardsJim

Thanks Jim.I did finally observe this (now that I was so tired), and with all your guys help finally got it working.I just had to had the HDG of the aircraft, since the needle is just an offset, as you have surmised.

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.