Version 1.0

Dependencies:   Beacon GPS MODSERIAL PowerControl mbed

Revision:
0:6eaff444a2a9
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Jul 04 09:52:11 2014 +0000
@@ -0,0 +1,18 @@
+#include "Beacon.h"
+
+int main(void){
+    Beacon Bcn(p9,p10,p13,p14,25,300);
+    Bcn.init();
+    while(1){
+       // Parse GPS data until data is received on XBee serial port
+       
+       if (Bcn.xbeeReadable()){
+          Bcn.parseXbee();
+          Bcn.L3 = !Bcn.L3;
+       }
+       if (Bcn.gpsReadable()){
+           Bcn.parseGpsData();
+           Bcn.L2 = !Bcn.L2;
+       }       
+    }
+}
\ No newline at end of file