Chris Radek wrote:
> On Fri, Oct 23, 2009 at 11:33:15AM -0700, Peter C. Wallace wrote:
> 
>> Its still is a quadrature decoder but it only counts on one edge (rising 
>> edge 
>> of A in this case, state of B on rising edge of A determines direction)
> 
> If this is true, it is not a correct decoding.
> 
> Imagine B is high, and A goes high/low/high/low/high/low
> 
> correct decoding is +1, -1, +1, -1, ...
> 
> The scheme you suggest gives an incorrect +1, +1, +1, ...

The behavior is as Chris describes.

Here's a test that shows the behavior of the hm2 encoder when 
counter_mode=1.  It assumes that the human has connected a pair of gpio 
pins to the encoder input, and toggles the gpios and watches the encoder 
behavior.  The first 2/3 of the file is setup, the real test begins in 
the last third:

<http://highlab.com/~seb/bzr/fabrication/projects/emc2-hacking/hm2/test/loopback/gpio-to-encoder/001.step-dir-mode/dotest>


-- 
Sebastian Kuzminsky
the sky calls to us -- carl sagan
<http://www.youtube.com/watch?v=zSgiXGELjbc>

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to