Il 11/07/2013 12:11, Jon Stockill ha scritto:
> On Thu, 11 Jul 2013 00:30:48 +0200, Nicola Quargentan wrote:
>> Hi,
>>
>> I connected an encoder with two outputs (A and B) at a Joystick Board
>> (bodnar BU0836X). I used button 1 for wire A and button 2 for wire B.
>> Using xml and nasal script I get the right rotation (I want to move
>> obs
>> knob). Everything works fine only if I move the knob slowly. If I
>> move
>> the knob quickly, the result is uncertain.
>> It's pretty clear that I cannot intercept all the steps of the
>> encoder.
>> Does anyone have any idea on how to fix it?
>
> Nasal is unlikely to be quick enough to keep up, however most (if not
> all?) of Leo's interfaces support onboard quadrature decoding, so you
> can have the chip do the decoding and just pass "up" and "down" signals
> instead of the raw data. There's a utility for windows for configuring
> this on Leo's website, and ISTR Melchior wrote a similar util for linux.

Thanks for your answer.
I'm happy to know that someone had already solved the problem :)
Just a question: there is no difference between the 3 options "encoder": 
1, 2, 3.
But that's okay: the 0 button marks the counterclockwise rotation and 
button 1 the clockwise rotation.

P.S. sorry for the delay in the response. I was at the beach with family :P


-- 
Nicola Quargentan
Quargentan S.p.A.
Via Valle, 1
Terrossa di Ronca' (VR)
Tel 045/7460043
Fax 045/7460954

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Flightgear-users mailing list
Flightgear-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-users

Reply via email to