devicemotion event demo

Unit of value is m/s^2(g = +9.8). The device orientation is not effect axes and values.

Axes of portrait device, x: right(-) to left(+), y: top(-) to bottom(+), z: front(-) to rear(+)

Acceleration (w/o Gravity)

Acceleration (w/ Gravity)

Acceleration (vertical/horizontal)

Walk counter: 0 steps
gist source