nmea gps library - without any serial

Fork of GPS by Tyler Weaver

Files at this revision

API Documentation at this revision

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
diff -r 01a8379370e4 -r 59acef1c795b GPS_parser.cpp
--- 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
diff -r 01a8379370e4 -r 59acef1c795b GPS_parser.h
--- 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();