Reference   Language | Libraries | Comparison | Changes

CurieIMU

getAccelerometerOffset()

Description

Returns the value of accelerometer's offset for the selected axis

Syntax

CurieIMU.getAccelerometerOffset(int axis)

Parameters

axis: the axis of which we want to get the offset value. Can be one of these values:

  • X_AXIS
  • Y_AXIS
  • Z_AXIS

Return

The value of the offset for the selected axis. The value returned varies from -495.3 mg to + 495.3 mg in discrete steps of 3.9mg.

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.

Share