Orientation estimation from a complementary filter
The complementaryFilter
System object™ fuses accelerometer, gyroscope, and magnetometer sensor data to estimate device
orientation and angular velocity.
To estimate orientation using this object:
Create the complementaryFilter
object and set its properties.
Call the object with arguments, as if it were a function.
To learn more about how System objects work, see What Are System Objects?.
returns a
FUSE
= complementaryFiltercomplementaryFilter
System object, FUSE
, for sensor fusion of accelerometer, gyroscope, and
magnetometer data to estimate device orientation and angular velocity.
returns a FUSE
= complementaryFilter('ReferenceFrame'
,RF
)complementaryFilter
System object that fuses accelerometer, gyroscope, and magnetometer data to estimate
device orientation relative to the reference frame RF
. Specify
RF
as 'NED'
(North-East-Down) or
'ENU'
(East-North-Up). The default value is
'NED'
.
sets each property FUSE
= complementaryFilter(___,Name,Value
)Name
to the specified Value
.
Unspecified properties have default values.
[
fuses accelerometer, gyroscope, and magnetometer data to compute orientation and angular
velocity. To use this syntax, set the orientation
,angularVelocity
] = FUSE(accelReadings
,gyroReadings
,magReadings
)HasMagnetometer
property as
true
.
[
fuses accelerometer and gyroscope data to compute orientation and angular velocity. To use
this syntax, set the orientation
,angularVelocity
] = FUSE(accelReadings
,gyroReadings
)HasMagnetometer
property as
false
.
To use an object function, specify the
System object as the first input argument. For
example, to release system resources of a System object named obj
, use
this syntax:
release(obj)
[1] Valenti, R., I. Dryanovski, and J. Xiao. "Keeping a good attitude: A quaternion-based orientation filter for IMUs and MARGs." Sensors. Vol. 15, Number 8, 2015, pp. 19302-19330.