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.
Dependencies: mbed WDT MODSERIAL BME280
NMEA Class Reference
An NMEA handler class. More...
#include <NMEA.h>
Public Member Functions | |
| NMEA () | |
| NMEA, default constructor. | |
| bool | ValidateData (string cstStr) |
| ValidateData, method taking a text string for NMEA validation. | |
| void | StoreString (string cstStr) |
| StoreString, method taking a text string as argument for further handling. | |
| void | ParseCurrentUTCFromGPRMC (void) |
| ParseCurrentUTCFromGPRMC, grabs UTC timestamp from current stored GPRMC string. | |
| void | ParseCurrentLatitudeFromGPRMC (void) |
| ParseCurrentLatitudeFromGPRMC, grabs current latitude from current GPRMC string. | |
| void | ParseCurrentLongitudeFromGPRMC (void) |
| ParseCurrentLongitudeFromGPRMC, grabs current longitude from current GPRMC string. | |
| bool | GGAFixVerification (void) |
| GGAFixVerification, returns gps fix indication. | |
| void | getXFromNMEAString (int desiredCommaCount, string stringToParse) |
| getXFromNMEAString, grabs desired data column from NMEA string, stores it for further manipulation in tmpStr | |
| string | getCurrentTime (void) |
| getCurrentTime, getter method returning current time from gps | |
Detailed Description
An NMEA handler class.
This class is used to handle NMEA strings, from eg. a GPS device.
Definition at line 11 of file NMEA.h.
Constructor & Destructor Documentation
Member Function Documentation
| string getCurrentTime | ( | void | ) |
| void getXFromNMEAString | ( | int | desiredCommaCount, |
| string | stringToParse | ||
| ) |
| bool GGAFixVerification | ( | void | ) |
| void ParseCurrentLatitudeFromGPRMC | ( | void | ) |
| void ParseCurrentLongitudeFromGPRMC | ( | void | ) |
| void ParseCurrentUTCFromGPRMC | ( | void | ) |
ParseCurrentUTCFromGPRMC, grabs UTC timestamp from current stored GPRMC string.
ParseCurrentUTCFromGPRMC, grabs UTC timestamp from current stored GPRMC string. Stores the UTC timestamp in local text string.
Depending on the format it will be saved as: HH:MM:SS.FFF In this case FFF are read values fom the string. eg. 14:10:22.007
or
HH:MM:SS.FFF In this case FFF are predetermined values set to 0. eg. 14:10:22.000
| void StoreString | ( | string | cstStr ) |
| bool ValidateData | ( | string | cstStr ) |
Generated on Wed Jul 13 2022 08:04:14 by
1.7.2