Basis for uBlox-7 driver derived from GPS_CanSat
Dependents: Crunchtrack_GPS_GSM Battlehack_tracker_1_NO
Fork of GPS_CanSat by
Diff: GPS.h
- Revision:
- 0:94c22ada3c5a
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/GPS.h Sun Jul 01 15:14:45 2012 +0000 @@ -0,0 +1,29 @@ +#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 \ No newline at end of file