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.

Help needed - Maddog NAV MHz/kHz switching

Featured Replies

I am struggling to set up Behringer X-touch mini to control NAV in LeonardoSH Maddog.

I am trying to set up an rotary knobs to dial up/down frequencies.

For NAV radio I want to dial up/down Mhz and when short pressing the rotary knob to switch to kHz. For NAV radios In AAO I entered 16384·(>L:NAV1_event,number) and 8192·(>L:NAV1_event,number) for rotary up/down and it changes MHz. I made the same for kHz using 16385 and 8193.

But I have no clue how to make AAO understand that when I press the button it should then change only kHz, and when poressed again only MHz, etc.

Any ideas on how to make script for this?

 

I found in the Interior.xml of the maddog following event for NAV1, if this helps.

	<PartInfo>
		<Name>NAV1_knob1</Name>
		<AnimLength>100</AnimLength>
		<Animation>
			<Parameter>
				<Code>(L:NAV1_knob1, enum)</Code>
			</Parameter>
		</Animation>
		<MouseRect>
			<Cursor>Hand</Cursor>
			<MouseFlags>LeftSingle+RightSingle+WheelUp+WheelDown</MouseFlags>
			<CallbackCode>
                (M:Event) 'WheelUp' scmi 0 == if{ 16384 0 + (&gt;L:NAV1_event,number) }
                (M:Event) 'WheelDown' scmi 0 == if{ 8192 0 + (&gt;L:NAV1_event,number) }
                (M:Event) 'LeftSingle' scmi 0 == if{ 8192 0 + (&gt;L:NAV1_event,number) }
                (M:Event) 'RightSingle' scmi 0 == if{ 16384 0 + (&gt;L:NAV1_event,number) }
            </CallbackCode>
		</MouseRect>
	</PartInfo>
	<PartInfo>
		<Name>NAV1_knob2</Name>
		<AnimLength>100</AnimLength>
		<Animation>
			<Parameter>
				<Code>(L:NAV1_knob2, enum)</Code>
			</Parameter>
		</Animation>
		<MouseRect>
			<Cursor>Hand</Cursor>
			<MouseFlags>LeftSingle+RightSingle+WheelUp+WheelDown</MouseFlags>
			<CallbackCode>
                (M:Event) 'WheelUp' scmi 0 == if{ 16384 1 + (&gt;L:NAV1_event,number) }
                (M:Event) 'WheelDown' scmi 0 == if{ 8192 1 + (&gt;L:NAV1_event,number) }
                (M:Event) 'LeftSingle' scmi 0 == if{ 8192 1 + (&gt;L:NAV1_event,number) }
                (M:Event) 'RightSingle' scmi 0 == if{ 16384 1 + (&gt;L:NAV1_event,number) }
            </CallbackCode>
		</MouseRect>
	</PartInfo>

 

 

  • Commercial Member
48 minutes ago, JU108 said:

Any ideas on how to make script for this?

That is what the Combo feature is for. You create four (4) assignments for that rotary encoder, MHz Up/Down and kHz up/down, using the scripts that you have. Then you use the "button" functionality of the encoder as Combo in all four, in "toggle" mode. And for the two "kHz" assignments you must set the Combo to "suppress button event". Then clicking the encoder will switch between the MHz actions and the kHz actions.

Edited by Lorby_SI

LORBY-SI

  • Author

Thank you so much!

Archived

This topic is now archived and is closed to further replies.

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.