#rotary switch
1 messages · Page 1 of 1 (latest)
Are you talking about a switch you want to connect into an arduino?
In general a rotary switch is wired as separate switches in the arduino, and then you configure each OnPress with the dataref and one of those values, for example.
If its a rotary, say, in Honeycomb Bravo, I think that also shows up as separate button events, so it works the same way.
Okay so on press value set one of those value but what in release?
If you are talking of something like this: https://www.amazon.de/gp/product/B07NS3G648/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1
Merkmale: Jeder Artikel wird mit einer eindeutigen Herstellungs-Teilenummer auf der Innenverpackung qualifikationsgeprüft. 2. Wenn Sie Fragen haben, kontaktieren Sie uns bitte und senden Sie uns die Informationen zum MPN-Etikett. 3. Größe: 2,93 x 2,6 cm/1,15 x 1,02 Zoll (Durchmesser x Höhe) Feste...
Each position of this one acts like an indivdual button. For the 5 positions of this one you only need the "on press" to be assigned. When switching from position 0 to position 1 the signal for 0 will go from high to low (on release, nothing to be done) and the signal for 1 from low to high (on press, send value according to the position).
what are you trying to do?
and what is the rotary switch?
what happens with the dataref value?
you can either create a "dummy" output in mobiflight that reads and shows you the dataref value
to see if your switch input works correctly
as you can then see the dataref change value
and if you have a rotary switch, you can only use OnPress
because you want only to track the current position of the switch
Okay so i cant write anything in release on?
Yes, you can, but don't need to with a rotary switch
The typical use of the On Release is for latching switches where you turn on with on Press and turn off with on release
That's right
and on rotary switches there is one OnPress but also one OnRelease when you move it one notch
I am not an Xplane user, but it seems from your video that you are trying to write a value to a variable that is not settable. The simulator is immediately writing over whatever you write.
hmmm
thats true
im thinking how to get around it
you have to use the correct command. I can't help you there
okay i will try
okay guys when I use vjoy
it works correct
so why normal dataref doesnt work
OKAY
with these datarefs
IT WORK!!!!!!!!!!!!!!!!!!
thanks for help
yes, it is a lot about digging and testing different datarefs and commands with datareftool
because we are kinda trying to guess what the plane developer has been thinking and how everything works
But I guess if there is a Command, I would try it first, because my reasoning is, it would not exist if it wasnt used.
But it is also a bit tricky with Zibo, because there is the Laminar Research 737 that everything is based on, and extended from, and many of the Laminar commands and datarefs do work, but then there are custom ones added by Zibo.
A lot of work
With thinking which dataref works
But 3days do ~20h of work will be enough to find the correct dataref😂
well this is why we have hubhop
so everyone can share the work
with xplane it is not yet as established, but you can add the working ones there or adjust the datarefs that work only as output as such
so that the commands are easier to find etc
Oo okay