Port of Arduino TinyGPS library to mbed. Added extra methods to flag receipt/parsing of particular sentences.
Dependents: Atlas gps_com QuadCopter Quadcopter_mk2 ... more
Port of TinyGPS (from Arduino) to mbed.
Errata: it's been pointed out to me that this version calls an undeclared millis() function. To get this code working in your project, you'll want to set up a Timer object and then call timer.read_ms() ala:
example to replace millis() calls
Timer timer; ... timer.start(); timer.reset(); ... //x = millis(); x = timer.read_ms(); ...
Diff: TinyGPS.cpp
- Revision:
- 1:f522b8bdf987
- Parent:
- 0:8a347288f82c
diff -r 8a347288f82c -r f522b8bdf987 TinyGPS.cpp --- a/TinyGPS.cpp Wed Apr 27 19:21:28 2011 +0000 +++ b/TinyGPS.cpp Thu Apr 28 15:24:13 2011 +0000 @@ -168,7 +168,7 @@ byte checksum = 16 * from_hex(_term[0]) + from_hex(_term[1]); if (checksum == _parity) { - if (_gps_data_good || 1) // I want to use the thing in demo mode + if (_gps_data_good) { #ifndef _GPS_NO_STATS ++_good_sentences;