Dear friends,
I am implementing Kalman Filter on an Android device to get rid of noise generated due to double integration of accelerations from accelerometer. The aim of my project is to control the position of a model car so that it follows a specific trajectory. Kalman Filter predicts the position from some reference model to estimate the position in a recursive way. I can also take measuremets e.g from another sensor lets say, gyroscope, instead of car position from the physical model which could also be regarded as sensor fusion. The scenerio for first case could be as follows.
First step is to create the phycial model of the car. well as I am using an RC car. The input is the speed command to the wheels and output is the acceleration from the sensors. Which are the same as meaurements in the Kalman filter. I am not sure if this modelling approach is right? Does any one have experience in this area? The equations which I have created so far are as follows:
x(k) = x(k-1) + dt* derivative_of(x(k-1)) + velocity_of_car@(k)
derivative_of(x(k)) = derivative_of(x(k-1)) + dt/2* velocity_of_car@(k)
Where derivative_of(xt(k)) and xt(k) are the only two states of the car under considerations. Please first tell me if these equations are correct. and then if my approach towards Kalman Filter implementation is correct.
Regards,
Zahid Raza