modelSRKF_inner

Discrete State Space block

Information

Parameters

TypeNameDefaultDescription
DiscreteStateSpacedssDiscreteStateSpace(A = [1], B = [1], C = [1], D = [1])Discrete linear system model
Modelica.Units.SI.TimesampleTime0.5Base sample time for discrete blocks
Real[size(dss.B, 1),size(dss.B, 2)]wBones(size(dss.B, 1), size(dss.B, 2))Weighting matrix of the input noise covariance matrix of the previous instant
Real[size(dss.B, 2),size(dss.B, 2)]Qidentity(size(dss.B, 2))Input or process noise covariance matrix of the previous instant
Real[size(dss.B, 2),size(dss.B, 2)]CqMatricesMSL.cholesky(Q, false)Input or process noise covariance matrix of the previous instant
Real[size(dss.C, 1),size(dss.C, 1)]Ridentity(size(dss.C, 1))Output or measurement noise covariance matrix of the previous instant
Real[size(dss.C, 1),size(dss.C, 1)]CrMatricesMSL.cholesky(R, false)Output or measurement noise covariance matrix of the previous instant
Real[size(dss.A, 1),size(dss.A, 1)]P010*identity(size(dss.A, 1))Initial state covariance matrix of the previous instant
Real[size(dss.A, 1)]x_initfill(0, size(dss.A, 1))

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealOutput[size(dss.A, 1)]x_estCurrent estmated state vector
Modelica.Blocks.Interfaces.RealInput[size(dss.C, 1)]ymeasured output
Modelica.Blocks.Interfaces.RealInput[size(dss.B, 2)]uCurrent input

Components

TypeNameDefaultDescription
Real[size(dss.A, 1),size(dss.A, 1)]SState covariance matrix of the previous instant
Real[size(dss.A, 1),size(dss.C, 1)]KKalman filter gain matrix
Real[size(dss.C, 1),size(dss.C, 1)]Cr_out
Real[size(dss.C, 1) + size(dss.A, 1),2*size(dss.C, 1) + size(dss.A, 1)]M
Real[size(dss.A, 1)]z