GPS library
Diff: GPS.cpp
- Revision:
- 6:0a167594f765
- Parent:
- 5:42f6779a9584
- Child:
- 7:120983998da2
--- a/GPS.cpp Wed Mar 16 05:09:48 2016 +0000 +++ b/GPS.cpp Wed Mar 16 19:13:44 2016 +0000 @@ -36,9 +36,9 @@ } int GPS::sample() { - float time, hori_dilute, alt,geoid; - char ns, ew, gu, hu; - int lock, num_sat; + //float time, hori_dilute, alt,geoid; + char gu, hu; + int lock; while(1) { getline(); @@ -53,8 +53,8 @@ if(!lock) { longitude = 0.0; latitude = 0.0; - ns = 'N'; - ew = 'E'; + ns = 'Z'; + ew = 'Z'; alt = 0.0; return 0; } else {