Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: Beacon GPS MODSERIAL PowerControl SDFileSystem mbed
main.cpp
00001 #include "Beacon.h" 00002 00003 int main(void){ 00004 Beacon Bcn(p9,p10,p13,p14,25,300); 00005 Bcn.L1 = Bcn.init(); 00006 while(1){ 00007 // Parse GPS data until data is received on XBee serial port 00008 00009 if (Bcn.xbeeReadable()){ 00010 Bcn.parseXbee(); 00011 Bcn.L3 = !Bcn.L3; 00012 } 00013 if (Bcn.gpsReadable()){ 00014 Bcn.parseGpsData(); 00015 Bcn.L2 = !Bcn.L2; 00016 } 00017 } 00018 }
Generated on Sat Aug 13 2022 21:07:31 by
1.7.2