BMS4.35 new ILS volume control in HELIOS
-
The difference between mine and yours is simply because my 3way toggle is the other way round with + on the left so that is not what causes it to overstep.
Your script will do exactly the same. Have you tried doing what I say and pressing + when already at maximum position? You will see that your helios display moves to minimum but the ingame control does not move. You are now out of step so your helios display is incorrect…
-
Yes in my profile everything is working correctly, see the video.
-
rotary = rotary or 1
if TriggerValue==1 then
if rotary <9 then
rotary = rotary+1
else rotary=1
end
elseif TriggerValue==3 then
if rotary >1 then
rotary = rotary-1
else rotary=9
end
end
return rotaryHello,
I see an “error”,
At the end of your loop you go back to the starting value.
your value returns to 1 or 9 when you have already reached your maximum rotation in the cockpit.
Your code does this:1,2,3,4,5,6,7,8 then 1,2,3,4,5,6,7,8.
While my code does this:
1,2,3,4,5,6,7,8,9 then 9,9,9,9,9,9,9,9And the reverse for the other side.
-
Thanks for that ertiyu it as stopped the cycling on.
Now can you tell me how to stop the rotary always starting at the beginning , I would like it to start at max volume because this is how the control is set in the 3D pit on starting the simulation.
-
Is the ramp in the off position ?
Change the value
"rotary = rotary or 1" to "rotary = rotary or 9" ```by doing this you can only go down to the first press.
-
Wow that was simple.
But I do not understand the question about the ramp???
-
Looking forward to help.
I meant that when we enter the cockpit the ILS button is off.But maybe google translate misled me on this sentence:
Now can you tell me how to stop the rotary always starting at the beginning, I would like it to start at max volume because this is how the control is set in the 3D pit on starting the simulation.
-
I’ve been using this for Ramp Start for all of the 9 position rotary switches:
With rotary switch default position set to 1 and not continuous
Set position changed to:
send script results callback for falcon:lastVal = lastVal or 1 CallBack = "" if TriggerValue > lastVal then CallBack = "SimILSUp" else CallBack = "SimILSDown" end lastVal = TriggerValue return CallBack
But to synchronise it if it gets out of step:
Set position 1 entered to:
send callback for falcon:send SimILSDown callback send SimILSDown callback send SimILSDown callback send SimILSDown callback send SimILSDown callback ```Set position 9 entered to: send callback for falcon:
send SimILSUp callback
send SimILSUp callback
send SimILSUp callback
send SimILSUp callback
send SimILSUp callbackAnd for a Hot Start: With rotary switch default position set to 9 and not continuous Set position changed to: send script results callback for falcon:
lastVal = lastVal or 9
CallBack = “”
if TriggerValue > lastVal then
CallBack = “SimILSUp”
else
CallBack = “SimILSDown”
end
lastVal = TriggerValue
return CallBackWith the same set of position 1 and 9 callbacks. So if it gets out of step it should synchronise at the min and max values. Although for a Hot Start most of the rotary switches in the sim are actually set to position 8 so in the last example just substitute 8 for 9.
-
Thank you linknet but with ertiyu`s help I now have it working perfectly.
It starts at max volume (8) and will only go down from this as far as min (0)
It cannot go above 8 or below 0 so cannot lose sychronisation with 3D pit knob. -
This post is deleted!