Home > @magiclane/maps-sdk > Attitude

Attitude class

Device orientation attitude data in 3D space.

Describes the device's orientation expressed as Euler angles (roll, pitch, yaw) along with optional noise variance measurements.

Sensor Data Source

Signature:

export declare class Attitude extends GemAutoreleaseObject implements SenseData 

Extends: GemAutoreleaseObject

Implements: SenseData

Remarks

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the Attitude class.

Properties

Property

Modifiers

Type

Description

acquisitionTime

readonly

Date

Acquisition time

hasPitchNoise

readonly

boolean

Whether pitch noise data is available.

hasRollNoise

readonly

boolean

Whether roll noise data is available.

hasYawNoise

readonly

boolean

Whether yaw noise data is available.

pitch

readonly

number

The device pitch angle in degrees.

pitchNoise

readonly

number

The variance (noise) of the pitch measurement in degrees squared.

roll

readonly

number

The device roll angle in degrees.

rollNoise

readonly

number

The variance (noise) of the roll measurement in degrees squared.

type

readonly

DataType

Get data type

yaw

readonly

number

The device yaw angle in degrees.

yawNoise

readonly

number

The variance (noise) of the yaw measurement in degrees squared.

Methods

Method

Modifiers

Description

toJson()

Serialize to JSON