Well, if your just spinning the device on end, I would consider it's "movement speed" to be Zero. Your interested in angular velocity, which is not linear velocity. So the fact that 'velocity = distance/time' doesn't matter for this scenario. Instead of a linear measurement like miles per hour (mph), you'll want to determine revolutions per minute (rpm).
So the real challenge is how do you take the information provided by the device, and determine rpm. I haven't played around with it but I would suspect you get accelerations on more than one axis due to rotational motion. Additionally, I would be surprised if you are able to obtain any useful information from the existing sensor. I haven't researched the hardware in the android devices, but I would suspect they are "Linear Accelerometers". The device would need to be equipped with an "Angular Accelerometer". However, if you are interested in calculating linear movement you'll need to do a little research on Numerical Analysis. You should find ways to perform calculus through mathematical techniques that are appropriate for situations that utilize the collection of actual data. FYI - If you look under OS/Sensors on the API Demos there are some spinny things and graphs to play with. J On Thu, Apr 8, 2010 at 7:41 PM, BobG <[email protected]> wrote: > Acceleration * time gives velocity. Accel * delta time gives delta > velocity. You accumulate the deltas like this: velocity += > deltavelocity. If you mult velocity * deltat you get delta position. > Accumulate those to keep track of position. Thats how Inertial > Navigation Systems flew ICBMs a couple 1000 miles back in the 60s. > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > > To unsubscribe, reply using "remove me" as the subject. > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

