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 Prosper Van

Revision:
13:2fb7b19dcd70
Parent:
12:bf4642578682
Child:
14:d2acb373d81c
--- a/com.h	Sat Apr 26 02:38:08 2014 +0000
+++ b/com.h	Thu May 22 05:58:40 2014 +0000
@@ -19,6 +19,9 @@
 #include "queue.h"
 #include "PwmIn.h"
 
+//#define DEBUG_COM
+
+
 const int BAUDRATE      = 38400;
 const int BUFFERSIZE    = 18;
 
@@ -34,8 +37,8 @@
         
     private:         
         void write( short, short ); // Write to the port.
-        Serial xbeeTx;                // tx - DIN, rx - DOUT
-        Serial xbeeRx;                // tx - DIN, rx - DOUT
+        RawSerial xbeeTx;                // tx - DIN, rx - DOUT
+        RawSerial xbeeRx;                // tx - DIN, rx - DOUT
         queue *txBuffer;
         PwmIn rssi;