#rotary switch

1 messages · Page 1 of 1 (latest)

long venture
#

Hi, I have been looking for post or video about configuration rotary switches for 737 Zibo.
Unfortunately i didnt find.

For example AUTOBRAKE's switch dataref shows values 0 1 2 3 4 5 in datareftool.

How to connect 6 position rotary switch to this in xplane11?

Regards

fallow reef
#

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.

long venture
#

Okay so on press value set one of those value but what in release?

tough mountain
# long venture Okay so on press value set one of those value but what in release?
#

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).

long venture
#

Okay so only set on press values

#

And it will be working

long venture
#

I dont know

#

...

#

@tough mountain @fallow reef

fallow reef
#

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

long venture
long venture
tidal escarp
long venture
#

Actually it doesnt work

#

I dont know what to do🙃

tidal escarp
#

The typical use of the On Release is for latching switches where you turn on with on Press and turn off with on release

fallow reef
#

and on rotary switches there is one OnPress but also one OnRelease when you move it one notch

tidal escarp
#

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.

long venture
#

thats true

#

im thinking how to get around it

tidal escarp
#

you have to use the correct command. I can't help you there

long venture
#

okay i will try

long venture
#

doesnt work also

#

😦

long venture
#

okay guys when I use vjoy

#

it works correct

#

so why normal dataref doesnt work

#

OKAY

#

with these datarefs

#

IT WORK!!!!!!!!!!!!!!!!!!

#

thanks for help

fallow reef
#

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.

long venture
#

A lot of work

#

With thinking which dataref works

#

But 3days do ~20h of work will be enough to find the correct dataref😂

fallow reef
#

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

long venture
#

Oo okay