磁场传感器校准在Android上! [英] Magnetic Field Sensor calibration on ANDROID!

查看:1272
本文介绍了磁场传感器校准在Android上!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做的作品作为一个指南针的应用程序。

Hey guys, I'm making an application that works as a compass..

我使用的加速​​度计和磁场传感器来计算通过,sensor.getOrientation()

I'm using the accelerometer and the magnetic field sensors to compute the azimuth angle through, sensor.getOrientation().

我在寻找的东西,可以提高磁场传感器的精度,因为我得到它的精度状态是不可靠的!

I'm searching for something that can improve the magnetic field sensor accuracy, since I'm getting it state of accuracy as UNRELIABLE!

任何人知道这事?我在找的东西,可以是硬codeD或者例如只phisicaly移动电话,直到它被校准!

Any one knows anything about this?I'm looking for something that can be either hardcoded or for instance just phisicaly moving the phone until it gets calibrated!

最好的问候,

推荐答案

这是不是一个最终的答案(我不知道什么是肯定的),但是从网上的帖子我的理解是,在这个数字左右挥动手机8几次,而罗盘在使用中应该触发自动重新校准。这就是谷歌地图应用程序提示,例如。我不知道这是否是依赖于应用程序的功能(在一些地图,通过加速计检测挥手触发校准),或一些在Android栈,或一些具体的事情到每个手机实现。试试看!

This is not a final answer (I don't know anything for sure), but my understanding from online posts is that waving the phone around in a figure of 8 a few times while the compass is in use is supposed to trigger automatic recalibration. This is what the google maps app suggests, for example. I don't know whether this is dependent on application functionality (something in maps that detects the waving by accelerometer and triggers a recalibration), or something in the android stack, or something specific to per-phone implementations. Try it and see!

例如讨论:<一href="http://androidforums.com/epic-4g-support-troubleshooting/217317-cant-get-compass-calibrate.html">http://androidforums.com/epic-4g-support-troubleshooting/217317-cant-get-compass-calibrate.html

该参考似乎表明这每轴/图8旋转过程中的内置功能: HTTP://m.eclipsim .COM / gpsstatus /

This reference appears to suggest this per-axis / figure-8 rotation process is built-in functionality: http://m.eclipsim.com/gpsstatus/

和这里的另一篇文章,声称这是内置的功能,而你甚至都不需要运行的重新校准工作指南针消费应用程序:<一href="http://www.ichimusai.org/2009/06/20/how-to-calibrate-the-htc-magic-compass/">http://www.ichimusai.org/2009/06/20/how-to-calibrate-the-htc-magic-compass/

And here another article that claims this is built-in functionality, and that you don't even need to be running a compass-consuming app for the recalibration to work: http://www.ichimusai.org/2009/06/20/how-to-calibrate-the-htc-magic-compass/

这篇关于磁场传感器校准在Android上!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