Accelerometer data: How to interpret?

前端 未结 4 1170
臣服心动
臣服心动 2021-01-30 18:36

I\'m experimenting with a 3 accelerometer breakout board. The X and Y axis are very easy to control, but the Z axis is a bit of a mystery. I\'m trying to find a way of interpret

4条回答
  •  耶瑟儿~
    2021-01-30 19:33

    I've wrote code that leverages the accelerometer. It measures the rotation of the device on each of its own 3 axis. Great for making games. The accelerometer measures angular acceleration instead of linear. Basically, you can use it to determine the orientation of a device in 3 dimensions. Think about the 3 different ways an object can spin and you'll realize what those x, y, and z numbers are.

提交回复
热议问题