On 13 December 2017 at 15:08, John Kasunich <[email protected]> wrote:
> One thing to be aware of:  If your application runs the motors in the same 
> direction for long periods of time, absolute position will keep increasing 
> even though relative position doesn't change.  If HAL still uses single 
> precision (32bit) floats, you eventually might start losing resolution.  If 
> HAL uses double precision it will probably take a very long time before that 
> happens.  But you are still looking at small differences between large (and 
> constantly increasing) numbers - never a good thing.

It uses double.  (and the actual position output is calculated from an
internal 64-bit buffer of individual counts)

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1916

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to