nmea gps library - without any serial
Fork of GPS by
Revision 6:4ed12067a314, committed 2012-12-12
- 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();