GPS library.
getGPS.h@0:4c52e9f8484a, 2021-10-13 (annotated)
- Committer:
- odaa
- Date:
- Wed Oct 13 10:54:36 2021 +0000
- Revision:
- 0:4c52e9f8484a
2nd test
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
odaa | 0:4c52e9f8484a | 1 | #ifndef GPS_H |
odaa | 0:4c52e9f8484a | 2 | #define GPS_H |
odaa | 0:4c52e9f8484a | 3 | |
odaa | 0:4c52e9f8484a | 4 | #define GPSBAUD 9600 //ボーレート |
odaa | 0:4c52e9f8484a | 5 | |
odaa | 0:4c52e9f8484a | 6 | class GPS { |
odaa | 0:4c52e9f8484a | 7 | public: |
odaa | 0:4c52e9f8484a | 8 | GPS(PinName gpstx,PinName gpsrx); |
odaa | 0:4c52e9f8484a | 9 | |
odaa | 0:4c52e9f8484a | 10 | bool getgps(); |
odaa | 0:4c52e9f8484a | 11 | |
odaa | 0:4c52e9f8484a | 12 | double longitude; |
odaa | 0:4c52e9f8484a | 13 | double latitude; |
odaa | 0:4c52e9f8484a | 14 | |
odaa | 0:4c52e9f8484a | 15 | private: |
odaa | 0:4c52e9f8484a | 16 | Serial _gps; |
odaa | 0:4c52e9f8484a | 17 | }; |
odaa | 0:4c52e9f8484a | 18 | |
odaa | 0:4c52e9f8484a | 19 | #endif //GPS_H |