You Are Here:

Accelerometer

The accelerometer outputs acceleration in the XYZ axis. The typical case where the device is flat relative to the surface of the Earth appears as -STANDARD_GRAVITY in the Z axis, and X and Y values as zero.

Sensor data

values[0] – Acceleration along the x-axis, in g

values[1] – Acceleration along the y-axis, in g

values[2] – Acceleration along the z-axis, in g