Built from datasheet for 9-DOF sensor stick from SparkFun.
Dependents: 9Dof_unit_testing sparkfun6dof Seeed_Grove_Digital_Compass_Example CompassTest ... more
Revision 3:14d274e0f9de, committed 2012-11-06
- Comitter:
- tylerjw
- Date:
- Tue Nov 06 17:25:45 2012 +0000
- Parent:
- 2:8eb755577f83
- Child:
- 4:bc4e1201e092
- Commit message:
- getXYZ changed to int16_t output
Changed in this revision
HMC5883L.cpp | Show annotated file Show diff for this revision Revisions of this file |
HMC5883L.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/HMC5883L.cpp Thu Nov 01 18:43:52 2012 +0000 +++ b/HMC5883L.cpp Tue Nov 06 17:25:45 2012 +0000 @@ -117,7 +117,7 @@ return cmd[1]; } -void HMC5883L::getXYZ(int output[3]) +void HMC5883L::getXYZ(int16_t output[3]) { char cmd[2]; char data[6];
--- a/HMC5883L.h Thu Nov 01 18:43:52 2012 +0000 +++ b/HMC5883L.h Tue Nov 06 17:25:45 2012 +0000 @@ -196,7 +196,7 @@ * * @param output buffer that is atleast 3 in length */ - void getXYZ(int raw[3]); + void getXYZ(int16_t raw[3]); /** * Function for retrieving the contents of status register