Skip to content

Gyroscope Sensor

Non-Visible component
Category Requires Version
Sensors API 21, Android 5.0 Lollipop 1

Overview

Non-visible component that can measure angular velocity in three dimensions in units of degrees per second.

In order to function, the component must have its Enabled property set to True, and the device must have a gyroscope sensor.

Events

Gyroscope Changed

Indicates that the gyroscope sensor data has changed. The timestamp parameter is the time in nanoseconds at which the event occurred.

Params
x Angular Velocity Number
y Angular Velocity Number
z Angular Velocity Number
timestamp Number

Properties

Available

Boolean ➖ Read - Blocks

Indicates whether a gyroscope sensor is available.

Enabled

Boolean Default: True ➖ Read Write - Designer Blocks

Enabled property getter method.

X Angular Velocity

Number ➖ Read - Blocks

The angular velocity around the X axis, in degrees per second.

Y Angular Velocity

Number ➖ Read - Blocks

The angular velocity around the Y axis, in degrees per second.

Z Angular Velocity

Number ➖ Read - Blocks

The angular velocity around the Z axis, in degrees per second.


Last update: November 9, 2022