Start gyroscope poller
  • 18 May 2022
  • 1 Minute to read
  • Dark
    Light
  • PDF

Start gyroscope poller

  • Dark
    Light
  • PDF

Start polling for gyroscope values. Latest reading is stored under sensorVars.gyroscope.latestValue, with sensorVars.gyroscope.values having a list of historical readings. You can define the maximum size of this list with the History size parameter.

The first output is triggered after the poller has started and the first value has been successfully fetched.

Note that the update interval value is treated by iOS and Android more as a recommendation than an exact value.

Input arguments

Label Key Type Required? Default Description
Update interval updateInterval Number(integer) Yes 100 Interval, in ms, of how often the poller should fetch a new value.
History size historySize Number(integer) Yes 20 Maximum number of historical values to store under sensorVars.gyroscope.values.

Output arguments

Number of outputs: 2

No output arguments.

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?