Get single gyroscope value
  • 18 May 2022
  • 1 Minute to read
  • Dark
    Light
  • PDF

Get single gyroscope value

  • Dark
    Light
  • PDF

Get a single reading from the device gyroscope. By default, updates sensorVars.gyroscope.latestValue and sensorVars.gyroscope.values.

Input arguments

Label Key Type Required? Default Description
Update sensor variables updateSensorVars Boolean Yes true If true, the new value will also be stored into sensorVars.gyroscope.latestValue and sensorVars.gyroscope.values.

Output arguments

Number of outputs: 2

Label Key Type Description
Gyroscope value value Object Value of the device gyroscope when the flow function was called.
  • X velocity
value.x Number Angular velocity of the device along its X axis, in radians per second (rad/s).
  • Y velocity
value.y Number Angular velocity of the device along its Y axis, in radians per second (rad/s).
  • Z velocity
value.z Number Angular velocity of the device along its Z axis, in radians per second (rad/s).
  • timestamp
value.timestamp String ISO 8601 timestamp of when the value was read.

Events

No events.

Errors

Label Code Description
Unknown error unknown Thrown when calling the native API resulted in an unknown error.

Was this article helpful?