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

Files at this revision

API Documentation at this revision

Comitter:
tylerjw
Date:
Wed Dec 12 17:53:50 2012 +0000
Parent:
5:94daced1e61a
Child:
7:01a8379370e4
Commit message:
get_lock, get_date, get_time

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	Wed Dec 12 17:32:31 2012 +0000
+++ b/GPS_parser.cpp	Wed Dec 12 17:53:50 2012 +0000
@@ -86,6 +86,7 @@
 }
 
 // GET FUNCTIONS /////////////////////////////////////////////////////////////////
+
 float GPS_Parser::get_msl_altitude()
 {
     if (!lock)
--- a/GPS_parser.h	Wed Dec 12 17:32:31 2012 +0000
+++ b/GPS_parser.h	Wed Dec 12 17:53:50 2012 +0000
@@ -23,6 +23,9 @@
      * @return 1 if there was a lock when the sample was taken (and therefore .longitude and .latitude are valid), else 0
      */
     int sample(char *);
+    int get_lock() { return lock; }
+    int get_date() { return date; }
+    float get_time() { return utc_time; }
     float get_nmea_longitude();
     float get_nmea_latitude();
     float get_dec_longitude();