insAccelerometer
Description
The insAccelerometer
object models accelerometer readings for sensor
fusion. Passing an insAccelerometer
object to an insEKF
object enables the
insEKF
object to fuse accelerometer data. For details on the accelerometer
model, see Algorithms.
Creation
Description
creates an
sensor
= insAccelerometerinsAccelerometer
object. Passing the created sensor
to an
insEKF
object enables the
insEKF
object to fuse accelerometer data. When fusing data with the
fuse
object function of
insEKF
, pass
sensor
as the second argument to identify the data as obtained from
an accelerometer.
Examples
Algorithms
The insAccelerometer
object models the accelerometer reading as acceleration
in the sensor frame. Depending on whether the insEKF
object estimates
linear acceleration in the state equations, the measurement equation takes one of two forms:
If the
insEKF
object does not estimate the acceleration state, the measurement equation is:where h(x) is the three-dimensional measurement output, gsensor is the gravitational acceleration expressed in the sensor frame, and Δ is the three-dimensional bias of the sensor, modeled as a constant vector in the sensor frame.
If the
insEKF
object estimates the acceleration state, the equation is:where asensor is the acceleration, excluding the gravity acceleration, expressed in the sensor frame.
Passing an insAccelerometer
object to an insEKF
filter object enables the filter object to additionally track the bias of the accelerometer.
Internally, the insEKF
object decides if the acceleration state is estimated
by calling its stateparts
object function.
Version History
Introduced in R2022a