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.
getGPS.h@0:d62302adbf27, 2020-09-09 (annotated)
- Committer:
- saeichi
- Date:
- Wed Sep 09 14:42:44 2020 +0000
- Revision:
- 0:d62302adbf27
double
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| saeichi | 0:d62302adbf27 | 1 | #ifndef GPS_H |
| saeichi | 0:d62302adbf27 | 2 | #define GPS_H |
| saeichi | 0:d62302adbf27 | 3 | |
| saeichi | 0:d62302adbf27 | 4 | #define GPSBAUD 9600 //ボーレート |
| saeichi | 0:d62302adbf27 | 5 | |
| saeichi | 0:d62302adbf27 | 6 | class GPS { |
| saeichi | 0:d62302adbf27 | 7 | public: |
| saeichi | 0:d62302adbf27 | 8 | GPS(PinName gpstx,PinName gpsrx); |
| saeichi | 0:d62302adbf27 | 9 | |
| saeichi | 0:d62302adbf27 | 10 | bool getgps(); |
| saeichi | 0:d62302adbf27 | 11 | |
| saeichi | 0:d62302adbf27 | 12 | double longitude; |
| saeichi | 0:d62302adbf27 | 13 | double latitude; |
| saeichi | 0:d62302adbf27 | 14 | |
| saeichi | 0:d62302adbf27 | 15 | private: |
| saeichi | 0:d62302adbf27 | 16 | Serial _gps; |
| saeichi | 0:d62302adbf27 | 17 | }; |
| saeichi | 0:d62302adbf27 | 18 | |
| saeichi | 0:d62302adbf27 | 19 | #endif //GPS_H |