Basis for uBlox-7 driver derived from GPS_CanSat

Dependents:   Crunchtrack_GPS_GSM Battlehack_tracker_1_NO

Fork of GPS_CanSat by JST 2011

GPS.h

Committer:
JST2011
Date:
2012-07-01
Revision:
0:94c22ada3c5a

File content as of revision 0:94c22ada3c5a:

#include "mbed.h"
#ifndef MBED_GPS_H
#define MBED_GPS_H
class GPS {
public:
    GPS(PinName tx, PinName rx);
    char* getGGA();
    float longitude();
    float latitude();
    float time();
    int ns();
    int ew();
    int lock();
private:
    void sample();
    void getline();
    Serial _gps;
    char msg[128],gga[128];
    float _longitude;
    float _latitude;
    float _time;
    char _ns, _ew;
    int _lock;
    int flag_gps_get;
    int flag_gps_getend;
    int count;
    int flag_gga;
};
#endif