xbee communication for UWB quadcopter project Originally by Greg Abdo Forking to reduce impact of interrupt by moving packetbuilder out of the interrupt and letting be handled in the main loop
Fork of com by
Revision 22:0e8e22f161ff, committed 2014-11-02
- Comitter:
- oprospero
- Date:
- Sun Nov 02 19:18:11 2014 +0000
- Parent:
- 21:117e01fc0373
- Commit message:
- Clean up
Changed in this revision
com.cpp | Show annotated file Show diff for this revision Revisions of this file |
queueChar/queueChar.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 117e01fc0373 -r 0e8e22f161ff com.cpp --- a/com.cpp Thu Oct 23 04:46:10 2014 +0000 +++ b/com.cpp Sun Nov 02 19:18:11 2014 +0000 @@ -38,14 +38,12 @@ void com::callback() { - __disable_irq(); while(xbee.readable()) { char data = xbee.getc(); - xbee.putc(data); +// xbee.putc(data); rxBuffer.add(data); } - __enable_irq(); } bool com::isData()
diff -r 117e01fc0373 -r 0e8e22f161ff queueChar/queueChar.h --- a/queueChar/queueChar.h Thu Oct 23 04:46:10 2014 +0000 +++ b/queueChar/queueChar.h Sun Nov 02 19:18:11 2014 +0000 @@ -14,7 +14,7 @@ using namespace std; -const int MAXQUEUECHARLENGTH = 12; +const int MAXQUEUECHARLENGTH = 64; class queueChar {