LEcture GPS Xbee sous interruption

Files at this revision

API Documentation at this revision

Comitter:
pascalreygner
Date:
Thu Aug 09 09:30:22 2018 +0000
Parent:
2:824735b4c3a3
Commit message:
BUG

Changed in this revision

main.cpp Show diff for this revision Revisions of this file
mbed.bld Show diff for this revision Revisions of this file
--- a/main.cpp	Tue Aug 07 09:06:22 2018 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,25 +0,0 @@
-#include "mbed.h"
-#include <stdio.h>
-#include "gps-ea-acc023.h"
-
-using namespace gpsxbee_MT3339;
-static GpsXbee gpsxbee;
-Serial pc2(USBTX, USBRX);           // Port USB vers PC pour debug
-DigitalOut led4_GPSON(LED4);    //clignote à chaque trame GPS (1 = allume)
-
-// affichage données GPS quand trame reçue complète au format NMEARMC ou NMEAGGA
-main()
-{
-    pc2.baud(115200); // liaison vers PC DEBUG
-    gpsxbee.GpsXbeeInit();
-    while(1) {
-        if (gpsxbee.gpsTrameRMC == gpsxbee.TRAME_OK && gpsxbee.gpsTrameGGA == gpsxbee.TRAME_OK) {
-            gpsxbee.gpsTrameRMC = gpsxbee.TRAME_WAIT;
-            printf(" RMC = %s\r\n",gpsxbee.gpsDataRMC);
-
-            gpsxbee.gpsTrameGGA = gpsxbee.TRAME_WAIT;
-            printf(" GGA = %s\r\n",gpsxbee.gpsDataGGA);
-            led4_GPSON = !led4_GPSON;
-        }
-    }
-}
\ No newline at end of file
--- a/mbed.bld	Tue Aug 07 09:06:22 2018 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/6473597d706e
\ No newline at end of file