Zero Delay USB Joystick encoder and Daphne
-
I guess many of us use these encoders so am hoping someone else has run into the same use.
I am trying to setup Daphne, I have run the jstest and got values for my buttons (to which I know I need to add '1') but am having troubles with my directions...
Initially I tried getting the values for up and down but they just gave me -32767 and 32767 at position 1, and -32767 and 32767 at value two for the horizontals - I guess this means it is getting an analogue signal.
So, but of research later and I read that as the light on the encoder board is red it is in analogue mode, which makes sense, so I change it by adding a switch to the 'mode' connector on the board which makes the light go green, apparently this should now be in digital mode.
Sop I try again and this time I just get the -32767/32767 readings for my directions in position 5 and 6 - so I haven't achieved anything.
Anyone able to help with this please?
-
These values are normal for digital joysticks via zero delay encoders, I guess they're just the maximum analog values for the four axes, and a digital input just gets them up to the stop. For example, this is the output for mine using
jstest --event /dev/js0
and the directions up, down, left, right:Event: type 2, time 6890520, number 1, value -32767 Event: type 2, time 6890740, number 1, value 0 Event: type 2, time 6891160, number 1, value 32767 Event: type 2, time 6891280, number 1, value 0 Event: type 2, time 6891720, number 0, value -32767 Event: type 2, time 6891890, number 0, value 0 Event: type 2, time 6892550, number 0, value 32767 Event: type 2, time 6892770, number 0, value 0
That said, I don't understand exactly what you mean by "position 1". Care to elaborate?
-
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.