Turn off GPS when calibrated, and add additional logging.
Only add to history if bearing is not zero.
Switch to use sensor TYPE_GRAVITY for built-in filtering, and log compass heading on each step.
Collect new accelerometer and magnetometer readings for every compass heading calculation.