iPhone加速度计到底测量的是什么? [英] What exactly does the iPhone accelerometer measure?

查看:342
本文介绍了iPhone加速度计到底测量的是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

UIAcceleration类的苹果文档说,


当设备背面水平放置时表面,每个加速度事件大约有以下值:

x:0

y:0

z:-1

"When a device is laying still with its back on a horizontal surface, each acceleration event has approximately the following values:
x: 0
y: 0
z: -1
"

现在,我很困惑!当你清楚地说设备正在静止时,加速度如何非零?

Now, I am confused! How can the acceleration be non-zero, when you clearly say the "device is laying still"?

根据回答判断,我认为这应该被称为力计或重力计而不是加速度计!

Judging by the responses, I think this should be called something like 'forceometer' or 'gravitometer' and not accelerometer!

推荐答案

我找到了答案[在CoreMotion参考指南中,感谢 bensnider

I found the answer [in the CoreMotion Reference guide, thanks to bensnider:


加速度计测量两个加速度矢量的总和:重力和用户加速度。用户加速是用户赋予设备的加速度。

The accelerometer measures the sum of two acceleration vectors: gravity and user acceleration. User acceleration is the acceleration that the user imparts to the device.

这篇关于iPhone加速度计到底测量的是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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