Work on mag calibration try
Merge pull request #53 from Kenny9999/master

some work on mag cal, processing speed or threading problem!