Modified getOffset for calibrating Thermal Drift coefficients.

Dependents:   9Dof_unit_testing

Fork of ITG3200 by James Watanabe

Modified to make getOffset() function easier to use.

Files at this revision

API Documentation at this revision

Comitter:
tylerjw
Date:
Thu Nov 08 20:48:30 2012 +0000
Parent:
14:e4bf80188ba7
Commit message:
with calibration curve

Changed in this revision

ITG3200.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r e4bf80188ba7 -r e61fe4b74daa ITG3200.cpp
--- a/ITG3200.cpp	Wed Nov 07 00:11:47 2012 +0000
+++ b/ITG3200.cpp	Thu Nov 08 20:48:30 2012 +0000
@@ -88,12 +88,11 @@
     tx[1] = 0x00;
     i2c_.write((ITG3200_I2C_ADDRESS << 1) & 0xFE, tx, 2);
     wait_ms(5);
-    /*
+    
     const float offset[3] = {99.5, -45.0, -29.7}; // taken from itg3200.xls curve fit test
     const float slope[3] = {-1.05, 0.95, 0.47};
 
     setCalibrationCurve(offset, slope);
-    */
 }
 
 void ITG3200::setCalibrationCurve(const float offset[3], const float slope[3])