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.

React at Mode Knob

Featured Replies

function PS_Radios_NAV_AUDIO_toggle ()
  if "Display Shows NAV1" then
	DspShow("NAV1","AUD")
  end
  if "Display Shows NAV2" then
	DspShow("NAV2","AUD")
  end
end

Hello,

 

in the MCP1 on the right side are this Mode Knob.

Pressing this will, as Default FSX function, toogle COM1/COM2 , NAV1/NAV2 , ADF1/ADF2, DME1/DME2 and Markers Audio.

Hope you know which button i mean?

 

Ok, now i want to write my own function to react on this button.

But in this function i must be able to know if COM1 or COM2 , NAV1 or NAV2 ... is selected.

The function must do something if NAV1 is selected and something else if NAV2 is selected.

 

My question is how i can decide what is selected in my own function?

 

 

 

Thanks

Matthias

i9-9900KF CPU @ 3.60GHz, 32GB Ram,RTX 3090TI,MSFS

Uh I think I can't help you.

 

As far as I know, this button is "hardcoded". You can assign something additionally, but the primary function couldn't be changed.

I could be wrong, but as far as I know that's it ...

 

I can't see a possibility to readout if COM1 or COM2 etc is activated ...

 

 

 

Only solution maybe:

you activate a global variable with your lua script.

So, if the script starts, this variable is set to "1".

With every change the variable changes also ...

Maybe this works

Guenter Steiner
--------------------------------------------------------------------------------------

Betatester for: A2A, LORBY, FSR-Pillow Tester
--------------------------------------------------------------------------------------

  • Author

Hello,

 

thanks.

 

But i found some variable who defines what is slected.

Then you can check what is selected and react on this.

 

com_open == 1

com_open == 2

nav_open == 1

nav_open == 2

adf_sel == 1

adf_sel == 2

 

These are global coded.

 

The only i did not found is the Transponder.

 

Matthias

i9-9900KF CPU @ 3.60GHz, 32GB Ram,RTX 3090TI,MSFS

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.