Skip to content

Commit 0a9d3c9

Browse files
Version 1.0.0: reorganize per new Arduino library standard, fix bug with course in FullExample.ino
1 parent 2c9ac0b commit 0a9d3c9

6 files changed

Lines changed: 37 additions & 23 deletions

File tree

examples/FullExample/FullExample.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ void loop()
4242
printFloat(gps.altitude.meters(), gps.altitude.isValid(), 7, 2);
4343
printFloat(gps.course.deg(), gps.course.isValid(), 7, 2);
4444
printFloat(gps.speed.kmph(), gps.speed.isValid(), 6, 2);
45-
printStr(gps.course.isValid() ? TinyGPSPlus::cardinal(gps.course.value()) : "*** ", 6);
45+
printStr(gps.course.isValid() ? TinyGPSPlus::cardinal(gps.course.deg()) : "*** ", 6);
4646

4747
unsigned long distanceKmToLondon =
4848
(unsigned long)TinyGPSPlus::distanceBetween(
@@ -156,4 +156,4 @@ static void printStr(const char *str, int len)
156156
for (int i=0; i<len; ++i)
157157
Serial.print(i<slen ? str[i] : ' ');
158158
smartDelay(0);
159-
}
159+
}

keywords.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@ passedChecksum KEYWORD2
4141
isValid KEYWORD2
4242
isUpdated KEYWORD2
4343
age KEYWORD2
44-
rawLatDegrees KEYWORD2
45-
rawLngDegrees KEYWORD2
46-
rawLatBillionths KEYWORD2
47-
rawLngBillionths KEYWORD2
4844
lat KEYWORD2
4945
lng KEYWORD2
5046
isUpdatedDate KEYWORD2
@@ -62,6 +58,8 @@ mph KEYWORD2
6258
mps KEYWORD2
6359
kmph KEYWORD2
6460
deg KEYWORD2
61+
billionths KEYWORD2
62+
negative KEYWORD2
6563
meters KEYWORD2
6664
miles KEYWORD2
6765
kilometers KEYWORD2

library.json

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
1-
{
2-
"name": "TinyGPSPlus",
3-
"keywords": "gps",
4-
"description": "A new, customizable Arduino NMEA parsing library",
5-
"repository":
6-
{
7-
"type": "git",
8-
"url": "https://github.com/mikalhart/TinyGPSPlus.git"
9-
},
10-
"frameworks": "arduino",
11-
"platforms": "atmelavr"
12-
}
1+
{
2+
"name": "TinyGPSPlus",
3+
"keywords": "gps,NMEA",
4+
"description": "A new, customizable Arduino NMEA parsing library",
5+
"repository":
6+
{
7+
"type": "git",
8+
"url": "https://github.com/mikalhart/TinyGPSPlus.git"
9+
},
10+
"authors":
11+
[
12+
{
13+
"name": "Mikal Hart",
14+
"email": "mikal@arduniana.org",
15+
"url": "http://arduiniana.org",
16+
"maintainer": true
17+
}
18+
],
19+
"frameworks": "arduino",
20+
"platforms": "*"
21+
}

library.properties

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name=TinyGPS++
2+
version=1.0.0
3+
author=Mikal Hart
4+
maintainer=Mikal Hart<mikal@arduniana.org>
5+
sentence=TinyGPS++ provides object-oriented parsing of GPS (NMEA) sentences
6+
paragraph=NMEA is the standard format GPS devices use to report location, time, altitude, etc. TinyGPS++ is a compact, resilient library that parses the most common NMEA 'sentences' used: GGA and RMC. It can also be customized to extract data from *any* compliant sentence.
7+
category=Communication
8+
url=https://github.com/mikalhart/TinyGPSPlus
9+
architectures=*

TinyGPS++.cpp renamed to src/TinyGPS++.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2828
#include <stdlib.h>
2929

3030
#define _GPRMCterm "GPRMC"
31-
#define _GNRMCterm "GNRMC"
3231
#define _GPGGAterm "GPGGA"
33-
#define _GNGGAterm "GNGGA"
3432

3533
TinyGPSPlus::TinyGPSPlus()
3634
: parity(0)
@@ -209,9 +207,9 @@ bool TinyGPSPlus::endOfTermHandler()
209207
// the first term determines the sentence type
210208
if (curTermNumber == 0)
211209
{
212-
if (!strcmp(term, _GPRMCterm) || !strcmp(term, _GNRMCterm))
210+
if (!strcmp(term, _GPRMCterm))
213211
curSentenceType = GPS_SENTENCE_GPRMC;
214-
else if (!strcmp(term, _GPGGAterm) || !strcmp(term, _GNGGAterm))
212+
else if (!strcmp(term, _GPGGAterm))
215213
curSentenceType = GPS_SENTENCE_GPGGA;
216214
else
217215
curSentenceType = GPS_SENTENCE_OTHER;

TinyGPS++.h renamed to src/TinyGPS++.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
3131
#endif
3232
#include <limits.h>
3333

34-
#define _GPS_VERSION "0.95" // software version of this library
34+
#define _GPS_VERSION "0.92" // software version of this library
3535
#define _GPS_MPH_PER_KNOT 1.15077945
3636
#define _GPS_MPS_PER_KNOT 0.51444444
3737
#define _GPS_KMPH_PER_KNOT 1.852

0 commit comments

Comments
 (0)