On Tuesday 04 February 2020 13:57:02 andy pugh wrote:

> On Tue, 4 Feb 2020 at 18:58, Gene Heskett <[email protected]> wrote:
> > Wouldn't you be able to reset raw counts on the index edge and count
> > index up or down from zero to get the same results
>
> Rawcounts is useful if the encoder is also being used to commutate the
> motor.....
> (And for certain other applications)

Thats not an unsolvable problem, just scale the rawcounts to the scale. 
The result is the lookup pointer into the commutation table. Probably 
with a shift to throw away more bits you don't need to access that 
particular pattern, a lookup table running from zero to scale in both 
directions. Motors whose commutation pattern aren't powers of 2 would 
need something different of course.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>


_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to