Motion

u 1/motion x,y,z,magnetic_x,magnetic_y,magnetic_z

Motion contains an accelerometer and a magnetometer. It always returns 6 parameters:

  • Accelerometer X
  • Accelerometer Y
  • Accelerometer Z
  • Magnetometer X
  • Magnetometer Y
  • Magnetometer Z

A compass heading must be calculated manually from these values.

These values can read from -32768 to 32767.

A typical value for earths gravity, assuming a level sensor, is about 16,000 on the Z axis.

Examples

  • Motion sitting on a desk: u 1/motion 214,-601,16967,622,-457,-1566