ITG-3200 triple axis, digital gyroscope example.

Dependencies:   mbed ITG3200

Files at this revision

API Documentation at this revision

Comitter:
aberk
Date:
Sat Nov 27 11:44:44 2010 +0000
Parent:
0:4d5987f27ca4
Commit message:
Now uses ITG3200 library as opposed to ITG3200_lib program.

Changed in this revision

ITG3200.lib Show annotated file Show diff for this revision Revisions of this file
ITG3200_lib.lib Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 4d5987f27ca4 -r 6a040ee9e40b ITG3200.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ITG3200.lib	Sat Nov 27 11:44:44 2010 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/aberk/code/ITG3200/#b098d99dd81e
diff -r 4d5987f27ca4 -r 6a040ee9e40b ITG3200_lib.lib
--- a/ITG3200_lib.lib	Tue Aug 03 13:10:51 2010 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-http://mbed.org/users/aberk/programs/ITG3200_lib/latest
\ No newline at end of file
diff -r 4d5987f27ca4 -r 6a040ee9e40b main.cpp
--- a/main.cpp	Tue Aug 03 13:10:51 2010 +0000
+++ b/main.cpp	Sat Nov 27 11:44:44 2010 +0000
@@ -8,13 +8,13 @@
     pc.printf("Now starting ITG-3200 test...\n");
     
     //Set highest bandwidth.
-    gyro.setLpBandwidth(LPFBW_256HZ);
+    gyro.setLpBandwidth(LPFBW_42HZ);
 
     while (1) {
 
         //Arbitrary wait for printf clarity.
         wait(0.1);
-        pc.printf("%f, %f, %f\n", gyro.getGyroX(),
+        pc.printf("%i, %i, %i\n", gyro.getGyroX(),
                   gyro.getGyroY(), gyro.getGyroZ());
 
     }