Open zachrattner opened 6 years ago
Hi there, I have not had the chance to test on the actual devices. I will when I have the time. Having said that, here are some questions/remarks:
data.dm.xxx
gives you the change in the rotation; not the rotation itself. I assume this is what you wanna get correct? If you want just the rotation you should use data.do.xxx
alpha
value is around 200. That means that the device was rotated in a short amount of time almost 3/4 around itself. Was that really the case?Curious how it goes. Cheers, Doruk
@dorukeker Thanks for the reply. Responses below:
Thanks, Zach
I have just observed the same behavior with an older version of Android, and yes I get the same from vanilla values. The values on Android/chrome seem more correct/logical to me. The values on ios seem almost like they are off by an order of magnitude.
I'm running a sample app based off the readme example and logging
data.dm.alpha
,data.dm.beta
, anddata.dm.gamma
. To do a simple smoke test, I'm stacking my iPhone 6S (running iOS 11.1 and Safari) on top of my Galaxy S8 (running Android 7.0 and Chrome) and pick the two phones up with one hand off the desk and then place them back down. I see significantly more extreme values on Safari than Chrome.Is there a way to normalize the values across the two platforms?
On Android, I see the following data logged:
On Safari, I see more extreme values:
Sample app code (including gyronorm from
https://dorukeker.github.io/gyronorm_samples/demo/gyronorm.complete.min.js
):