Kosma Moczek
f1871e40b9
add unit tests for ZDA
2017-08-15 10:32:40 +02:00
Dawid Marszałkiewicz
a370e981d8
Add $--ZDA sentences
...
* Expand LDLIBS var in Makefile
* Add parser zda
* Extend sentence_id
* Add example
2017-08-15 10:26:59 +02:00
Kosma Moczek
5b8b204e44
Merge pull request #16 from anthonybrice/patch-1
...
NULL terminate array as test_minmea_check expects
2017-08-15 10:22:57 +02:00
Kosma Moczek
359c3de888
Merge pull request #18 from hraftery/documentation_fix
...
Corrected precision figure for lat/long values. Added derivation and an example.
2017-08-15 10:22:33 +02:00
Kosma Moczek
83f7f9b660
Merge pull request #23 from kaspar030/non32bit_compile_fix
...
use explicit 32bit integer for fractional time calculation
2017-08-15 10:21:59 +02:00
Kosma Moczek
6618d51f0c
Merge branch 'johlim-patch-1'
2017-08-15 10:20:38 +02:00
johlim
51c9c01ff8
Update README.md
2017-08-15 10:20:20 +02:00
Kosma Moczek
bbbe3d73b6
README.md: fix typo
2017-08-15 10:14:13 +02:00
Kosma Moczek
7d6ff06722
Makefile: fix check framework compilation flags
2017-08-15 10:13:16 +02:00
Kosma Moczek
0c1e0297c2
.travis.yml: remove stale Hipchat notifications
2017-08-15 10:09:48 +02:00
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
Kaspar Schleiser
f3253039a3
use explicit 32bit integer for fractional time calculation
2017-05-20 15:08:16 +02:00
U-ATSAUVS\heath.raftery
3cc0cfd478
Corrected precision figure for lat/long values. Added derivation and
...
an example.
2016-08-09 08:44:37 +10:00
Anthony Brice
137824049b
NULL terminate array as test_minmea_check expects
2016-06-10 20:12:36 -07: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