insCF
Description
The insCF object implements a complementary filter. You can
use the filter to fuse data from an accelerometer, magnetometer, gyroscope, and GPS, modeled
by the insCFAccelerometer, insCFMagnetometer , insCFGyroscope, and insCFGPS objects
respectively, to estimate position, orientation, and velocity. The toolbox also provides the
insCFMotionOrientation and
insCFMotionPose objects as
motion models. For more information about using the inertial sensors and motion models with the insCF object, see the sensor1,...,sensorN and
motionModel input
arguments.
For ease of use, the sensor gain is the only tunable parameter of the
insCF filter. You can use the gainparts function to get
and set the gain value of a sensor. For information on filters with more tunable parameters,
see Choose Inertial Sensor Fusion Filters.
Creation
Syntax
Description
creates an
filter = insCFinsCF object that implements a complementary filter with default
property values. This filter can estimate orientation using accelerometer and gyroscope
sensor data.
specifies the inertial sensor models from which to fuse the data. The filter saves the
specified inertial sensor models and their corresponding sensor names in the
filter = insCF(sensor1,...,sensorN)Sensors and
SensorNames
properties, respectively. Each specified inertial sensor model must be unique.
specifies the motion model in addition to any combination of input arguments from previous
syntaxes. The filter saves the specified motion model in the filter = insCF(___,motionModel)MotionModel
property.
configures the filter using the specified filter = insCF(___,options)insCFOptions object
options.
Input Arguments
Output Arguments
Properties
Object Functions
stateparts | Get or set value of state part in insCF |
estimateStates | Estimate states using insCF |
gainparts | Get or set gain part value for sensor in insCF |
copy | Create copy of insCF |
reset | Reset state parts of insCF |
Examples
References
[1] Vasconcelos, José F., Bruno Cardeira, Carlos Silvestre, Paulo Oliveira, and Pedro Batista. “Discrete-Time Complementary Filters for Attitude and Position Estimation: Design, Analysis and Experimental Validation.” IEEE Transactions on Control Systems Technology 19, no. 1 (2011): 181–98. https://doi.org/10.1109/TCST.2010.2040619.
Extended Capabilities
Version History
Introduced in R2026a
See Also
Objects
insCFOptions|insCFGyroscope|insCFAccelerometer|insCFMagnetometer|insCFGPS|insCFMotionOrientation|insCFMotionPose|complementaryFilter
Functions
stateparts|estimateStates|gainparts|copy|reset|ecompass

