Reference   Language | Libraries | Comparison | Changes

CurieIMU

setGyroOffset()

Description

Sets the value of gyro offset

Syntax

CurieIMU.setGyroOffset(int axis, int offset)

Parameters

axis: the target axis. Can be one of these values:

  • X_AXIS
  • Y_AXIS,
  • Z_AXIS

offset: the value of the offset to be set. Valid values are from -31.25 °/s to +31.25 °/s in discrete steps of 0.061 °/s.

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.