Geomagnetic Attitude Estimator
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.
Constructors
Constructor.
Properties
an averaging filter for accelerometer samples to obtain sensed gravity component of specific force. (Only used if useAccelerometer is true).
Listener to notify new accelerometer measurements. (Only used if useAccelerometer is true).
One of the supported accelerometer sensor types. (Only used if useAccelerometer is true).
listener to notify when a new attitude measurement is available.
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.
Listener to notify when a new gravity estimation is available.
Listener to notify new gravity measurements. (Only used if useAccelerometer is false).
listener to notify new magnetometer measurements.
One of the supported magnetometer sensor types.
Delay of sensors between samples.
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.