Geomagnetic Attitude Estimator2
Estimates a leveled absolute attitude using accelerometer (or gravity) and magnetometer sensors. Gyroscope is not used in this estimator. Roll and pitch Euler angles are leveled using accelerometer or gravity sensors. Yaw angle is obtained from magnetometer once the leveling is estimated.
Parameters
Device location.
Earth's magnetic model. Null to use default model when useWorldMagneticModel is true. If useWorldMagneticModel is false, this is ignored.
Timestamp when World Magnetic Model will be evaluated to obtain current magnetic declination. Only taken into account if useWorldMagneticModel is true.
true so that world magnetic model is taken into account to adjust attitude yaw angle by current magnetic declination based on current World Magnetic Model, location and timestamp, false to ignore declination.
true to use accurate leveling, false to use a normal one.
Constructors
Types
Interface to notify when sensor (either accelerometer, gravity or magnetometer) accuracy changes.
Interface to notify when a new attitude measurement is available.
Interface to notify when a buffer gets completely filled. When buffers get filled, internal collectors will continue collection at the expense of loosing old data. Consumers of this listener should device what to do at this point (which might require stopping this estimator)..
Properties
an averaging filter for accelerometer samples to obtain sensed gravity component of specific force. (Only used if useAccelerometer is true).
One of the supported accelerometer sensor types. (Only used if useAccelerometer is true).
listener to notify changes in accuracy.
Indicates whether gravity norm must be adjusted to either Earth standard norm, or norm at provided location. If no location is provided, this should only be enabled when device is close to sea level.
listener to notify when a new attitude measurement is available.
listener to notify that some buffer has been filled. This usually happens when consumer of measurements cannot keep up with the rate at which measurements are generated.
true to estimate coordinate transformation, false otherwise. If not needed, it can be disabled to improve performance and decrease cpu load.
true to estimate euler angles, false otherwise. If not needed, it can be disabled to improve performance and decrease cpu load.
One of the supported magnetometer sensor types.
Delay of sensors between samples.
indicates whether start offsets will be computed when first measurement is received or not. True indicates that offset is computed, false assumes that offset is null.
Gets or sets timestamp when World Magnetic Model will be evaluated to obtain current magnetic declination. Only taken into account if useWorldMagneticModel is true.
true to use accelerometer sensor, false to use system gravity sensor for leveling purposes.
Indicates whether accurate leveling must be used or not.
Indicates whether world magnetic model is taken into account to adjust attitude yaw angle by current magnetic declination based on current World Magnetic Model, location and timestamp.
Earth's magnetic model. If null, the default model is used if useWorldMagneticModel is true. If useWorldMagneticModel is false, this is ignored.