A builder for DeviceOrientation.
|
Builder(float[] attitude, float headingDegrees, float
headingErrorDegrees, long elapsedRealtimeNs)
Constructs a new builder with required fields values.
|
|
|
Builder(DeviceOrientation
src)
Constructs a new builder with values copied from the given
DeviceOrientation.
|
| DeviceOrientation |
build()
Builds a new
DeviceOrientation.
|
| DeviceOrientation.Builder |
clearConservativeHeadingErrorDegrees()
Resets the estimated conservative heading error (in degrees) in the reported
heading of the device.
|
| DeviceOrientation.Builder |
setAttitude(float[] attitude)
Sets the attitude of the device.
|
| DeviceOrientation.Builder |
setConservativeHeadingErrorDegrees(float
conservativeHeadingErrorDegrees)
Sets the conservative heading error (in degrees) in the reported heading (in
the range [0, 180]).
|
| DeviceOrientation.Builder |
setElapsedRealtimeNs(long elapsedRealtimeNs)
Sets the time (in nanoseconds) when this device orientation is estimated, in
elapsed real-time since system boot.
|
| DeviceOrientation.Builder |
setHeadingDegrees(float headingDegrees)
Sets the estimated heading of the device in degrees between [0, 360).
|
| DeviceOrientation.Builder |
setHeadingErrorDegrees(float headingErrorDegrees)
Sets the estimated error in the reported heading of the device in degrees (in
the range [0, 180]).
|
Constructs a new builder with required fields values.
Constructs a new builder with values copied from the given DeviceOrientation.
Builds a new DeviceOrientation.
Resets the estimated conservative heading error (in degrees) in the reported heading of the device.
Sets the attitude of the device. For more details see
DeviceOrientation.getAttitude()
| attitude | float array of length 4 and corresponding to a quaternion in the order (x, y, z, w). |
|---|
| IllegalArgumentException | if attitude doesn't contain 4 items or contains a
NaN. |
|---|
Sets the conservative heading error (in degrees) in the reported heading (in the range [0, 180]).
| IllegalArgumentException | if conservativeHeadingErrorDegrees is out of the allowed
range |
|---|
Sets the time (in nanoseconds) when this device orientation is estimated, in elapsed real-time since system boot.
| IllegalArgumentException | if elapsedRealtimeNs is less than zero |
|---|
Sets the estimated heading of the device in degrees between [0, 360). For further
explanation see
DeviceOrientation.getHeadingDegrees()
| IllegalArgumentException | if headingDegrees is out of the allowed range |
|---|
Sets the estimated error in the reported heading of the device in degrees (in the
range [0, 180]). For further explanation see
DeviceOrientation.getHeadingErrorDegrees().
| IllegalArgumentException | if headingErrorDegrees is out of the allowed range |
|---|