Main Content

reset

Reset states for insEKF

Since R2022b

Description

reset(filter) resets the State and StateCovariance properties of the insEKF object filter to their default values.

example

Examples

collapse all

Create an insEKF filter object.

filter = insEKF
filter = 
  insEKF with properties:

                   State: [13×1 double]
         StateCovariance: [13×13 double]
    AdditiveProcessNoise: [13×13 double]
             MotionModel: [1×1 insMotionOrientation]
                 Sensors: {[1×1 insAccelerometer]  [1×1 insGyroscope]}
             SensorNames: {'Accelerometer'  'Gyroscope'}
          ReferenceFrame: 'NED'

Show the default angular velocity state using the stateparts object function.

stateparts(filter,"AngularVelocity")
ans = 1×3

     0     0     0

Specify the angular velocity state as [0.1 0.1 0.1] rad/s using the stateparts object function.

stateparts(filter,"AngularVelocity",[0.1 0.1 0.1])
stateparts(filter,"AngularVelocity")
ans = 1×3

    0.1000    0.1000    0.1000

Reset the filter and show the angular velocity state.

reset(filter)
stateparts(filter,"AngularVelocity")
ans = 1×3

     0     0     0

Input Arguments

collapse all

INS filter, specified as an insEKF object.

Version History

Introduced in R2022b

See Also