Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
GPS.h@2:e3c59956d8ce, 2019-08-18 (annotated)
- Committer:
- takepiyo
- Date:
- Sun Aug 18 05:06:58 2019 +0000
- Revision:
- 2:e3c59956d8ce
- Parent:
- 1:432f77f0d864
- Child:
- 3:dc8f7484b379
- Child:
- 5:c9ab983a9b3b
add define
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Nerosho | 0:3d25bc7ff80e | 1 | #include "mbed.h" |
| Nerosho | 0:3d25bc7ff80e | 2 | |
| takepiyo | 2:e3c59956d8ce | 3 | #ifndef GPS_CLASS_H |
| takepiyo | 2:e3c59956d8ce | 4 | #define GPS_CLASS_H |
| Nerosho | 1:432f77f0d864 | 5 | |
| Nerosho | 0:3d25bc7ff80e | 6 | |
| Nerosho | 0:3d25bc7ff80e | 7 | class GPS |
| Nerosho | 0:3d25bc7ff80e | 8 | { |
| Nerosho | 0:3d25bc7ff80e | 9 | |
| Nerosho | 0:3d25bc7ff80e | 10 | private: |
| Nerosho | 1:432f77f0d864 | 11 | Serial _gps; |
| Nerosho | 0:3d25bc7ff80e | 12 | PinName _tx; //tx pin name which connected to mbed |
| Nerosho | 0:3d25bc7ff80e | 13 | PinName _rx; //rx pin name which connected to mbed |
| Nerosho | 0:3d25bc7ff80e | 14 | //char GPSMessage[128]; |
| Nerosho | 1:432f77f0d864 | 15 | |
| Nerosho | 0:3d25bc7ff80e | 16 | |
| Nerosho | 0:3d25bc7ff80e | 17 | public: |
| Nerosho | 0:3d25bc7ff80e | 18 | GPS(PinName tx, PinName rx); |
| Nerosho | 0:3d25bc7ff80e | 19 | int getGPGGA(); |
| Nerosho | 1:432f77f0d864 | 20 | int GPSread; |
| Nerosho | 0:3d25bc7ff80e | 21 | char GPSMessage[128]; |
| Nerosho | 1:432f77f0d864 | 22 | //char errorMessage[128]; |
| Nerosho | 1:432f77f0d864 | 23 | char getGPS[128]; |
| Nerosho | 1:432f77f0d864 | 24 | //int i=0; |
| Nerosho | 0:3d25bc7ff80e | 25 | |
| Nerosho | 0:3d25bc7ff80e | 26 | }; |
| Nerosho | 0:3d25bc7ff80e | 27 | |
| Nerosho | 0:3d25bc7ff80e | 28 | #endif |