Gyroscope
@CarProtocol
@RequiresCarApi(value = 3)
class Gyroscope
Information about car specific gyroscopes available from the car hardware.
Summary
Public constructors |
|---|
|
Creates an |
Public functions |
|
|---|---|
Boolean |
|
CarValue<(Mutable)List<Float!>!> |
Returns the raw gyroscope data from the car sensor. |
Int |
hashCode() |
String |
toString() |
Public constructors
Public functions
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