Skip to main content

Attitude

Attitude

Type: public class

A class that defines attitude (rotation between a solid and the ENU coordinates system) For instance, attitude of the device.

Attitude(float[] quaternion)

Type: public

Parameter NameTypeDescription
quaternionfloat[]A [w,x,y,z] quaternion in ENU coordinates system

getQuaternion()

Type: public

Returned Value: A [w,x,y,z] quaternion in ENU coordinates system

setQuaternion(float[] quaternion)

Type: public void

Parameter NameTypeDescription
quaternionfloat[]A [w,x,y,z] quaternion in ENU coordinates system

getTime()

Type: public [Long](https://developer.android.com/reference/java/lang/Long)

Returned Value: the attitude time

setTime(Long time)

Type: public void

Parameter NameTypeDescription
timeLongthe attitude time

getAccuracy()

Type: public [Float](https://developer.android.com/reference/java/lang/Float)

Returned Value: the attitude accuracy

setAccuracy(Float accuracy)

Type: public void

Parameter NameTypeDescription
accuracyFloatthe attitude accuracy