Detect when an iphone has been bumped
问题 I want to be able to detect if an iphone has been bumped into something...would it be best to listen to the gyroscope / accelerometer and judge how fast its moved or if its moved and stopped suddenly. In fact how would I judge if the device has moved then stopped suddenly? This answer is great but in reverse iOS: Accurately determining energy of a bump from accelerometer output - it smooths out the movement, if anything I want to detect a sharp movement. Also are both the Gyroscope and