default eCompass example, but with desired serial communication
Dependencies: MAG3110 MMA8451Q SLCD eCompass_Lib mbed-rtos mbed
Fork of KL46_eCompass by
Revision 6:f68052364f92, committed 2016-04-05
- Comitter:
- Kosinkadink
- Date:
- Tue Apr 05 23:17:29 2016 +0000
- Parent:
- 5:25d98baa1ded
- Child:
- 7:d932835d9613
- Commit message:
- pretty much the same
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Apr 05 05:47:58 2016 +0000 +++ b/main.cpp Tue Apr 05 23:17:29 2016 +0000 @@ -81,7 +81,7 @@ if(l++ >= 50) { // take car of business once a second seconds++; calibrate->signal_set(0x2); - debugp->signal_set(0x01); + //debugp->signal_set(0x01); l = 0; green = !green; } @@ -114,8 +114,8 @@ void lcd_thread(void const *argument) { while (true) { // Signal flags that are reported as event are automatically cleared. - Thread::signal_wait(0x4); - slcd.printf("%04d", axis6.yaw); // print the heading (NED compass) to the LCD + Thread::signal_wait(0x04); + slcd.printf("%04d", axis6.yaw); } }