Reference   Language | Libraries | Comparison | Changes

CurieIMU

readMotionSensor()

Description

Reads the raw values of the motion sensor (accelerometer + gyro).

Syntax

CurieIMU.readMotionSensor(int ax, int ay, int az, int gx, int gy, int gz)

Parameters

ax: a variable in which the accelerometer's value along x will be stored.
ay: a variable in which the accelerometer's value along y will be stored.
az: a variable in which the accelerometer's value along z will be stored.
gx: a variable in which the gyro's value along x will be stored.
gy: a variable in which the gyro's value along y will be stored.
gz: a variable in which the gyro's value along z will be stored.

See also

Reference Home

Corrections, suggestions, and new documentation should be posted to the Forum.

The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.