Modified getOffset for calibrating Thermal Drift coefficients.
Fork of ITG3200 by
Modified to make getOffset() function easier to use.
Diff: ITG3200.cpp
- Revision:
- 13:e886466d7d67
- Parent:
- 12:d624e9c6dae7
- Child:
- 14:e4bf80188ba7
--- a/ITG3200.cpp Tue Nov 06 17:31:49 2012 +0000 +++ b/ITG3200.cpp Tue Nov 06 17:35:14 2012 +0000 @@ -259,7 +259,7 @@ } -void ITG3200::getRawXYZ(int readings[3]) +void ITG3200::getRawXYZ(int16_t readings[3]) { char tx = GYRO_XOUT_H_REG; @@ -323,7 +323,7 @@ Timer t; t.start(); while(t.read() < time) { - int gyro[3]; + int16_t gyro[3]; getRawXYZ(gyro); for(int i = 0; i < 3; i++) sum[i] += gyro[i];