Kosma Moczek
1e2f0af7d8
rename MINMEA_MAX_LENGTH -> MINMEA_MAX_SENTENCE_LENGTH
2022-06-03 01:24:58 +02:00
Kosma Moczek
6915c08c59
Merge pull request #45 from benpicco/minmea_getdate
...
add minmea_getdatetime()
2022-06-03 01:15:07 +02:00
Kosma Moczek
926077436a
tests: add tests for minmea_getdatetime
2022-06-03 01:10:22 +02:00
Kosma Moczek
77d5410c68
rename minmea_getdate -> minmea_getdatetime
2022-06-03 01:10:05 +02:00
Kosma Moczek
8e243e5310
minmea_getdate: consistent argument naming
2022-06-03 01:00:57 +02:00
Kosma Moczek
f2bd34c82a
minmea_getdate: use pointer dereferencing for memset (safer)
2022-06-03 00:53:40 +02:00
Kosma Moczek
74a4744792
Merge pull request #41 from vpetrigo/update/allow_only_CR_ending
...
minmea: Allow lines with only CR ending
2022-06-03 00:46:30 +02:00
Kosma Moczek
908846d4f6
add tests for newline handling
2022-06-03 00:45:37 +02:00
Kosma Moczek
ce0fb1d6da
Merge pull request #64 from kosma/clang_null
...
minmea.c - Fix dereference of null pointer error caught by clang's sc…
2022-06-02 22:42:36 +02:00
Kosma Moczek
3e984ef657
minmea.c - Fix dereference of null pointer error caught by clang's scan-build
2022-06-02 22:41:12 +02:00
Kosma Moczek
43ac660db6
Makefile: fail on scan-build failure
2022-06-02 22:31:25 +02:00
Kosma Moczek
6b1a15aa29
Merge pull request #63 from kosma/workflow
...
Replace Travis with Github Actions
2022-06-02 22:27:31 +02:00
Kosma Moczek
f35c9b04f3
.github: remove redundant make invocation
2022-06-02 22:25:55 +02:00
Kosma Moczek
7ea8901880
README.md: add better contribution guidelines
2022-05-23 15:38:26 +02:00
Vladimir Petrigo
f75678a426
Fix PR comments
...
Update CR and LF symbols skipping at the end of the line
2022-05-22 16:01:09 +03:00
Benjamin Valentin
4ebbaef840
add minmea_getdate()
...
The GPS date is internally converted to a struct tm anyway.
Add a function to make use of this for external users too.
2022-05-21 15:20:14 +02:00
Chris Morgan
de996fee46
Remove unused .travis.yml configuration file
2022-05-21 08:32:42 -04:00
Chris Morgan
6e32e63908
README.md - Replace Travis badge with GitHub workflows badge
2022-05-21 08:30:04 -04:00
Chris Morgan
69b3be605c
GitHub workflows configuration
2022-05-20 21:01:37 -04:00
Chris Morgan
25d1224ae2
Merge pull request #62 from d-el/UpdateReadme_GBS
...
Add GBS to README and alphabetical sorting
2022-05-20 20:45:58 -04:00
d-el
9bdee64b4b
Add GBS to README and alphabetical sorting
...
Signed-off-by: d-el <d2.718l@gmail.com>
2022-05-21 00:20:14 +03:00
karas
becf6aa58d
Fix Integer Overflow
2022-05-20 09:45:05 -04:00
roman.storozhenko
252a3f9d3b
Add GBS parser
...
Signed-off-by: roman.storozhenko <roman.storozhenko@pixelsmatter.com>
2022-05-20 09:22:45 -04:00
Kosma Moczek
33b97e75b2
Merge pull request #43 from xerdink/ti-include
...
fix(ti-compat): fixed compat header
2022-05-20 15:04:56 +02:00
Kosma Moczek
7689f93e73
Merge pull request #60 from kosma/cmm_test_fixes
...
tests.c - Fix 'format-security' warnings due to use of ck_assert_msg(…
2022-05-20 14:57:15 +02:00
Dr. PO
bf5358dac3
minmea.h: use const if possible
2022-05-20 08:55:28 -04:00
Yegor Yefremov
e2560c5a49
README.md: fix typo
...
s/deciminal/decimal
2022-05-20 08:49:07 -04:00
johnauld
4da3f38acc
Update example.c
2022-05-20 08:48:36 -04:00
johnauld
41d8bf539d
Update README.md
2022-05-20 08:48:36 -04:00
Chris Morgan
d8b411fe15
tests.c - Fix 'format-security' warnings due to use of ck_assert_msg() without a formatting string
...
https://fedoraproject.org/wiki/Format-Security-FAQ#What_is_-Wformat-security
tests.c: In function ‘test_minmea_check_fn’:
tests.c:79:9: error: format not a string literal and no format arguments [-Werror=format-security]
79 | ck_assert_msg(minmea_check(*sentence, false) == true, *sentence);
| ^~~~~~~~~~~~~
tests.c:80:9: error: format not a string literal and no format arguments [-Werror=format-security]
80 | ck_assert_msg(minmea_check(*sentence, true) == false, *sentence);
| ^~~~~~~~~~~~~
tests.c:84:9: error: format not a string literal and no format arguments [-Werror=format-security]
84 | ck_assert_msg(minmea_check(*sentence, false) == true, *sentence);
| ^~~~~~~~~~~~~
tests.c:85:9: error: format not a string literal and no format arguments [-Werror=format-security]
85 | ck_assert_msg(minmea_check(*sentence, true) == true, *sentence);
| ^~~~~~~~~~~~~
tests.c:89:9: error: format not a string literal and no format arguments [-Werror=format-security]
89 | ck_assert_msg(minmea_check(*sentence, false) == false, *sentence);
| ^~~~~~~~~~~~~
tests.c:90:9: error: format not a string literal and no format arguments [-Werror=format-security]
90 | ck_assert_msg(minmea_check(*sentence, true) == false, *sentence);
| ^~~~~~~~~~~~~
2022-05-20 08:41:55 -04:00
Kosma Moczek
06ad5a1840
Merge pull request #48 from DonneyF/master
...
Update NMEA documentation link
2019-09-16 02:18:21 +02:00
DonneyF
bf7680b4e4
Update README.md
2019-09-12 16:09:23 -07:00
orhaneee
90503ad1ff
fix(ti-compat): fixed compat header
...
POSIX headers' path has been changed.
2019-05-02 17:37:56 +03:00
Vladimir Petrigo
69ec986af7
minmea: Allow lines with only CR ending
2018-12-21 11:37:59 +03:00
Kosma Moczek
ae4dd9442a
Merge pull request #38 from noahp/noahp/check-url
...
🔗 update Check link
2018-10-16 11:00:59 +02:00
Noah Pendleton
b1371aa526
🔗 update Check link
...
Check has moved to github from sourceforge, update the link.
Also switch clang static analyzer link to https from http.
2018-10-13 14:17:29 -04:00
Kosma Moczek
65bf740bd8
Merge pull request #35 from gdpinchina/master
...
Change dgps_age type from int to minmea_float
2018-09-19 14:00:18 +02:00
gdpinchina
61c6ef7ddd
fix test for gga
2018-09-19 14:38:49 +08:00
gdpinchina
4514f6dd5e
fix test for gga
2018-09-19 14:29:19 +08:00
gdpinchina
113221d7a9
fix test for gga
2018-09-19 14:15:51 +08:00
gdpinchina
35b00bca2f
fix test in gga
2018-09-19 14:01:55 +08:00
gdpinchina
9fcd2450f5
remove indent
2018-09-08 14:14:43 +08:00
gdpinchina
59c3e0a813
fix gga char alignment problem in test.c
...
In c compiler, a char takes 4 bytes in a structure though its size is 1 bytes. The initialization for `struct minmea_sentence_gga`:
```
struct minmea_sentence_gga expected = {
.time = { 12, 35, 19, 0 },
.latitude = { 4807038, 1000 },
.longitude = { 1131000, 1000 },
.fix_quality = 1,
.satellites_tracked = 8,
.hdop = { 9, 10 },
.altitude = { 5454, 10 },
.altitude_units = 'M',
.height = { 469, 10 },
.height_units = 'M',
.dgps_age = { 0, 0 },
};
```
has the binary sequence like these:
```
0c 00 00 00 23 00 00 00 13 00 00 00 00 00 00 00 7e 59 49 00 e8 03 00 00 f8 41 11 00 e8 03 00 00 01 00 00 00 08
00 00 00 09 00 00 00 0a 00 00 00 4e 15 00 00 0a 00 00 00 4d cc cc cc d5 01 00 00 0a 00 00 00 4d cc cc cc 00 00
00 00 00 00 00 00
```
which the `4d cc cc cc` is the `'M'`, and cause memcmp return none zero. Therefore I add some code to remove `cc cc cc`:
```
memset(&expected.altitude_units + 1, 0, 3);
memset(&expected.height_units + 1, 0, 3);
```
2018-09-08 14:12:10 +08:00
gdpinchina
79b964a5b2
modefy initialization for dgps_age
...
modefy initialization for dgps_age
2018-09-08 13:10:06 +08:00
gdpinchina
c4a5a01d66
modify dgps_age type
...
change dgps_age type from int to struct minmea_float.
example: $--GGA,hhmmss.ss,llll.ll,a,yyyyy.yy,a,x,xx,x.x,x.x,M,x.x,M,x.x,xxxx*hh<CR><LF>
2018-09-05 08:47:49 +08:00
gdpinchina
c01cbcf342
modify dgps_age type
...
change dgps_age type from int to struct minmea_float.
example: $--GGA,hhmmss.ss,llll.ll,a,yyyyy.yy,a,x,xx,x.x,x.x,M,x.x,M,x.x,xxxx*hh<CR><LF>
2018-09-05 08:45:41 +08:00
Kosma Moczek
cd27e72970
Merge pull request #29 from swilson/master
...
Add support for building under TI-RTOS
2018-01-24 14:59:48 +01:00
Sean Wilson
4d97109408
Fix compiler warnings.
2018-01-16 11:15:12 -05:00
Sean Wilson
0456bbb0ce
Define timegm
2018-01-16 11:05:31 -05:00
Sean Wilson
04f1141345
Add TI-RTOS compat header
2018-01-16 11:02:45 -05:00