LSM303DLHC
Fork of LSM303DLHC by
Diff: LSM303DLHC.cpp
- Revision:
- 5:386547b2ee70
- Parent:
- 3:4d9465e7e10e
--- a/LSM303DLHC.cpp Thu Feb 21 00:20:17 2013 +0000 +++ b/LSM303DLHC.cpp Tue Mar 17 01:12:28 2015 +0000 @@ -117,8 +117,11 @@ //full scale magnetic readings are from -2048 to 2047 //gain is x,y =1100; z = 980 LSB/gauss *mx = float(short(mag[0] << 8 | mag[1]))/1100; + //*mx = float(short(mag[0] << 8 | mag[1]))/450; *mz = float(short(mag[2] << 8 | mag[3]))/980; + //*mz = float(short(mag[2] << 8 | mag[3]))/400; *my = float(short(mag[4] << 8 | mag[5]))/1100; + //*my = float(short(mag[4] << 8 | mag[5]))/450; return true; }