library for using LSM303DM chip
Diff: LSM303.h
- Revision:
- 5:9786e0a13a3a
- Parent:
- 3:b2cc1d06e2f5
- Child:
- 6:22556393747b
--- a/LSM303.h Mon Nov 11 08:46:17 2013 +0000 +++ b/LSM303.h Tue Aug 12 11:43:45 2014 +0000 @@ -97,6 +97,7 @@ #define LSM303_WHO_AM_I_M 0x0F // DLM only #define PI 3.14159265 +//#define CALIBRATING //uncomment when calibrating class LSM303 {// I am LSM303DLM @@ -106,6 +107,8 @@ } Plane; Plane a; // accelerometer readings + Plane a_max; + Plane a_min; Plane m; // magnetometer readings Plane m_max; // maximum magnetometer values, used for calibration Plane m_min; // minimum magnetometer values, used for calibration