May 7, 20233 yr 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 !
May 7, 20233 yr 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
May 7, 20233 yr 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..
May 7, 20233 yr 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 this10·(>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
May 7, 20233 yr Author Excellent !..will give that a try and let you know if I have any luck much appreciated as always !
May 7, 20233 yr 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 !
May 7, 20233 yr 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)
May 7, 20233 yr 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 May 7, 20233 yr by Lorby_SI LORBY-SI
May 7, 20233 yr 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.