Implementing a Kalman Filter with multiple input sensors

11 visualizaciones (últimos 30 días)
Innigo
Innigo el 30 de Jun. de 2014
Respondida: suresh babu chandanapalli el 14 de Mayo de 2015
Hello everyone,
I am trying to develop a model in SIMULINK of a discrete Kalman Filter in which 2 different sensors are used as inputs for computing the ‘’innovation’’ (within the correction part of the algorithm).
Each of these two sensors has different sampling periods (0.05 seconds and 1 second respectively) and so, they update the innovation part of the algorithm at these specific time steps.
If there are no measurements available, the algorithm keeps running based on the previous predicted measurement computed by the prediction part of the Kalman filter.
To sum up, the problem I have is that for each different time step, I have a different measurement matrix H in which the number of columns is fixed and the number of rows varies from time step to time step.
Therefore, every 0.05 seconds I have a 2x7 matrix and every second a 5x7 matrix. I have tried to build a simple model containing a clock block, the aforementioned H matrix, a selector and a matlab script that outputs the index of the H matrix for each time step. The problem is that the index variable changes in size which simulink does not support and so, this model crashes.
May anyone help me to figure out how I can implement this?

Respuestas (2)

John Petersen
John Petersen el 23 de Jul. de 2014
You can keep the same size H matrix, just zero out the rows for which there is no measurement.

suresh babu chandanapalli
suresh babu chandanapalli el 14 de Mayo de 2015
sir,please send the mat lab code and simulink

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by