CoreLocation Header for Android

I am currently working on an algorithm that requires an accurate assessment of the title of a mobile device. For iOS development, I donโ€™t need to evaluate the user header, as the framework already provides trueHeading through the CoreLocation framework. Therefore, I do not need to implement my own synthesis algorithm. The beauty of this trueHeading is that it is very accurate and very stable, especially when the device is resting. This allows me to troubleshoot my algorithm.

Now I'm trying to implement my algorithm in Android, and I met a control block that Android does not provide anything like trueHeading , or at least I do not know about it. In this case, I need to use TYPE_ROTATION_VECTOR , which is very unstable due to the use of magnetometers.

Does anyone know if Android supports something like trueHeading or has anyone used a better algorithm to accurately rate the course in Android?

I tried installing several compass apps on Android to see their performance, but no one reported accurate readings.

PS: I tried my level to explain my problem. Your help is greatly appreciated.

+1
source share

All Articles