Android 中 Sensor.TYPE_GRAVITY 的含义

发布于 2024-12-29 01:56:11 字数 258 浏览 3 评论 0原文

我试图弄清楚重力传感器的输出在 Android 中意味着什么。

我理解的是 X、Y 和 Z 中应用的重力,我不理解的是与加速度计传感器的区别。

我知道重力是一个保险丝传感器,它也使用陀螺仪和其他传感器...但是在重力[0]传感器中获得例如 29.4 (9.8 * 3) 的值意味着在 X 轴上施加了 3G 的力?

那么它类似于使用 Acceleration = SQRT(X^2 + Y^2 + Z^2) 但更精确?

提前致谢!吉列尔莫.

I'm trying to figure out what the meaning of the output from gravity sensors means in Android.

I understand is the gravity applied in X, Y and Z, what I don't understand is the difference with accelerometer sensor.

I know gravity is a fuse sensor which uses gyroscope as well and others...but getting for example a value of 29.4 (9.8 * 3) in the gravity[0] sensor means that there is a force of 3G applied in the X axle?

So it would similar to use acceleration = SQRT(X^2 + Y^2 + Z^2) but more precise?

Thanks in advance! Guillermo.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文