Andy Pugh wrote: > On 7 April 2010 03:00, Gene Heskett<[email protected]> wrote: >> Sounds like your math needs a mod function. It would drive it to the next >> index only, I think. >> > Yes, that ought to work too (though I would prefer that the gear > didn't move at all when the tooth count was altered). > I was all set to do it this way, then failed to find a "mod" function > in HAL either. > > I think I might look at writing my own function. > Maybe make it so you can zero the positions. Whatever HAL setup does the "gearing" would then be multiplying a new number by 0, which would give 0 as the target position, and there should be no motion.
- Steve ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
