ark::gps::NmeaParser

Defined in header “ark/gps/nmea_parser.hh”.


This class consumes incoming NMEA strings, parses them, and then can emit some number of state information for downstream classes to process.

This parser maintains some state some information is scattered over multiple messages (particularlly time). Time information cannot be obtained until the parser has received a GPRMC message.

Methods

  • std::vector< GpsFix > add_bytes(const std::string & input)
    Adds new bytes to the NMEA parser. As sentences are completed, this will return some number of structures representing parsed data.