nmea gps library - without any serial

Fork of GPS by Tyler Weaver

Embed: (wiki syntax)

« Back to documentation index

GPS_Parser Class Reference

GPS_Parser Class Reference

A GPS_parser interface for reading from a Globalsat EM-406 GPS Module. More...

#include <GPS_parser.h>

Public Member Functions

int parse (char *)
 Parse the incoming GPS data, returning whether there is a lock.

Detailed Description

A GPS_parser interface for reading from a Globalsat EM-406 GPS Module.

Definition at line 16 of file GPS_parser.h.


Member Function Documentation

int parse ( char *  string )

Parse the incoming GPS data, returning whether there is a lock.

Parameters:
linethe nmea string to parse, uses tokenizer vs sscanf
Returns:
1 if there was a lock when the sample was taken (and therefore .longitude and .latitude are valid), else 0

Definition at line 235 of file GPS_parser.cpp.