Tilt compensating a HMC5883 compass with a MMA7455 Accelerometer

What does that code do for what you are asking?