CoreLocation heading Android

眉间皱痕 提交于 2019-12-02 07:49:30

问题


I am currently working on an algorithm which requires an accurate estimate of the heading of the mobile device. For the development in iOS, I do not have to estimate the user heading as the framework already provides the value of trueHeading via CoreLocation framework. So I do not have to implement my own fusion algorithm. The beauty of this trueHeading is that it is very accurate and very stable, specially when the device is resting. This enables me to troubleshoot my algorithm.

Now, I am trying to implement my algorithm in Android and I have met a roadblock that Android does not provide anything like trueHeading, or at least I am not aware of it. In this case, I need to use TYPE_ROTATION_VECTOR which is very unstable, due to use of Magnetometers.

Does anyone know if Android provides something like trueHeading or has anybody used a better algorithm for accurate heading estimation in Android?

I have tried to install several compass apps in Android to see their performance but none reported accurate readings.

PS: I have tried my level best to explain my problem. Your help is really appreciated.

来源:https://stackoverflow.com/questions/32693424/corelocation-heading-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!