HMC58X3 Library

Fork of HMC58X3 by Yifei Teng

Revision:
6:7fc240b92f3a
Parent:
5:ea869bfe993b
--- a/HMC58X3.cpp	Fri Jan 10 05:40:37 2014 +0000
+++ b/HMC58X3.cpp	Sun Feb 22 20:07:36 2015 +0000
@@ -301,8 +301,8 @@
     float fx,fy,fz;
     getValues(&fx,&fy,&fz);
     *x= (int16_t) (fx + 0.5);
-    *y= (int16_t) (fy + 0.5);
-    *z= (int16_t) (fz + 0.5);
+    *y= - (int16_t) (fy + 0.5);
+    *z= - (int16_t) (fz + 0.5);
 }