
turn specified degrees function not behaving right
Hi,
I have constructed this function which should turn the robot a specified number of degrees:
The problem with this function is that it does not behave the same when the angle variable is negative or positive.
By that I mean that if i tell the function to turn 90 degrees it will turn 90, but if i tell the function to turn -90 (the opposite direction) it will turn -85. So if there is a loss of precision is not inthe same when the value of angle is positive or negative.
Could someone know why please?
Regards,
giannis