Tyler Weaver
/
CMPS10_demo
CMPS10 tilt compensated compass
Revision 1:a4f567b7824d, committed 2012-10-30
- Comitter:
- tylerjw
- Date:
- Tue Oct 30 20:56:26 2012 +0000
- Parent:
- 0:2abb1ba9b2c5
- Commit message:
- Fixed calibrate function.
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Oct 30 20:52:12 2012 +0000 +++ b/main.cpp Tue Oct 30 20:56:26 2012 +0000 @@ -42,16 +42,16 @@ pc.getc(); data[1] = 0xF0; compass.write(addr,data,2,false); - pc.puts("Point the Device West.\n\r"); + pc.puts("Point the Device East (+90).\n\r"); pc.puts("Press enter to continue.\r\n"); pc.getc(); data[1] = 0xF5; compass.write(addr,data,2,false); - pc.puts("Point the Device South.\n\r"); + pc.puts("Point the Device South (+180).\n\r"); pc.puts("Press enter to continue.\r\n"); pc.getc(); compass.write(addr,data,2,false); - pc.puts("Point the Device East.\n\r"); + pc.puts("Point the Device West (+270).\n\r"); pc.puts("Press enter to continue.\r\n"); pc.getc(); compass.write(addr,data,2,false);