Hi again,
I read Tom's code and the pdf he based it on. Turns out that his code is not based on the Kalman filter but a "simpler" weighted average filter which is actually what I'm using. The pdf shows the code for the Kalman filter but it is again in C which doesn't make it very easy for me.....

What's that saying, it's the last 10% of the project that takes 90% of the time - the devil certanly IS in the details.

/Henrik Olsson.