Kalman Absolute Attitude Processor4
Estimates absolute attitude using a Kalman filter. This is based on: https://github.com/liviobisogni/quaternion-kalman-filter And: Young Soo Suh. Orientation estimation using a quaternion-based indirect Kalman filter with adaptive estimation of external acceleration.
Constructors
Types
Interface to notify when a new attitude has been processed.
Indicates type of quaternion integrator step. Different types exist with different levels of accuracy and computation accuracy.
Properties
Estimated external acceleration applied on the device expressed in NED coordinates respect to device body.
Estimated device attitude expressed in ECEF coordinates respect to Earth.
Estimated external acceleration applied on the device expressed in ECEF coordinates respect to Earth.
Euler angles associated to estimated NED attitude. Array contains roll, pitch and yaw angles expressed in radians (rad) and following order indicated here. This is only available if computeCovariances and computeEulerAngles are true.
Error covariance of estimated Euler angles for NED attitude. This is only available if computeCovariances and computeEulerAnglesCovariance are true.
Gets expected gravity norm at current location. If no location is available, average gravity at sea level is returned instead.
Obtains magnetic field declination of local NED reference system expressed in radians if World Magnetic Model is used, otherwise zero is returned. Magnetic field declination indicates how much deviation the heading angle has between the magnetic north pole and the true geographic north pole.
Returns magnetic field dip angle of local NED reference system expressed in radians if World Magnetic Model is used, otherwise zero is returned. Magnetic field dip angle indicates how much the magnetic field points towards Earth's center. At magnetic equator dip angle is zero, at Norm magnetic pole is +90º, and at South magnetic pole is -90º. At the north hemisphere dip angle is positive (magnetic field points downwards), indicating the vertical deviation of magnetic field respect local Earth surface at a given position (latitude, longitude and height). At the south hemisphere dip angle is negative (magnetic field points upwards), indicating the vertical deviation of magnetic field respect local Earth surface at a given position (latitude, longitude and height).
Estimated device attitude expressed in leveled local NED coordinates respect to Earth.
Error covariance of estimated quaternion attitude expressed in NED coordinates. This is only available if computeCovariances is true.
Estimated external acceleration applied on the device expressed in leveled local NED coordinates respect to Earth.
Time interval between measurements expressed in seconds (s).
Indicates whether world magnetic model is taken into account magnetic field dip and declination angles, so that orientation pointing to the true north is estimated.
Earth's magnetic model. If null, the default model is used if useWorldMagneticModel is true. If useWorldMagneticModel is false, this is ignored.
Functions
Gets estimated accelerometer bias.
Gets estimated gyroscope bias.
Processes provided synced accelerometer, gyroscope and magnetometer measurement to obtain a relative leveled attitude.
Processes provided accelerometer, gyroscope and magnetometer measurements at provided timestamp to obtain a relative leveled attitude.