Gyroscope
@CarProtocol
@RequiresCarApi(value = 3)
public final class Gyroscope
Information about car specific gyroscopes available from the car hardware.
Summary
Public constructors |
|---|
|
Creates an |
Public methods |
|
|---|---|
boolean |
|
@NonNull CarValue<List<Float>> |
Returns the raw gyroscope data from the car sensor. |
int |
hashCode() |
@NonNull String |
toString() |
Public constructors
Public methods
getRotations
Added in 1.1.0
public @NonNull CarValue<List<Float>> getRotations()
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