Basis for uBlox-7 driver derived from GPS_CanSat
Dependents: Crunchtrack_GPS_GSM Battlehack_tracker_1_NO
Fork of GPS_CanSat by
GPS.h
00001 #include "mbed.h" 00002 #ifndef MBED_GPS_H 00003 #define MBED_GPS_H 00004 class GPS { 00005 public: 00006 GPS(PinName tx, PinName rx); 00007 char* getGGA(); 00008 float longitude(); 00009 float latitude(); 00010 float time(); 00011 int ns(); 00012 int ew(); 00013 int lock(); 00014 private: 00015 void sample(); 00016 void getline(); 00017 Serial _gps; 00018 char msg[128],gga[128]; 00019 float _longitude; 00020 float _latitude; 00021 float _time; 00022 char _ns, _ew; 00023 int _lock; 00024 int flag_gps_get; 00025 int flag_gps_getend; 00026 int count; 00027 int flag_gga; 00028 }; 00029 #endif
Generated on Tue Jul 19 2022 07:58:12 by
![doxygen](doxygen.png)