Selfmade Tilt compensated Compass Pitch, Roll, Yaw

Don't forget you're just getting a vector, not x-y-z rotation.