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
Diff: com.h
- Revision:
- 14:d2acb373d81c
- Parent:
- 13:2fb7b19dcd70
- Child:
- 15:3f742edaa359
--- a/com.h Thu May 22 05:58:40 2014 +0000 +++ b/com.h Sun May 25 22:54:45 2014 +0000 @@ -23,7 +23,7 @@ const int BAUDRATE = 38400; -const int BUFFERSIZE = 18; +const int BUFFERSIZE = 16; class com { @@ -32,7 +32,7 @@ bool isData(); // Is there data to be read? bool isSignalGood(); short * read(); // Read from the queue. - void ackCheck(); + void sendACK(); bool rdy2ack(); private: