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: mbed FATFileSystem
Fork of FTE-06 by
Revision 51:af23f1fc4a63, committed 2017-08-22
- 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;
