Commit Graph

113 Commits

Author SHA1 Message Date
Kosma Moczek
3fc40492d9 README.md: update authorship information 2017-08-15 10:06:41 +02:00
Kosma Moczek
0491cb5826 README.md: update Travis CI link 2017-08-15 10:05:21 +02:00
Maxime Vincent
48ba91275c Use _DEFAULT_SOURCE instead of _BSD_SOURCE (support newer compilers)
* Use _DEFAULT_SOURCE instead of _BSD_SOURCE
* Include header for gmtime/mktime
* Keep glibc < 2.20 and >= 2.20 happy
2016-04-23 21:55:03 +02:00
lvitya
95f6beec4f Add $--VTG sentences.
* Fix padding problem in test_minmea_parse_gll1
* Add support for $--VTG sentences.
* Add tests for $--VTG sentences.
* Fix padding problem in test_minmea_parse_gll1. 2nd attempt.
2016-04-23 21:19:26 +02:00
Artur Mądrzak
ade6621a59 Merge pull request #12 from maximus5684/master
Fixing minmea.c to compile with C++ compiler.
2016-03-02 20:01:32 +01:00
Joshua Whitley
a499d2bdd8 Removed array bounds as requested by madrypl. 2016-03-02 11:44:44 -06:00
Joshua Whitley
869b8f4f2c Fixing minmea.c to compile with C++ compiler. 2016-03-02 02:38:37 -06:00
Kosma Moczek
ae62148805 add minmea_checksum 2014-09-11 18:02:29 +02:00
Kosma Moczek
f9584757c2 Makefile: fix tests on Darwin 2014-09-11 15:31:28 +02:00
Kosma Moczek
103a523096 tests.c: rename sequence -> sentence (I was drunk at the time?) 2014-09-11 15:29:53 +02:00
Kosma Moczek
bf0f7d30f9 [API CHANGE] minmea_check: add "strict" argument
In strict mode, non-checksummed frames are discarded.
2014-09-11 15:29:53 +02:00
Kosma Moczek
a6b4f4367d .travis.yml: better HTML template 2014-09-03 16:15:04 +02:00
Kosma Moczek
45b9a07f2a .travis.yml: HTML Hipchat notifications 2014-09-03 14:51:10 +02:00
Kosma Moczek
300e6a67b1 .travis.yml: update Hipchat notification 2014-09-03 14:41:41 +02:00
Kosma Moczek
b48c0826bb .travis.yml: add Hipchat notification 2014-09-03 14:18:58 +02:00
Kosma Moczek
7e8196367d .travis.yml: don't spam so hard 2014-09-03 14:07:41 +02:00
Kosma Moczek
30d4f8151b README.md: add Travis badge 2014-09-02 23:09:40 +02:00
Kosma Moczek
ea324ed49f tests.c: squash GCC's complaints, I'm tired of this shit 2014-09-02 23:08:14 +02:00
Kosma Moczek
b763062f8d tests.c: work around spurious compiler error when comparing large ints 2014-09-02 22:41:00 +02:00
Kosma Moczek
a21389a66b .gitignore: add *.exe (sic) 2014-09-02 22:33:51 +02:00
Kosma Moczek
e9ee7cc0c1 Makefile: feature test macros to make dumb Linux happy 2014-09-02 22:18:43 +02:00
Kosma Moczek
6fa3e4646a .travis.yml: use sudo when calling apt-get 2014-09-02 22:07:30 +02:00
Kosma Moczek
d303b73c40 add .travis.yml 2014-09-02 22:05:39 +02:00
Kosma Moczek
e81f908109 minmea_scan("f"): allow spaces at the start of the field 2014-07-30 15:18:22 +02:00
Kosma Moczek
b777fbe0b9 minmea_gettimeofday -> minmea_gettime 2014-07-11 12:18:47 +02:00
Kosma Moczek
23e2f950c5 README.md: more timegm() documentation 2014-06-18 12:13:14 +02:00
Kosma Moczek
7786885eef tests.c: shorter & consistent variable names 2014-06-18 11:41:41 +02:00
Kosma Moczek
eb6baa182e tests.c: add assert_float_eq() macro 2014-06-18 11:39:06 +02:00
Kosma Moczek
79c98e2d43 Merge pull request #9 from esoule/hotfix-gsv-shorter-sentence-2
GSV sentence with 0 to 4 satellites, plus gcc -Wfloat-equal
2014-06-18 11:31:49 +02:00
Evgueni Souleimanov
40b3fdd80d tests: use fabsf (float), not fabs (double) in epsilon comparisons of floats
Fixes a mistake in commit f68eb7c
2014-06-17 21:23:09 -04:00
Evgueni Souleimanov
4b060fe234 example: indent parsing results with spaces 2014-06-17 20:58:55 -04:00
Evgueni Souleimanov
eede684d27 example: indicate when a sentence is not parsed or is not valid
Indicate when a sentence is not parsed or is not valid. Before this
change, it was not clear from the example run whether each sentence is
parsed properly or not.
2014-06-17 20:56:29 -04:00
Evgueni Souleimanov
6f9ffab883 example: fix printf line 2014-06-17 20:52:05 -04:00
Evgueni Souleimanov
a52c1faa27 GSV: parse sentences that list 0 to 4 satellites 2014-06-17 20:46:40 -04:00
Evgueni Souleimanov
74e2ce002e add test for shorter GSV sentence, with 0 to 4 satellites 2014-06-17 20:46:21 -04:00
Evgueni Souleimanov
f68eb7c9fd fix "warning: comparing floating point with == or != is unsafe" (epsilon comparison)
Instead of comparing floats "x == y", perform comparison
"fabs(x - y) <= epsilon", where epsilon is acceptable error that
accumulates in computation of x and/or y.

