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.

Accelerating a rotary knob- Xtouch

Featured Replies

how would I   make the DH/MDA  knob turn FASTER.. it takes about a week to dial it up to anything using an Xtouch rotary  !  
This is the script for increase 
(L:MSATR_DH_SET_1_DELTA,·number)·++·(>L:MSATR_DH_SET_1_DELTA,·number)
im sure its simple but im not that great on scripting 
I noticed that for example on the HDG script, there actually are different scripts for fast and slow, but I cant work out how I would adapt that 
ive tried using roll increase to duplicate event in the actual button assignment page - and I tried Repeat tickbox, but that doesnt seem to work..presumably because its not a button 
any help gratefully appreciated  !


 

  • Commercial Member
10 minutes ago, vsukpadman said:

im sure its simple

It is not. This depends on how that LVar works.

But - the "roll" should have done "something" at least? 

"Repeat" has nothing whatsoever to do with this use case - it means to "repeat" a button that is being held down.

LORBY-SI

  • Author
25 minutes ago, Lorby_SI said:

the "roll" should have done "something" at least? 

didnt seem to..I set it to 9 , and still the numbers moved 1 by one interminably slowly..will try again 

so its very much a scripting thing I need rather than a button assignment function.. ? hence why the HDG ones were two separate scripts I assume.. 

  • Commercial Member
22 minutes ago, vsukpadman said:

didnt seem to..I set it to 9 , and still the numbers moved 1 by one interminably slowly..will try again 

so its very much a scripting thing I need rather than a button assignment function.. ? hence why the HDG ones were two separate scripts I assume.. 

The "roll" setting should have repeatedly executed the script. But there is no way of knowing what that LVar does inside the aircraft logic. Maybe the "roll" is happening too fast - there are lots of instances where this can be a problem in MSFS.

Try increasing the increment, like this
10·(>L:MSATR_DH_SET_1_DELTA,·number)

-10·(>L:MSATR_DH_SET_1_DELTA,·number)

And your script can be simplyfied as well
1·(>L:MSATR_DH_SET_1_DELTA,·number)

-1·(>L:MSATR_DH_SET_1_DELTA,·number)

LORBY-SI

  • Author

Excellent !..will give that a try and let you know if I have any luck

 

much appreciated as always ! 

  • Author
2 hours ago, Lorby_SI said:

10·(>L:MSATR_DH_SET_1_DELTA,·number)

Total success..the shortened script worked , as did the number at the start- I settled on 5/-5 , and will probably make a duplicate with 1/-1 as with the Alt knob

Brilliant..thank you so much ! 

You could also use a variable and then toggle it's value with a button. 

I use (L:DH_INC_RATE) and (L:DH_DEC_RATE). I use a button to switch their values between 1 and 10 and -1 and -10 respectively.

I then use:

(L:DH_INC_RATE)·(>L:MSATR_DH_SET_1_DELTA,·number)

and

(L:DH_DEC_RATE)·(>L:MSATR_DH_SET_1_DELTA,·number)

  • Commercial Member
21 minutes ago, Dazzlercee23 said:

I use (L:DH_INC_RATE) and (L:DH_DEC_RATE). I use a button to switch their values between 1 and 10 and -1 and -10 respectively.

I then use:

(L:DH_INC_RATE)·(>L:MSATR_DH_SET_1_DELTA,·number)

and

(L:DH_DEC_RATE)·(>L:MSATR_DH_SET_1_DELTA,·number)

...or just the one LVar: (L:DH_RATE) where you switch the value between 1 and 10 

(L:DH_RATE)·(>L:MSATR_DH_SET_1_DELTA,·Number)

(L:DH_RATE)·neg·(>L:MSATR_DH_SET_1_DELTA,·Number)

But for true "acceleration" you will probably want to use the "Fast turn" option in AAO - and for that you need all four separately.
Actually, not really. You can implement just one script, and use the script variable to process the value that you set in the little numerical control to the right of the down/up fast/slow events.
Consider this:
Script group: "whatever"
Script name: "DH_Set"
Script code: "(L:whatever-DH_Set)·(>L:MSATR_DH_SET_1_DELTA,·Number)"

OK? The script variable is always called (L:group-name). When actuated with a button, it will contain the value that you've assigned to this particular script event on the button dialog. The same is true when calling the script as a K: event. And for axis of course.
 

Another tipp: instead of typing in the script variable, save the script first. Once saved, the button "Insert script var" becomes active, and it will do what it says - it will insert the properly named script variable at the current cursor position.

Edited by Lorby_SI

LORBY-SI

39 minutes ago, Lorby_SI said:

(L:DH_RATE)·neg·(>L:MSATR_DH_SET_1_DELTA,·Number)

I learn something every day! 

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.