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. -- Jon Stockill li...@stockill.net ------------------------------------------------------------------------------ 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