Android中磁力计的软重置

发布于 2024-09-05 12:39:02 字数 79 浏览 0 评论 0原文

我注意到,通过多次摇动或敲击手机(SE Xperia x10 mini)可以重新校准磁力计。有什么方法可以以更受控的方式在软件方面进行此操作吗?

I have noticed that by shaking or tapping the phone (an SE Xperia x10 mini) several times recalibrates the magnetometer. Is there any way of doing this software-wise in a more controlled way?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

情徒 2024-09-12 12:39:02

我不这么认为。这似乎是某种“硬件重置”:当磁力计被磁场迷惑时(扬声器通常就足够了),它需要物理移动才能返回到“简单状态”。

I don't think so. It seems some sort of "hardware reset": when the magnetometer has been confused by a magnetic field (a loudspeaker is usually enough) it requires physical movement in order to return to a "plain state".

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文