You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running a sample app based off the readme example and logging data.dm.alpha, data.dm.beta, and data.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?
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:
Which browser are you using on Android?
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
I see on Safari some 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?
Finally can you try this with vanilla values from JS API?
Correct, the use case I'm looking for is more concerned with the rate of change than the actual rotation itself
The device was picked up from lying face-up flat on a desk to facing me (similar to what you would do if you got a text and checked the screen). I repeated this motion three times.
Do you have a code snippet that uses the vanilla values?
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
):The text was updated successfully, but these errors were encountered: