iPhone/iPad gyroscope

守給你的承諾、 提交于 2019-12-31 06:19:50

问题


I never really understand the applications of the gyroscope on the iPhone/iPad, does it serve the similar function as the accelerometer but like an improvement to the accelerometer? What is the practical use of it?


回答1:


"An accelerometer is a direct measurement of orientation, while a gyro is a measurement of the time rate of change of orientation." (1)
By combing the output of the two sensors, called sensor fusion, one can determine the orientation of the device precisely and fast. If you only use accelerometer with a low-pass filter, you still get a reasonable estimate for the orientation but it will lag.

Here is an excellent live demo of both (Google Tech Talk), starting at 21:50.




回答2:


Gyroscope measures orientation, where accelerometer measures movement. Both have useful applications (gyroscope: Which direction am I driving towards? Accelerometer: Did I just shake my device?)




回答3:


The accelerometer tells you the difference in the force being experienced by the device and the force it would experience if it were in free fall. So if the device is static, the accelerometer tells you which way up is. When it's being shaken around, you get a summation of up plus the direction of the shake. Hence the accelerometer can detect some rotation, but not around the gravity vector and only if the device is otherwise static.

The gyroscope tells you the velocity at which the device is being rotated. So you can integrate values coming from it to keep track of orientation. That works across all axes and irrespective of device movement.



来源:https://stackoverflow.com/questions/5541660/iphone-ipad-gyroscope

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!