Commit Graph

24 Commits

Author SHA1 Message Date
Xiang Xiao
d6ad155319 remove the unnecessary header file inclusion
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-08-04 11:49:51 +01:00
Kosma Moczek
1e2f0af7d8 rename MINMEA_MAX_LENGTH -> MINMEA_MAX_SENTENCE_LENGTH 2022-06-03 01:24:58 +02:00
johnauld
4da3f38acc Update example.c 2022-05-20 08:48:36 -04: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
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
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
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
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
Kosma Moczek
e510d9912e example.c: fix printed frame names 2014-04-27 16:38:06 +02:00
Kosma Moczek
870d64d1d5 example.c: update for the new API 2014-04-27 16:36:40 +02:00
Kosma Moczek
6d75881425 example.c: fix build errors introduced by #4
My bad for not checking this.
2014-04-24 16:05:50 +02:00
Kosma Moczek
6473d5b30e Merge commit 'pull/origin/5' 2014-04-24 16:02:40 +02:00
mek_x
6aee1b8bb7 example.c: added example for gsv parsing 2014-04-24 00:08:26 +02:00
Eketh
cd0ee8f9e1 Fixed the last typo in example.c 2014-04-23 20:04:18 +02:00
Eketh
b151ccae51 Fixed typo in example.c 2014-04-23 20:03:05 +02:00
Eketh
24968cb3ba Fixed spelling/codestyle 2014-04-23 19:57:30 +02:00
Eketh
8a35643870 Added support of GST frames in example.c 2014-04-21 10:35:22 +02:00
Kosma Moczek
d973b98d66 minmea: don't include talker id in sentence type.
This is a backwards-incompatible change that I knew I'd have to
introduce sooner or later. Which means now.

Long story short: when I first started writing this library, I wanted to
make things simpler by treating the entire talker+sentence as one big
ID. Of course, this is an oversimplification, as there are different
talkers out there.

Turns out they're more common than I initially thought. I just came
across a module (read: I had one soldered to my board by our crazy
hardware guy) that spits out GPRMC, GLRMC or GNRMC depending on where it
got the data. I could have kludged around this, but here's this change,
for the purity of code.

Fortunately, we're the only users of this codebase as far as I know, so
no real harm is done - but it's a lesson to design my interfaces right
from the very start so I don't have to break compatibility and write
apologetic messages later on.
2014-03-24 22:40:25 +01:00
Kosma Moczek
3b3179a000 example.c: fix vim modeline 2014-03-24 22:35:03 +01:00
Kosma Moczek
4d0f78662f COPYING: include the no-warranty clause 2014-02-26 16:27:24 +01:00
Kosma Moczek
b341777f60 man, that license stuff is hard to do right 2014-02-16 20:03:14 +01:00
Kosma Moczek
56177f0e1c initial commit 2014-02-14 15:22:18 +01:00