Adafruit GPS Library
NMEA_data.cpp File Reference
#include "Adafruit_GPS.h"

Detailed Description

Code for tracking values that change with time so that history can be examined for recent trends in real time. This code will only generate the stubs for newDataValue() and data_init(), adding essentially nothing to the memory footprint unless NMEA_EXTENSIONS is defined.

This is code intended to complement the Adafruit GPS library and process data for many additional NMEA sentences, mostly of interest to sailors.

The parse function can be a direct substitute for the Adafruit_GPS function of the same name, updating the same variables within an NMEA object. A simple use case would involve:

Define an Adafruit_GPS object and use it to collect and parse sentences from a serial port. The GPS object will be updated and can be used exactly as usual.

Define an NMEA object and use it to parse the same sentences. It will succeed on more sentences than the GPS object and keep more detailed data records. It updates all the same variables as the GPS object, so you could skip the GPS parsing step.

Author
Rick Sellens.