narumi tatsuya
/
motor_sample
ルンパッパ
getGPS.h@1:1dab888e1f3c, 2020-12-16 (annotated)
- Committer:
- naruu
- Date:
- Wed Dec 16 07:18:54 2020 +0000
- Revision:
- 1:1dab888e1f3c
runpappa;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
naruu | 1:1dab888e1f3c | 1 | #ifndef GPS_H |
naruu | 1:1dab888e1f3c | 2 | #define GPS_H |
naruu | 1:1dab888e1f3c | 3 | |
naruu | 1:1dab888e1f3c | 4 | #define GPSBAUD 9600 //ボーレート |
naruu | 1:1dab888e1f3c | 5 | |
naruu | 1:1dab888e1f3c | 6 | class GPS { |
naruu | 1:1dab888e1f3c | 7 | public: |
naruu | 1:1dab888e1f3c | 8 | GPS(PinName gpstx,PinName gpsrx); |
naruu | 1:1dab888e1f3c | 9 | |
naruu | 1:1dab888e1f3c | 10 | bool getgps(); |
naruu | 1:1dab888e1f3c | 11 | |
naruu | 1:1dab888e1f3c | 12 | double longitude; |
naruu | 1:1dab888e1f3c | 13 | double latitude; |
naruu | 1:1dab888e1f3c | 14 | |
naruu | 1:1dab888e1f3c | 15 | private: |
naruu | 1:1dab888e1f3c | 16 | Serial _gps; |
naruu | 1:1dab888e1f3c | 17 | }; |
naruu | 1:1dab888e1f3c | 18 | |
naruu | 1:1dab888e1f3c | 19 | #endif //GPS_H |
naruu | 1:1dab888e1f3c | 20 |