Added Soft Iron Calibration

Dependencies:   PinDetect mbed

Fork of LSM9DS1_Library_cal by jim hamblen

Revision:
3:f5be1e31a464
Parent:
2:36abf8e18ade
--- a/LSM9DS1.h	Wed Feb 03 18:45:40 2016 +0000
+++ b/LSM9DS1.h	Sun Apr 30 19:47:58 2017 +0000
@@ -58,9 +58,9 @@
     int16_t ax, ay, az; // x, y, and z axis readings of the accelerometer
     int16_t mx, my, mz; // x, y, and z axis readings of the magnetometer
     int16_t temperature; // Chip temperature
-    float gBias[3], aBias[3], mBias[3];
-    int16_t gBiasRaw[3], aBiasRaw[3], mBiasRaw[3];
-    
+    float gBias[3], aBias[3], mBias[3], mScale[3];
+    int16_t gBiasRaw[3], aBiasRaw[3], mBiasRaw[3], mScaleRaw[3];
+    bool magCalibrated;
     // LSM9DS1 -- LSM9DS1 class constructor
     // The constructor will set up a handful of private variables, and set the
     // communication mode as well.