> -----Original Message-----
> From: andy pugh [mailto:bodge...@gmail.com]
> Sent: March-31-22 4:17 PM
> To: Enhanced Machine Controller (EMC)
> Subject: Re: [Emc-users] Homebuilt encoder
> 
> On Fri, 1 Apr 2022 at 00:08, John Dammeyer <jo...@autoartisans.com> wrote:
> 
> > Thank you.  I'll see if I can't write up a detailed explanation on how it 
> > works.  Perhaps with some flow diagrams etc.
> 
> it basically keeps a running time window of where you would expect to
> see the next pulse (based on where the last one was +/- 10%, and if
> there isn't one it pretends that there was  (to keep the velocity and
> counts tidy). Then when there is a pulse it checks if the gap was the
> right size, and resets index if it was.
> 

That's the way I'd do it.   I see it also uses a ping pong buffer to allow 
accumulations while the calculations are being done.  

Have a few other things to work on first...

> "A motorcycle is a bicycle with a pandemonium attachment and is
> designed for the especial use of mechanical geniuses, daredevils and
> lunatics."
> � George Fitch, Atlanta Constitution Newspaper, 1912
> 
> 
> _______________________________________________
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users



_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to