Because in this case all integers are small and all floats are exactly
representable under IEEE754, epsilon may be zero in our tests.

This warning occurred when compiling using

gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-3)

on CentOS 6.5 x86_64

using the following CFLAGS (locally inserted into Makefile)

CFLAGS = -g -Wall -Wextra -Wformat=2 -funsigned-char -fstrict-aliasing
 -Wstrict-aliasing -Wfloat-equal -Wundef -Wuninitialized -Wpointer-arith
 -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Waddress
 -Waggregate-return -Wstrict-prototypes -Wold-style-declaration
 -Wold-style-definition -Wmissing-parameter-type -Wmissing-prototypes
 -Wmissing-declarations -Wmissing-field-initializers -Wmissing-noreturn
 -Wmissing-format-attribute -Wpacked -Wredundant-decls -Wnested-externs
 -Wshadow -Wsign-compare -Wlogical-op -std=c99

and this make command:

make clean ; make example tests
2014-06-17 20:35:32 -04:00
Evgueni Souleimanov
52c077c5ac undo commit "tests: prevent compiler warning when comparing floats" 2014-06-17 20:35:32 -04:00
Evgueni Souleimanov
2ae5c4a645 fix "warning: no previous prototype for 'minmea_suite'"
This warning occurred when compiling using

gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-3)

on CentOS 6.5 x86_64

using the following CFLAGS (locally inserted into Makefile)

CFLAGS = -g -Wall -Wextra -Wformat=2 -funsigned-char -fstrict-aliasing
 -Wstrict-aliasing -Wfloat-equal -Wundef -Wuninitialized -Wpointer-arith
 -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Waddress
 -Waggregate-return -Wstrict-prototypes -Wold-style-declaration
 -Wold-style-definition -Wmissing-parameter-type -Wmissing-prototypes
 -Wmissing-declarations -Wmissing-field-initializers -Wmissing-noreturn
 -Wmissing-format-attribute -Wpacked -Wredundant-decls -Wnested-externs
 -Wshadow -Wsign-compare -Wlogical-op -std=c99

and this make command:

make clean ; make example tests
2014-06-17 20:35:26 -04:00
Evgueni Souleimanov
0fc9cea986 fix "warning: old-style function definition"
This warning occurred when compiling using

gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-3)

on CentOS 6.5 x86_64

using the following CFLAGS (locally inserted into Makefile)

CFLAGS = -g -Wall -Wextra -Wformat=2 -funsigned-char -fstrict-aliasing
 -Wstrict-aliasing -Wfloat-equal -Wundef -Wuninitialized -Wpointer-arith
 -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Waddress
 -Waggregate-return -Wstrict-prototypes -Wold-style-declaration
 -Wold-style-definition -Wmissing-parameter-type -Wmissing-prototypes
 -Wmissing-declarations -Wmissing-field-initializers -Wmissing-noreturn
 -Wmissing-format-attribute -Wpacked -Wredundant-decls -Wnested-externs
 -Wshadow -Wsign-compare -Wlogical-op -std=c99

and this make command:

make clean ; make example tests
2014-06-17 20:35:15 -04:00
Evgueni Souleimanov
1b3147c7e0 fix "warning: declaration of 'time' shadows a global declaration" (-Wshadow)
This warning occurred when compiling using

gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-3)

on CentOS 6.5 x86_64

using the following CFLAGS (locally inserted into Makefile)

CFLAGS = -g -Wall -Wextra -Wformat=2 -funsigned-char -fstrict-aliasing
 -Wstrict-aliasing -Wfloat-equal -Wundef -Wuninitialized -Wpointer-arith
 -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Waddress
 -Waggregate-return -Wstrict-prototypes -Wold-style-declaration
 -Wold-style-definition -Wmissing-parameter-type -Wmissing-prototypes
 -Wmissing-declarations -Wmissing-field-initializers -Wmissing-noreturn
 -Wmissing-format-attribute -Wpacked -Wredundant-decls -Wnested-externs
 -Wshadow -Wsign-compare -Wlogical-op -std=c99

and this make command:

make clean ; make example tests
2014-06-17 20:33:47 -04:00
Evgueni Souleimanov
82b1c180f2 remove example executable in make clean 2014-06-17 20:33:47 -04:00
Kosma Moczek
4de49c8fad README.md: style fix 2014-06-17 15:04:52 +02:00
Kosma Moczek
f3d21d6135 Merge branch 'pull-request-2' 2014-06-17 15:03:24 +02:00
Kosma Moczek
0cf5bb5cf9 minmea_sentence_gll: minor style fixes 2014-06-17 15:02:04 +02:00
Kosma Moczek
7477e3caa3 minmea_parse_gll: make mode field optional 2014-06-17 15:00:51 +02:00
Kosma Moczek
f9394d2915 minmea_sentence_gll: adapt for new floating point format 2014-06-17 14:57:08 +02:00
Kosma Moczek
f193e412c6 minmea.h: style fixes 2014-06-17 14:54:12 +02:00
Kosma Moczek
531192598d test_minmea_parse_gll1: keep naming consistent 2014-06-17 14:53:27 +02:00
Kosma Moczek
c375b8144b merge with master 2014-06-17 14:52:46 +02:00
Kosma Moczek
701fe6920f example.c: revert accidental overwrite 2014-06-17 14:46:52 +02:00