2

Iphone加速度计提供用户加速度和重力读数?从苹果指南中可以清楚地看到用户加速的意思,比手机从用户那里得到的加速。那么重力读数是什么意思呢?无论如何,他们提到总加速度是两者的加法!我对重力阅读感到困惑,谁能解释一下这背后的理论?

先感谢您!

4

2 回答 2

4

The accelerometer measures the sum (user acceleration + gravity). Unfortunately it is of little use, in your application you typically need one or the other. So it is split into components (into user acceleration and gravity) with a sophisticated procedure called sensor fusion.

Gravity points downwards, corresponds to the gravitation. It tells you where downwards is. You can compute tilt angles from it, which may be handy in developing tilt games.

The user acceleration is handy when you are trying to figure out how the phone is shaken. It good for shaking games.

See also accelerometers uses- smartphone

于 2012-06-20T17:39:25.360 回答
2

重力是一种向下恒定的加速度。它沿其矢量与任何其他恒定加速度无法区分。旋转手机将改变重力对每个加速度轴的贡献,与地面的角度成正比。重力恒定,三轴组合矢量长度的任何变化都应归因于用户加速度。

于 2012-06-20T17:51:46.190 回答