iPhone 加速度计究竟测量什么? [英] What exactly does the iPhone accelerometer measure?

查看:33
本文介绍了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 参考指南中,感谢 to本斯奈德:

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天全站免登陆