Hi guys, I am new to java and am trying to learn... as a mechanical
engineer i am stoked on tweaking with the accelerometer and other neat
aspects to the G1/ Android.

I want to make an application which, at the push of a button, record
your "position" and then you move it a foot hit the button again and
it will tell you approximately how far you moved.

First is this possible?

A little more detail is here:

When the button is pushed, the software would start calculations on
the accelerometer, I dont know how it works, but I would assume theres
a counter in the software, and everytime the accelerometer sent me
info I would multiply it by the amount of time since the last data and
we would get a distance in X, Y and Z.  At the final position, you
push the button and it takes the final x, y z and subtracts the
original to get the change in position.  If you want only 1 value
output you just sqrt( x^2 + y^2 + z^2) to get the distance vector.


I appreciate the help and suggestions.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to