3 ms·
Furthermore, a lot of recent hardware (starting with the iPhone 4 in Apple-land, not sure about others) includes gyroscopes in order to handle this even better.
by mikeash 14y ago
Furthermore, a lot of recent hardware (starting with the iPhone 4 in Apple-land, not sure about others) includes gyroscopes in order to handle this even better. It doesn't matter how good your accelerometers are, they're going to be subject to noise from the outside when it comes to detecting rotation changes e.g. the motion of the user's hands.
- 0x0 14y agoYup, the sample code even has a simple filter for this: http://developer.apple.com/library/ios/documentation/EventHandling/Conceptual/EventHandlingiPhoneOS/MotionEvents/MotionEvents.html#//apple_ref/doc/uid/TP40009541-CH4-SW11 http://developer.apple.com/library/ios/documentation/EventHa... The accelerometer + gyroscope combination is refered to as "sensor fusion algorithms" in that document, btw