Components
keyboard_arrow_up
Add
Gyroscope
-
Description
Gyroscope
The Gyro Sensor is a non visible component that can measure angular velocity in three dimensions in units of degrees per second. To do this is based of the gravity of the earth to indicate the orientation. To work, the component must have its property 'Enabled' set to 'True', and the device must have a gyro sensor.
-
Events
- Gyroscope Changed
- Event that is executed when the data of the Gyroscope have changed. The parameter 'time Stamp' is the time in nanosecond at which the event occurred.
-
Properties
- Available (boolean)
- Allows to get if the Gyroscope sensor is available in the device. Getting 'True' if so and 'False' otherwise.
- Enabled (boolean)
- Allows you to set or get whether the component is enabled or not in our application. If enabled, then the events of the sensor will be generated and the properties 'angular Velocity in X', 'angular Velocity at Y ' and 'angular Velocity at Z' have values significant.
- X Angular Velocity (number)
- This property provides us the angular velocity around the X-axis, in degrees per second.
- Y Angular Velocity (number)
- This property provides us the angular velocity around the Y-axis, in degrees per second.
- Z Angular Velocity (number)
- This property provides us the angular velocity around the Z-axis, in degrees per second.