Version 1.0

Dependencies:   Beacon GPS MODSERIAL PowerControl mbed

main.cpp

Committer:
Deurklink
Date:
2014-07-04
Revision:
0:6eaff444a2a9

File content as of revision 0:6eaff444a2a9:

#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;
       }       
    }
}