I would like to detect a live device rotation (not orientation, rotation in degrees) with Cordova. I used device motion but I get a bunch of acceleration x y and z values, how can I calculate rotation from this?
I would like to detect a full 360 degree rotation (imagine putting the device on a stick [or pendulum], and then hit it so it swings).
Thanks!