Igor Chudov wrote:
>
> Whils I kind of agree in general (I do numerical modeling too, for a
> living), here we are essentially comparing a == a and it fails. See my
> another post in this thread about GCC bug 323.
>
> My concern with doing what I am doing, is that if I wanted the knee to move
> at glacial speed, it would shut off.
> But I know that I do not need it.
>   
Well, when comparing two floating point numbers, the comparison only 
shows that they are the same within  the limits of the mantissa 
representation in that floating point format.  (Of course, a double has 
a LOT of bits of mantissa....)

But, anyway, you used 1E-7, so with 1000 servo cycles/second, that would 
require moving slower than one inch every 1000 seconds to fool the 
comparison.  That is REALLY slow!  Way below "glacial" speed.

Jon

------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to