How to remove the gravity from accelerometer

What happens when you run the code posted in #8, with the gyro properly calibrated?