## a() = GetAccelerometer() |

This function returns an array which contains accelerometer X, Y and Z axis. All values are in SI units (m/s^2) and measure the acceleration applied to the phone minus the force of gravity. Dim a(0) a() = GetAccelerometer() a(0) = Acceleration minus Gx on the x-axis. a(1) = Acceleration minus Gy on the y-axis. a(2) = Acceleration minus Gz on the z-axis. Examples: When the device lies flat on a table and is pushed on its left side toward the right, the x acceleration value is positive. When the device lies flat on a table, the acceleration value is +9.81, which correspond to the acceleration of the device (0 m/s^2) minus the force of gravity (-9.81 m/s^2). When the device lies flat on a table and is pushed toward the sky with an acceleration of A m/s^2, the acceleration value is equal to A+9.81 which correspond to the acceleration of the device (+A m/s^2) minus the force of gravity (-9.81 m/s^2). |