State prediction equation for Kalman filter

AI Thread Summary
The discussion centers on the challenges of implementing a Kalman filter, particularly in deriving the state prediction equation from a given transfer function. The user has identified the process and measurement error covariances but struggles with the state transition matrix A, control matrix B, and observation matrix H. They successfully determined the A, B, C, and D matrices using MATLAB, but are unclear on how to incorporate the transfer function into their simulation. The conversation emphasizes the importance of understanding the covariance matrix of noise and suggests that the user should focus on calculating state and covariance predictions before updating values for subsequent iterations. Overall, clarity on the role of the transfer function in the context of filtering barometer data is a key concern.
evol_w10lv
Messages
70
Reaction score
0
I have to filter data with Kalman filter. I know process error covariance Q and measurment error covariance R. Problem is with state transition matrix A, control matrix B and observation matrix H.

First of all, data goes through this transfer function:
##W(s) = \frac{4s}{4s+1}##
I can't get it how to write state prediction equation from transfer function. Maybe to write state prediction equation for Kalman filter, I need to write state space representation like HERE?
 
You need to first find out what your A,B,C, and D matricies are.
It can help to generate a block diagram of your system with the proposed measurements (ie kalman filter)
 
  • Like
Likes evol_w10lv
If you are working with kalman filters, you should be able to translate a transfer function to matrix form no problem. If not, you need to take a very good look at linear algebra
 
  • Like
Likes evol_w10lv
Sorry for late response.
I don't work in the engineering sector. I prefer programming. I am familiar with Kalman filter in programming level. Here my problem is in basics of engineering.
I found out ##A, B, C, D## with MATLAB built in function:
##x(k+1)=-0.25*x(k) + 1*u(k)##
##y(k)=1*x(k)##
##A= -0.25, B = 1, C = 1, D = 0##
Let's say I want to simulate filtering data from barometer with Kalman filter, then calculate change of height, derive it to get vertical speed. It's just imitation.. no real device.
My idea was to generate random pressure data from barometer, then calculate height using formula and use Kalman filter with parameters:
$$ A = \begin{bmatrix}
1 & dt \\
0 & 1 \
\end{bmatrix}
H=
\begin{bmatrix}
1 \\
0
\end{bmatrix}
$$
But there isn't transfer function inculded. It's not clear what are functions of TF in this case. Is it shows how barometer data changes in each iteration? So no need to use random pressure data (but use data from TF if I give initial value before) or ...?
 
evol_w10lv said:
But there isn't transfer function inculded. It's not clear what are functions of TF in this case. Is it shows how barometer data changes in each iteration? So no need to use random pressure data (but use data from TF if I give initial value before) or ...?
To be honest I have no idea what you are asking?
You already listed the transfer function W(s) above. Why are you asking me what it is?
You should have some idea of the covarience matrix of your noise. If you don't, you need to work on your model before you can make a measurement filter

You worked out what the A and B matrixes are. You should now be able to calculate your state and covarience predictions.

Then you can calculate your observations, then update the values to use in the next iteration.
 
Hi all, i have some questions about the tesla turbine: is a tesla turbine more efficient than a steam engine or a stirling engine ? about the discs of the tesla turbine warping because of the high speed rotations; does running the engine on a lower speed solve that or will the discs warp anyway after time ? what is the difference in efficiency between the tesla turbine running at high speed and running it at a lower speed ( as fast as possible but low enough to not warp de discs) and: i...
Back
Top