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:
- 4:f8e953201251
- Parent:
- 2:bd1621102cad
- Child:
- 5:7cdf299ea7a4
diff -r bd1621102cad -r f8e953201251 com.h --- a/com.h Sun Apr 20 02:27:39 2014 +0000 +++ b/com.h Tue Apr 22 05:43:33 2014 +0000 @@ -31,11 +31,13 @@ void write( short, short ); // Write to the port. short * read(); // Read from the queue. void setAPImode(bool mode); + void ackCheck(); private: Serial xbeeTx; // tx - DIN, rx - DOUT Serial xbeeRx; // tx - DIN, rx - DOUT queue *rxBuffer; // queue of commands ready to be read. + queue *txBuffer; PwmIn rssi; bool api_mode;