Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting different orientation values from ios and Android #25

Closed
jasan-s opened this issue Oct 27, 2016 · 2 comments
Closed

getting different orientation values from ios and Android #25

jasan-s opened this issue Oct 27, 2016 · 2 comments

Comments

@jasan-s
Copy link

jasan-s commented Oct 27, 2016

i wanted to use the lib to achieve the following: I have two geo points and want to point an arrow towards the destination geo point. I can successfully calculate the bearing in degrees. I am currently just using data.do.alpha but the value is different from each (ios and android) device thus the arrow points different directions as i move the phone. What am i missing?

@dorukeker
Copy link
Owner

Hello,
Since your scenario is with geolocation I assume you are using GyroNorm.WORLD as orientationBase. Google recently change how deviceorienation is interpreted in Chrome browser. This broke the alpha values in case you are using WORLD-based orientation. This was mentioned in another issue here (#24)

Chances are that even if you use the same iOS device and test with Safari and Chrome you will get different results.

Unfortunately it is not an easy fix that I can apply to GyroNorm (or the underlying library FullTilt). Please follow the other thread for updates on that one.

Let me know if I understood the problem correct and this addresses your problem.
Cheers,
Doruk

@dorukeker
Copy link
Owner

Hello @jasan-s ,
How did it go?
I'd like to close this issue if all is clear.
Let me know.
Cheers,
Doruk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants