Example code for reading from a serial GPS unit & parsing an RMC GPS string to a struct.
Fork of mbed_blinky by
Diff: main.cpp
- Revision:
- 18:7ba014531492
- Parent:
- 17:15322357429b
- Child:
- 20:a728f1075fb1
--- a/main.cpp Thu Mar 09 21:44:58 2017 +0000 +++ b/main.cpp Thu Mar 09 21:57:29 2017 +0000 @@ -20,7 +20,7 @@ clearGpsSentence(); while(1) { gpsSentence[gpsSentenceIndex] = xgps.getc(); - pc.putc(gpsSentence[gpsSentenceIndex]); + //pc.putc(gpsSentence[gpsSentenceIndex]); gpsSentenceIndex++; if(gpsSentence[gpsSentenceIndex - 1] == '\n') { gpsSentence[gpsSentenceIndex] = '\0';