FTE-denshi / Mbed 2 deprecated FTE-06

Dependencies:   mbed FATFileSystem

Fork of FTE-06 by Tetsushi Amano

Files at this revision

API Documentation at this revision

Comitter:
mizuki_akaike
Date:
Tue Aug 22 13:34:33 2017 +0000
Parent:
50:0dbbd39a54bb
Child:
52:3da3fa088452
Commit message:
gps?NMEA??????????????

Changed in this revision

GPS/GPS.cpp Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/GPS/GPS.cpp	Tue Aug 22 12:47:09 2017 +0000
+++ b/GPS/GPS.cpp	Tue Aug 22 13:34:33 2017 +0000
@@ -74,6 +74,12 @@
             _openLog.write(bfr);
         }
 #endif
+
+        FILE *fp== fopen("/sd/mydir/gps_data.txt", "a");
+        if(fp!=NULL){
+        fprintf(fp,"%s\n",msg);
+        fclose(fp);
+        }
         // Check if it is a GPGGA msg (matches both locked and non-locked msg)
         if (sscanf(msg, "GPGGA,%f,%f,%c,%f,%c,%d,%d,%f,%f,%c", &utc_time, &nmea_latitude, &ns, &nmea_longitude, &ew, &lock, &satelites, &hdop, &msl_altitude, &msl_units) >= 1) {
             line_parsed = GGA;
--- a/main.cpp	Tue Aug 22 12:47:09 2017 +0000
+++ b/main.cpp	Tue Aug 22 13:34:33 2017 +0000
@@ -191,6 +191,8 @@
         if(sGPS.sample()) {
             latitude=sGPS.get_dec_latitude();
             longitude=sGPS.get_dec_longitude();
+            
+            
         } else {
             latitude=0;
             longitude=0;