MAG3110 Virgo robot adaptation
Fork of MAG3110 by
Diff: MAG3110.cpp
- Revision:
- 8:203af65371e8
- Parent:
- 6:b2bb387caf3f
- Child:
- 9:f86b9453bb46
--- a/MAG3110.cpp Mon Aug 01 02:52:39 2016 +0000 +++ b/MAG3110.cpp Mon Aug 01 03:04:29 2016 +0000 @@ -69,11 +69,11 @@ _avgZ=(maxZ+minZ)/2; } -void MAG3110::get_uT(float *uT) +void MAG3110::get_uT(float *uT[3]) { char data_bytes[7]; char d[1]; - d[0]=MAG3110_DR_STATUS; + d[0]=MAG_DR_STATUS; _i2c.write(MAG_ADDR,d,1,true); _i2c.read(MAG_ADDR,data_bytes,7);// Read the 6 data bytes - LSB and MSB for X, Y and Z Axes.