3 axes accel MMA7361 as Tilt meter

Hi, i have done the same project using simulink with low pass filters.
I have attached a PDF explaining pretty good the math and principles.
look at eq. 37,38

TiltAngle_Accelometer.pdf (579 KB)