Re: [android-developers] Accelerometer - direction of shake?

2010-04-08 Thread Frank Weiss
The accelerometer axis on the Droid are X, Y, Z and relative to the physical device. As for detecting shake, I was successful using a digital band pass filter. Here's another thread about shaking with my code (however I found that the 2 Hz center band is a bit too fast.) http://groups.google.com/g

[android-developers] Accelerometer - direction of shake?

2010-04-08 Thread Neilz
Hi all. I've been playing with the data given by the accelerometer, trying to work out how I can gauge a shake from front to back or side to side. This all seems straightforward enough. But I'd love to know the direction of the shake. So, if the user is shaking backwards and forwards, I want to kn