Reference   Language | Libraries | Comparison | Changes

CurieIMU

getDetectionThreshold()

Description

Returns the value of the detection threshold

Syntax

CurieIMU.getDetectionThreshold(int feature)

Parameter

feature: the requested feature. It can assume one of these values:

  • CURIE_IMU_FREEFALL
  • CURIE_IMU_SHOCK
  • CURIE_IMU_MOTION
  • CURIE_IMU_ZERO_MOTION
  • CURIE_IMU_TAP

Returns

The detection threshold of the chosen feature in mg. The range of the returned values is related to the Accelerometer range setting. See setDetectionThreshold for more details.

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.