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

doesn't seem to have accurate heading information on android #8

Open
benkauffman opened this issue Aug 28, 2020 · 2 comments
Open

doesn't seem to have accurate heading information on android #8

benkauffman opened this issue Aug 28, 2020 · 2 comments

Comments

@benkauffman
Copy link

benkauffman commented Aug 28, 2020

I used this to build a compass specifically for mapping tower locations and providing feedback on how to best directionally tune your antenna ... on iOS it works great (apple maps), however on android it doesn't work very well (google maps) ... if i open google maps and verify that it's tracking heading correctly it's fine, so i know it's not an issue with the device.

@ChiaHuaLu
Copy link

After digging around all night for a RN library that could spit out the compass heading, I finally had luck with this one.
As OP stated, I also found it to work fine for iOS. I am using a iPhone 8 and OnePlus 7T

(aiming the camera at horizon will be described as 0 degree elevation, point camera below horizon I will call negative elevation, and vice versa)

on iOS, as I turn around, it updates accurately. And if I don't turn, but point at higher elevation and negative elevation, the heading doesn't move too much.

However, on Android, I found that if I turn while pointing at negative elevation, the heading works as expected. But if I move up past 0 elevation, the heading flips around as if I turned around and face behind me.

@mrkprdo
Copy link

mrkprdo commented Sep 27, 2021

Hi @firofame is there any workaround on this? thank you.

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

3 participants