Modified getOffset for calibrating Thermal Drift coefficients.
Fork of ITG3200 by
Modified to make getOffset() function easier to use.
Diff: ITG3200.h
- Revision:
- 10:33a9ed8e8988
- Parent:
- 9:05396b551a9a
- Child:
- 11:9a354f34d8e3
--- a/ITG3200.h Tue Oct 02 18:04:13 2012 +0000 +++ b/ITG3200.h Tue Oct 30 17:19:00 2012 +0000 @@ -446,8 +446,11 @@ /** * Returns internal offset values for zero adjusting. Returned pointer is pointing an array of 3 elements. */ - const int *getOffset()const{ - return offset; + void getOffset(int offset_copy[3])const{ + if(offset_copy) { + for(int i = 0; i < 3; i++) + offset_copy[i] = offset[i]; + } } protected: