This library (beta release) parses the GPS data coming from the TD1204. Beware, not all functionality has been fully tested.

Dependents:   QW-TEMP_GPS-NMEA

Embed: (wiki syntax)

« Back to documentation index

GPS Class Reference

GPS Class Reference

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

#include <GPS.h>

Public Member Functions

 GPS (PinName tx, PinName rx)
 Create the GPS interface, connected to the specified serial port.
int sample ()
 Sample the incoming GPS data, returning whether there is a lock.

Detailed Description

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

Definition at line 18 of file GPS.h.


Constructor & Destructor Documentation

GPS ( PinName  tx,
PinName  rx 
)

Create the GPS interface, connected to the specified serial port.

Definition at line 5 of file GPS.cpp.


Member Function Documentation

int sample (  )

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

Returns:
1 if there was a lock when the sample was taken (and therefore .longitude and .latitude are valid), else 0

Definition at line 91 of file GPS.cpp.