I would like to implement a Kalman filter to estimate the velocity and position of an object. I have an accelerometer, therefore the acceleration is known. The approach is same as:
Kalman filter for position and velocity: introducing speed estimates
however, I don't understand well, how I should define the measurement model:
$\hat{X}(k+1) = \hat{X}(k) + K * ( y(k) - H*\hat{X}(k) );$
K is the kalman gain and is calculated in every step, but What is my "y" here, i know it is called the observations, but how i have my observations ? should i calculate the:
$v(k+1) = a(k)*t + v(k);$
$x(k+1) = 0.5*a(k)*t^2 + v(k)*t +x(k);$
Thank you!