icepapmotor._hw_position is using a cached value
Hello,
On an icepap motor.
When one use mymotor._hw_position one would expect a read on the controller. Instead a cached value is returned.
To get the expected feature, I have to use mymotor.controller.read_position(translation, cache=False)
mymotor.controller.read_position(translation, cache=False)/ mymotor.steps_per_unit*translation.sign + mymotor.offset
My guess is that the cache=False is omitted somewhere.
To debug this just have a motor moving and poll "_hw_position" as fast as possible. You will see multiples lines with the same position. With the cache=False, you have a different position at each line.
Cheers, Yves
Edited by Yves Watier