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

Featured Replies

Hi,I wonder which k-event is used for incr/ decr ADF STANDBY frequency and which k-event is used to swap between ADF1 STANDBY FREQUENCYADF1 ACTIVE FREQUENCYBrgdsEugen

Hi Eugen,The way I tackled this is to use two L:VARs to store the active and standby frequencies. In this way I could store the numbers as real numbers and not in the BCD format that FS needs.In this way I can make simple click events to increase the numbers e.g. (L:ADF ACTIVE, number) 100 + (>L:ADF ACTIVE, number)Then in a seperate element in my gauge I have a 'housekeeping' funtion that depending on the status of the toggle switch translated the L:VAR number to BCD and sets the ADF1 frequency to that. (One thing to note is that the 1000 digit is not set directly, a different K:var is used if the adf freq is above or below 1000.)There is also a second housekeeping function that fixes the two adf frequencies to the minimum of 100 when the sim starts. (Otherwise the L:VARS default to zero.)I have included these two housekeeping functions in the text document attached. Hope it helps!

Hi Paul,Thanks for your reply had some time to put it togheter.I used a slight different approach with a macro as a 'housekeeping' funtion see below. I found also another way to set the ADF.BrgdsEugen(L:ADF1STBY,kilohertz) 10000 * s0 10 % (>L:ADFConversionTemp,number) l0 10 / flr 10 % 16 * (L:ADFConversionTemp,number) + (>L:ADFConversionTemp,number) l0 100 / flr 10 % 256 * (L:ADFConversionTemp,number) + (>L:ADFConversionTemp,number) l0 1000 / flr 10 % 4096 * (L:ADFConversionTemp,number) + (>L:ADFConversionTemp,number) l0 10000 / flr 10 % 65536 * (L:ADFConversionTemp,number) + (>L:ADFConversionTemp,number) l0 100000 / flr 10 % 1048576 * (L:ADFConversionTemp,number) + (>L:ADFConversionTemp,number) l0 1000000 / flr 10 % 16777216 * (L:ADFConversionTemp,number) + (>L:ADFConversionTemp,number) l0 10000000 / flr 10 % 268435456 * (L:ADFConversionTemp,number) + (>L:ADFConversionTemp,number) (L:ADFConversionTemp,number) %SET ADF%@ADFClick (>K:ADF_COMPLETE_SET)

Neat i like it!

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.