Weepops Helios profile
-
Hello Weepop,
I just saw your post on GitHub,
I prefer to continue here to avoid polluting the bug report.
For the first question on the terms “& 1t” or “& gt”, this is the way for HELIOS to write in the file the signs “>” and “<”.For the second question, I did not change the code for the label.
It must be replaced by the same as the rotary.The easiest way is to open the .hpf file with the editor and copy and paste.
Sorry for my English I go through google translation.
-
Thanks ertiyu I agree ,much better to carry on here. I had not noticed that was the way helios wrote < and > in the profiles, Isee it now.
I do not understand your reply about restricting the range of the “labels”
Can you possibly give me an example of how to have a limit of 0 to 9 on a rotary.
BTW I bet your English is a lot better than my French !!
-
I thought you were talking about the display going negative.
Here’s what to change the code for the rotary by :
if TriggerValue==1 then if toto <9 then toto = toto+1 else toto=1 end elseif TriggerValue==3 then if toto >1 then toto = toto-1 else toto=9 end end return toto
For my English you have to say thank you to Google:p
A test File :
-
Thanks for that ertiyu it is exactly what I want but when I try to apply it in my profile the rotary does not move !!!
Why do you call the rotary “toto”, I have tried using that name and also using “rotary” but I still get no movement !!! -
Did you test the profile as an attachment?
Check carefully that there is no error in writing the lua code.
In the test profile the rotary works perfectly, it turns up to 9 and then back to 1 or back.
The code does not work in a single button.
It is written for a 3 see switch.You have to use a 3-way button. For example the “Plus Minus - Dark” present in “Rockers”
You need the latest version of HELIOS
I put “toto” to show that the name of the variable is not important.
She could have been called “tata”:D -
Yes I tested the profile attached and agree it works perfectly, it is exactly what I need.
Yes I am trying with a three way switch.
Yes I am using 1.4.2020.0308
Still do not know why it does not work.
I will double check everything and try again.
-
Unfortunately there I do not know why does not work.
Possibility to have the .hpf file to see my side?
-
Bonjour ertiyu
Merci pour votre aide….OK thats the limit of my schoolboy french, it has been 65 years since then.
I have redone the Lua script and it now works
I could not see anything wrong with the first attempt but it must have been a typo…
Thanks again , I will now try to apply it to my backup tacan, backup IFF and my radio controls
weepop(David)
-
Great ! :clap2:
Glad to have been able to help you progress on Helios.
-
SEE NEW POST WEEPOPS UPDATED
Warnings removed from first post because I do not think bindings are lost when resetting monitors in latest helios.
And no clash with waichou now because I have renamed my image folder.