Steve Blackmore wrote: > On Wed, 30 Sep 2009 15:57:12 +0100, you wrote: > > >> On Wed, 30 Sep 2009 14:26:24 +0100, you wrote: >> >> >>> 2009/9/30 Steve Blackmore <st...@pilotltd.net>: >>> >>> >>>> I've no idea how, or if it's possible to average the encoder readout? >>>> >>> Yes, you need to make a small change to your HAL file, see: >>> http://www.linuxcnc.org/component/option,com_kunena/Itemid,20/func,view/catid,24/id,369/limit,6/limitstart,42/lang,en/#891 >>> >> position-interpolated - that's even worse :( >> > > For interest, these are the only lines in my hal file that refer to > encoder, can anybody see anything wrong or missing? > > loadrt encoder num_chan=1 > > setp encoder.0.position-scale 500.000000 > net spindle-position encoder.0.position => motion.spindle-revs > net spindle-velocity encoder.0.velocity => motion.spindle-speed-in > net spindle-index-enable encoder.0.index-enable <=> > motion.spindle-index-enable > net spindle-phase-a encoder.0.phase-A > net spindle-phase-b encoder.0.phase-B > net spindle-index encoder.0.phase-Z > > There has to be an addf for the encoder component for it to be run, that assigns which RT thread it runs at, hence its sampling rate.
Jon ------------------------------------------------------------------------------ Come build with us! The BlackBerry® 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/devconf _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users