Check program for 9DOF stick from Sparkfun.com
Dependencies: mbed ITG3200 HMC5843 ADXL345
Revision 1:18f68a0b0793, committed 2011-10-07
- Comitter:
- Digixx
- Date:
- Fri Oct 07 21:42:29 2011 +0000
- Parent:
- 0:9410b3e6aea5
- Commit message:
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri Oct 07 21:31:36 2011 +0000
+++ b/main.cpp Fri Oct 07 21:42:29 2011 +0000
@@ -71,7 +71,7 @@
pc.printf(" A %+5i %+5i %+5i",(int16_t)readings[0],(int16_t)readings[1],(int16_t)readings[2]);
wait(0.05);
- pc.printf(" G %+5i %+5i %+5i",(int16_t)gyr.getGyroX(),(int16_t)gyr.getGyroY(),(int16_t)gyr.getGyroX());
+ pc.printf(" G %+5i %+5i %+5i",(int16_t)gyr.getGyroX(),(int16_t)gyr.getGyroY(),(int16_t)gyr.getGyroZ());
pc.printf("%c" ,13,10);
wait(0.05);
Uwe Gartmann