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