What exactly does the iPhone accelerometer measure?

前端 未结 6 836
星月不相逢
星月不相逢 2021-02-14 04:37

The apple documentation for UIAcceleration class says,

\"When a device is laying still with its back on a horizontal surface, each acceleration event has

6条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-14 05:18

    When you're sitting, gravity is pulling you down to your chair. If it weren't for the chair or ground for that matter, you'd be falling down with acceleration of about 9.8m/s^2. In order for the chair to prevent you from falling down, it has to act with a force in the opposite direction with at least the same value.

    The accelometer shows the value of the pulling force and it's a three-dimensional vector. In this case it's directed straight down. And the value given is expressed in G, units of gravity acceleration multiplied by that value.

提交回复
热议问题