Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of ITG3200 by
Thermal Drift
ITG3200 has thermal drift on each axes. It can be a problem if you're going to integrate the outputs to obtain rotation.
The library can correct the drift in two ways: Single Point Correction and Calibration Curve. You can select the methods by specifying Correction enumeration as a parameter for getGyroXYZ(), getGyroXYZDegrees() or getGyroXYZRadians().
The calibration curve for my specific device is presented in the Excel sheet below.
/media/uploads/gltest26/itg3200cal.xls
As you can see, the correlation between drift and temperature looks pretty linear, at least in my specific device.
You can create calibration curves for your own device by calling calibrate(), getTemperature() and getOffset() in succession with various ambient temperature.