Measuring tilt with an MMA7260Q accelerometer

I implemented a Kalman filter to fix the problem of the unstable readings. This works very well. The accelerometer responds well to changed and the value is very stable.