0

I have been doing a lot of research in the area of an iPhone's magnetometer, gyroscope and accelerometer, but can't seem to a good conclusion.

Things I have tried so far:

  1. Acceleration in one direction to detect a stop. (Always detected when person is holding phone, and seems to just move in that direction)
  2. Gyroscope angle changing directions regarding the way in which a person is holding the device. (Not consistent because trying to get shake to work with this as well)
  3. Bump API/Existing Code (Does not work)

Has anyone come across a solid solution for detecting a tap on the bottom of and iPhone, against an object? Preferably with sample code.

Jude Michael Murphy
  • 1,198
  • 2
  • 12
  • 23

1 Answers1

0

Perhaps this is what you are looking for? It's a set of custom wrappers around the hardware that is designed specifically for detecting "accidents", which sounds like what you're looking for.

Maury Markowitz
  • 9,082
  • 11
  • 46
  • 98