Kalman filter and quality of internal state variables

早过忘川 提交于 2019-12-05 07:59:54
Ali

Won't work.

No matter what you do, the velocity will become extemely inaccurate in seconds. Although the answer at the above link is about position, the same holds for velocity. As for the Kalman filter see also here.

You should either try the GPS to get velocity or (if applicable) just use orientation of the phone in your app and give up on getting the velocity.

I don't know much about Kalman filters except what I just read on Wikipedia, but I would say you are trying to apply Kalman filters in an inappropriate way.

The stdvars should represent only the noise, but I doubt that is what you computed. But more fundamentally, I think you lack some input data: Kalman filters are used when you have many different inputs, e.g. accelerometer + GPS.

It seems impossible --with Kalman or anything else-- that you could read in noisy accelerometer input and somehow get a smooth accurate trajectory. You could always do some kind of time-averaging of the accelerometer data, which would give you a smooth trajectory, but the trajectory would be different from the actual one. (If you want to try time-averaging: for example, a_smooth{i} = 0.6 a{i} + 0.3 a{i-1} + 0.1 a{i-2}.)

And there is the bigger problem that the precision of the accelerometer is very poor and you probably can't do much with it, especially keeping track of position, as answered by @Ali.

EDIT: I found some references on the web that have similar equations to yours, however those were for a Kalman filter used on a model with constant acceleration, which is obviously not what you want.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!