Seeed
/
Seeed_Grove_Digital_Gyro
Example for ITG3200 gyro
Fork of ITG3200_HelloWorld by
Diff: main.cpp
- Revision:
- 1:6a040ee9e40b
- Parent:
- 0:4d5987f27ca4
- Child:
- 2:e2676f02a6b1
--- 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()); }