Dependents: Lab3_Surveillance 6adcSerial
GPS.h@1:b4de63a99f18, 2011-02-01 (annotated)
- Committer:
- keerthanasp
- Date:
- Tue Feb 01 15:46:29 2011 +0000
- Revision:
- 1:b4de63a99f18
- Parent:
- 0:14fd31ae13bb
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
keerthanasp | 0:14fd31ae13bb | 1 | #include "mbed.h" |
keerthanasp | 0:14fd31ae13bb | 2 | #ifndef MBED_GPS_H |
keerthanasp | 0:14fd31ae13bb | 3 | #define MBED_GPS_H |
keerthanasp | 0:14fd31ae13bb | 4 | class GPS { |
keerthanasp | 0:14fd31ae13bb | 5 | public: |
keerthanasp | 0:14fd31ae13bb | 6 | GPS(PinName tx, PinName rx); |
keerthanasp | 0:14fd31ae13bb | 7 | int sample(); |
keerthanasp | 0:14fd31ae13bb | 8 | float longitude; |
keerthanasp | 0:14fd31ae13bb | 9 | float latitude; |
keerthanasp | 0:14fd31ae13bb | 10 | private: |
keerthanasp | 0:14fd31ae13bb | 11 | float trunc ( float v); |
keerthanasp | 0:14fd31ae13bb | 12 | void getline(); |
keerthanasp | 1:b4de63a99f18 | 13 | Serial _gps; |
keerthanasp | 0:14fd31ae13bb | 14 | char msg[256]; |
keerthanasp | 0:14fd31ae13bb | 15 | }; |
keerthanasp | 0:14fd31ae13bb | 16 | #endif |