BMS4.35 new ILS volume control in HELIOS
-
I am struggling to implement this control in my Helios profiles. Since 4.35 it is now a multi position switch instead of just on/off.
I can animate the switch or I can make it send correct callbacks but I cannot make it do both.
As any body worked out how to do it, if so I would like to know how.Thanks in advance weepop
-
Hello,
I used the same way as for the backup IFF.
With a lua script.
I go through a 3-way interuptor, by a roatif. -
Not sure I understand that!
On the Audio 1 & 2 Panel do you have a rotary switch and a 3toggle switch visible in the ILS volume control location ? -
-
OK I understand now.
I suppose the digit “1” refers to the first position on the virtual rotary switch.
Do you step up with the increase ie 2 3 4 etc
The start position in the pit is fully right which I suppose is full volume.
I think I will try make my label start at 8 and work down to 0. -
OK ertiyu I have done that with a nine position hidden rotary and it works fine except for one problem.
If you are at max volume “8” and you press “+” or if you are at min volume “0” and press “-” it gets out of step with the 3Dpit control.
Can you work your magic with the LUA script to prevent this.This is the script I am using:-
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 rotary -
Hello Weepop,
here is my button code.
I think you have reversed the values.
toto = toto or 1
if TriggerValue==3 then
if toto <9 then
toto = toto+1
else toto=9
end
elseif TriggerValue==1 then
if toto >1 then
toto = toto-1
else toto=1
end
end
return toto -
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!