Gyroscope

@CarProtocol
@RequiresCarApi(value = 3)
class Gyroscope


Information about car specific gyroscopes available from the car hardware.

Summary

Public constructors

Gyroscope(rotations: CarValue<(Mutable)List<Float!>!>)

Creates an Gyroscope with the given raw data.

Public functions

Boolean
equals(other: Any?)
CarValue<(Mutable)List<Float!>!>

Returns the raw gyroscope data from the car sensor.

Int
String

Public constructors

Gyroscope

Added in 1.1.0
Gyroscope(rotations: CarValue<(Mutable)List<Float!>!>)

Creates an Gyroscope with the given raw data.

Throws
java.lang.NullPointerException

if rotations is null

Public functions

equals

Added in 1.4.0-rc02
fun equals(other: Any?): Boolean

getRotations

Added in 1.1.0
fun getRotations(): CarValue<(Mutable)List<Float!>!>

Returns the raw gyroscope data from the car sensor.

Individual values can be Float.Nan if not reported. The array values consist of:

  • [0]: X component of rotation, in rad/s
  • [1]: Y component of rotation, in rad/s
  • [2]: Z component of rotation, in rad/s

hashCode

Added in 1.4.0-rc02
fun hashCode(): Int

toString

Added in 1.4.0-rc02
fun toString(): String