GPS library
Diff: GPS.cpp
- Revision:
- 9:a6214cf7f73b
- Parent:
- 8:720966cb4824
diff -r 720966cb4824 -r a6214cf7f73b GPS.cpp --- a/GPS.cpp Thu Mar 17 19:26:14 2016 +0000 +++ b/GPS.cpp Tue Apr 21 22:52:08 2020 +0000 @@ -35,6 +35,12 @@ } +bool GPS::connected() { + + return _gps.readable(); + + } + int GPS::sample() { //float time, hori_dilute, alt,geoid; @@ -45,7 +51,7 @@ // Check if it is a GPGGA msg (matches both locked and non-locked msg) //pc1.printf(msg); //pc1.printf("\n"); - wait(5); + //wait(5); //pc1.printf("display msg\r\n"); //pc1.printf(msg); //pc1.printf("\n"); @@ -141,7 +147,7 @@ for (n = 5; n < 456; n++) { msg[n] = _gps.getc(); - pc1.printf("%c", msg[n]); + //pc1.printf("%c", msg[n]); if(msg[n] == '\r') { msg[n] = '0'; return;