ESTE PROGRAMA TOMA UNA CADENA DE GPS NEMEA Y CREA LA CADENA QUE EN GOOGLE MAPS SE ABRE EL MAPA INDICANDO LA GEOLOCALIZACION lA LIBRERIA GPS, FUE MODIFICADA EN LA ESTRUCUTURA DE DATOS, PARA RECONOCER LA VARIABLE (LOCK)DEL GPS QUE INDICA SI LOS DATOS SON ACEPTABLES EL PROGRAMA SE PRUEBA CON EL GPS VIRTUAL DE PROTEUS Y SE INYECTAN LOS DATOS A UNA FRDMKL25Z ATRAVES DE UN DONGLE QUE SE VINCULA DE FORMA LOGICA AL COMPIM DEL PROTEUS

Dependents:   GoogleMapa

Fork of GPS_G by joshema 216

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.

Data Fields

float longitude
 The longitude (call sample() to set)
float latitude
 The latitude (call sample() to set)

Detailed Description

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

Definition at line 29 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 25 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 31 of file GPS.cpp.


Field Documentation

float latitude

The latitude (call sample() to set)

Definition at line 46 of file GPS.h.

float longitude

The longitude (call sample() to set)

Definition at line 43 of file GPS.h.