简体   繁体   English

不同设备上的Android指南针校正

[英]Android compass correction on different devices

I have got a small application that uses compass readings on my device (Xperia Neo V). 我有一个小型应用程序,该设备在我的设备(Xperia Neo V)上使用指南针读数。 When testing it, I got very satisfying results while pointing the desired direction. 测试时,在指向所需方向的同时获得了非常令人满意的结果。 But I tested it on a Samsung Galaxy S3, and I run the same application on my neo V at the same time, the two devices did not show exactly the same direction. 但是我在三星Galaxy S3上进行了测试,并且在我的neo V上同时运行了相同的应用程序,这两个设备的显示方向并不完全相同。 There was a drift about 10 degrees. 大约有10度的漂移。

So, as an electronical engineer I know that different digital compass sensors may give different values due to design, but I coulnd't find an efficient solution to that yet. 因此,作为一名电子工程师,我知道由于设计的原因,不同的数字罗盘传感器可能会给出不同的值,但我还无法找到一种有效的解决方案。 Any Ideas? 有任何想法吗?

I would try some experiments using rotations in different direction on both devices in the same environment to find any correlation on the results. 我将尝试在同一环境中的两个设备上使用不同方向的旋转进行一些实验,以找到结果的任何相关性。 Possibly there's an offset that should be removed. 可能有一个偏移量应该被删除。 A real pure compass device could help to estimate the noise level. 真正的纯罗盘设备可以帮助估计噪声水平。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM