Hi Shaggy41,
Sorry for the late response. I tried your solution and it works after replacing newLocation with movement as the 2nd function argument.
The last thing i need is to get the negative values of the angles, since now it only shows the angle value between 0 and 180. Can I know how to get the negative values for the angles?
Thanks in advance.