Thats a common first order/single pole IIR (infinite impulse response) filter. You can find equations on the web based on the sampling(execution) rate to calculate the gain given a desired cutoff frequency.
I wonder if the thread jitter causes the errors. Since the timebase over which the measurement is done varies you think it would affect the output. SMD On Sat, Apr 7, 2012 at 4:49 PM, Andy Pugh <bodge...@gmail.com> wrote: > > > On 7 Apr 2012, at 04:32, gene heskett <ghesk...@wdtv.com> wrote: > > > I'll have to read up on the lowpass function to see if it defines what > > this "gain" setting means. > > One would normally adjust it until it has the right effect, but to a first > approximation a Gain of 1/10 means that the output is the average of 10 > samples, though it isn't actually a rolling average as such. The code is > _very_ simple: > > http://git.linuxcnc.org/gitweb?p=linuxcnc.git;a=blob;f=src/hal/components/lowpass.comp;h=ec68587b6ac25b26942eb470465dfe24f548cc40;hb=291fc50aa62774f2a2dbfce00fb17de152bd9f6b > > ------------------------------------------------------------------------------ For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users