Question

I would like to calculate the angle between a starting point and a position after rotation. In the example, 90 degree. The device is on a board and rotates clockwise. The device does not move, only the board rotates. How can I calculate the angle? The image demonstrates what I mean. The angle could be between 0 and 360 degree. If you have questions, please ask me.enter image description here

Was it helpful?

Solution

Not sure but you should take a look at this page : http://developer.android.com/reference/android/hardware/SensorEvent.html#values

There is a bunch of sensors and I think the gyroscope could do the trick.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top