2009/10/2 Andy Pugh <[email protected]>: > Aha! I see noisy encoder signals.
To see if that is the problem, you could debounce the signals in HAL. None of the glitches looks to be longer than one sample, so a single sample debounce should do. The drawback is that you potentially lose encoder at full speed. This is my custom.hal setup, you would need to add a channel for your encoder and I am sure I have too many links in the chain and it could be shorter. If you put it all in your normal hal file then you could skip the unlinkp bits, but I keep mine in custom to keep it safe from stepconf meddling. loadrt debounce cfg="2" addf debounce.0 base-thread setp debounce.0.delay 2 unlinkp encoder.0.phase-A unlinkp encoder.0.phase-Z unlinkp parport.0.pin-13-in unlinkp parport.0.pin-15-in net indexunfilt <= parport.0.pin-13-in net indexunfilt => debounce.0.0.in net indexfilt <= debounce.0.0.out net indexfilt => encoder.0.phase-Z net spindleunfilt <= parport.0.pin-15-in net spindleunfilt => debounce.0.1.in net spindlefilt <= debounce.0.1.out net spindleunfilt => encoder.0.phase-A -- atp ------------------------------------------------------------------------------ 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 [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
