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
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];
