public class

GyroscopeData

extends SensorData
java.lang.Object
   ↳ com.neomades.io.sensor.SensorData
     ↳ com.neomades.io.sensor.categories.GyroscopeData

Class Overview

This class holds the data of the gyroscope.

Gyroscope data are the rotation rate in radians / second around the device's local X, Y and Z axis. The coordinate system is the same as the one used for the acceleration sensor. Rotation is positive in the counter-clockwise direction. That is, an observer looking from some positive location on the x, y or z axis at a device positioned on the origin would report positive rotation if the device appeared to be rotating counter clockwise.

The precision can vary a lot, depending on performances of the device embedded sensor.

Summary

Public Methods
double[] getValues()
Gets angular speed around x, y and z axis - unit (radians/seconds).
double getX()
Gets angular speed x around axis - unit (radians/seconds).
double getY()
Gets angular speed around y axis - unit (radians/seconds).
double getZ()
Gets angular speed around z axis - unit (radians/seconds).
[Expand]
Inherited Methods
From class com.neomades.io.sensor.SensorData
From class java.lang.Object

Public Methods

public double[] getValues ()

Gets angular speed around x, y and z axis - unit (radians/seconds).

Returns
  • angular speed around the x, y and z axis in radians/seconds

public double getX ()

Gets angular speed x around axis - unit (radians/seconds).

Returns
  • angular speed around the x axis in radians/seconds

public double getY ()

Gets angular speed around y axis - unit (radians/seconds).

Returns
  • angular speed around the y axis in radians/seconds

public double getZ ()

Gets angular speed around z axis - unit (radians/seconds).

Returns
  • angular speed around the z axis in radians/seconds