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.
Fork of GPS by
Revision 8:59acef1c795b, committed 2012-12-13
- Comitter:
- tylerjw
- Date:
- Thu Dec 13 05:52:43 2012 +0000
- Parent:
- 7:01a8379370e4
- Commit message:
- parser return to show line parsed
Changed in this revision
GPS_parser.cpp | Show annotated file Show diff for this revision Revisions of this file |
GPS_parser.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/GPS_parser.cpp Thu Dec 13 04:57:10 2012 +0000 +++ b/GPS_parser.cpp Thu Dec 13 05:52:43 2012 +0000 @@ -265,6 +265,7 @@ hdop = atof(field[8]); msl_altitude = atof(field[9]); msl_units = *(field[10]); + return GGA; } if(strcmp(field[0],"$GPRMC") == 0) { /* Retrieve the data from the remaining fields */ @@ -276,7 +277,8 @@ speed_k = atof(field[7]); course_d = atof(field[8]); date = atol(field[9]); + return RMC; } } - return field_count; + return NOT_PARSED; } \ No newline at end of file
--- a/GPS_parser.h Thu Dec 13 04:57:10 2012 +0000 +++ b/GPS_parser.h Thu Dec 13 05:52:43 2012 +0000 @@ -41,7 +41,6 @@ float get_msl_altitude(); float get_course_d(); float get_speed_k(); - float get_speed_km(); int get_satellites(); float get_altitude_ft();