
The only data you get from the accelerometer is how many g's are on each of the three (x, y, and z) axes.
so if the phone is standing upright, y = 1, x = 0, z = 0
if upsidedown, y=1, x=0, z=0
if face up on its back, z=1, x=0, y=0
facedown, z=1, x=0, y=o
on the left side, x=1, y=0, z=0
on the right side, x=1, y=0, z=0
of course the phone will rarely be in exactly these positions, plus there's always noise, so it's actually just very close to these values.
and when the phone is tilted, the values will be between 1 and 1, depending on the tilt.
now you go figure out how the hell to determine movement with that, cuz i haven't been able to yet! i can do orientation, but movement and gestures are eluding me.


