MagneticLight - Modified version based on ST Components

Dependencies:   PololuLedStrip X_NUCLEO_IKS01A1 mbed

Revision:
3:8cbf1e2122d4
Parent:
1:c54fc6087d0d
--- a/main.cpp	Tue Feb 07 14:16:00 2017 +0000
+++ b/main.cpp	Tue Feb 07 14:37:17 2017 +0000
@@ -206,9 +206,9 @@
             
             // update float ariables
             // axis adjustment to fit the previous setup, (visual aligment).
-            Mag_raw[0]=axesRaw[1];
+            Mag_raw[0]=-axesRaw[1];
             Mag_raw[1]=axesRaw[0];
-            Mag_raw[2]=axesRaw[2];
+            Mag_raw[2]=-axesRaw[2];
 
             // bias samples and scale
             Mag[0]=Mag_raw[0]-Mag_Bias[0];