nmea gps library - without any serial

Dependents:   HARP2 HARP3 20180621_FT813

Fork of GPS_parser by Tyler Weaver

NMEA GPS Serial Output parser.

Routine taken from NMEA Software Standard (NMEA 0183) http://www.winsystems.com/software/nmea.pdf

Only handles GGA and RMC Messages

Revision:
8:59acef1c795b
Parent:
7:01a8379370e4
--- 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