Fork

Fork of HMC5883L by Oskar Lopez de Gamboa

Files at this revision

API Documentation at this revision

Comitter:
Condo2k4
Date:
Tue Mar 08 13:13:00 2016 +0000
Parent:
5:c9ce1eeaf001
Commit message:
Initial import

Changed in this revision

HMC5883L.h Show annotated file Show diff for this revision Revisions of this file
diff -r c9ce1eeaf001 -r 511a8b8d2cf8 HMC5883L.h
--- a/HMC5883L.h	Tue Dec 10 10:58:28 2013 +0000
+++ b/HMC5883L.h	Tue Mar 08 13:13:00 2016 +0000
@@ -88,11 +88,12 @@
 // which is  the 'Error' of the magnetic field in your location.
 // Find yours here: http://www.magnetic-declination.com/
 // Mine is:  -1° 13' WEST which is -1.2167 Degrees, or (which we need) 
-// 0,021234839232597676519238237683278  radians, I will use 0.02123
+// 0,021234839232597676519238237683278  radians, so I would use 0.02123
 // If you cannot find your Declination, put 0, your compass will be slightly off.
 
-#define  DECLINATION_ANGLE -0.02123
-//#define  DECLINATION_ANGLE 0
+#ifndef DECLINATION_ANGLE
+#define DECLINATION_ANGLE 0
+#endif
 
 
 /**