Open drp0 opened 4 years ago
If i well understand, your code in practise rounds the float result before the int convertion. Right?
float f = totalSteps/360.0 forces a float result deg *f therefore produces float 0.5 +float does indeed round the float to nearest integer David
Well. I will update my fork asap and i will open a pull request.
I have also to see if i have to add this rounding code in other methods. I suppose that newMoveToDegree() isn't the only one that should be updated.
int toStep = deg * totalSteps / 360 does not create correct value Solved using:
David