correct

Correct states using direct state measurements

Description

correct(FUSE,idx,measurement,measurementCovariance) corrects the state and state estimation error covariance based on the measurement and measurement covariance. The measurement maps directly to the state specified by the indices idx.

Input Arguments

collapse all

Object of ahrs10filter.

State vector index of measurement to correct, specified as an N-element vector of increasing integers in the range [1,18].

The state values represent:

StateUnitsIndex
Orientation (quaternion parts)N/A1:4
Altitude (NED)m5
Vertical Velocity (NED)m/s6
Delta Angle Bias (XYZ)rad/s7:9
Delta Velocity Bias (XYZ)m/s10:12
Geomagnetic Field Vector (NED)μT13:15
Magnetometer Bias (XYZ)μT16:18

Data Types: single | double

Direct measurement of state, specified as a N-element vector. N is the number of elements of the index argument, idx.

Data Types: single | double

Covariance of measurement, specified as a scalar, N-element vector, or N-by-N matrix. N is the number of elements of the index argument, idx.

Data Types: single | double

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Introduced in R2019a