Version 1.1

Dependencies:   Beacon GPS MODSERIAL PowerControl SDFileSystem mbed

Committer:
Deurklink
Date:
Tue Dec 16 13:02:52 2014 +0000
Revision:
0:acc3abfc6da4
Version 1.1

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Deurklink 0:acc3abfc6da4 1 #include "Beacon.h"
Deurklink 0:acc3abfc6da4 2
Deurklink 0:acc3abfc6da4 3 int main(void){
Deurklink 0:acc3abfc6da4 4 Beacon Bcn(p9,p10,p13,p14,25,300);
Deurklink 0:acc3abfc6da4 5 Bcn.L1 = Bcn.init();
Deurklink 0:acc3abfc6da4 6 while(1){
Deurklink 0:acc3abfc6da4 7 // Parse GPS data until data is received on XBee serial port
Deurklink 0:acc3abfc6da4 8
Deurklink 0:acc3abfc6da4 9 if (Bcn.xbeeReadable()){
Deurklink 0:acc3abfc6da4 10 Bcn.parseXbee();
Deurklink 0:acc3abfc6da4 11 Bcn.L3 = !Bcn.L3;
Deurklink 0:acc3abfc6da4 12 }
Deurklink 0:acc3abfc6da4 13 if (Bcn.gpsReadable()){
Deurklink 0:acc3abfc6da4 14 Bcn.parseGpsData();
Deurklink 0:acc3abfc6da4 15 Bcn.L2 = !Bcn.L2;
Deurklink 0:acc3abfc6da4 16 }
Deurklink 0:acc3abfc6da4 17 }
Deurklink 0:acc3abfc6da4 18 }