added magnetometer calibration computation scripts.

Please exclude these changes.