Xiang Xiao
0a0a14a42e
should use 'i' instead of 'd' in minmea_parse_gbs
...
please reference the definition here:
https://gpsd.gitlab.io/gpsd/NMEA.html#_gbs_gps_satellite_fault_detection
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-08-04 12:32:11 +01:00
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
Xiang Xiao
5cecc7a9ab
Don't check senentence length less than MINMEA_MAX_SENTENCE_LENGTH in minmea_check
...
since the whole code base can support any length without problem
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I49184d41154dcc857d0ff630bcab5c62add165de
2022-07-21 13:02:18 +08:00
Kosma Moczek
a0da280f64
add test_minmea_parse_vtg3 ( fixes #57 )
2022-06-03 01:40:30 +02:00
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
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
3e984ef657
minmea.c - Fix dereference of null pointer error caught by clang's scan-build
2022-06-02 22:41:12 +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
roman.storozhenko
252a3f9d3b
Add GBS parser
...
Signed-off-by: roman.storozhenko <roman.storozhenko@pixelsmatter.com>
2022-05-20 09:22:45 -04:00
Vladimir Petrigo
69ec986af7
minmea: Allow lines with only CR ending
2018-12-21 11:37:59 +03: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
Sean Wilson
4d97109408
Fix compiler warnings.
2018-01-16 11:15:12 -05:00
asund
80af9b4838
* Arrange year interpretation in order of likeliness
...
* Add unit tests
2017-10-13 22:05:24 -07:00
asund
ef8bca720f
clarity of century use in struct tm
2017-09-25 11:34:35 -07:00
asund
486da2bb5b
Small fixes to minmea_gettime
...
* Handle four digit years provided by ZDA in minmea_gettime
* Assume GPS epoch to allow dates prior 2000 to be parsed
2017-09-25 09:23:26 -07:00
Kosma Moczek
fcc63a54b0
Merge pull request #24 from kosma/zda
...
Merge branch 'zda'
2017-08-15 10:35:09 +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
Kaspar Schleiser
f3253039a3
use explicit 32bit integer for fractional time calculation
2017-05-20 15:08:16 +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
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
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
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
Evgueni Souleimanov
a52c1faa27
GSV: parse sentences that list 0 to 4 satellites
2014-06-17 20:46:40 -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
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
c375b8144b
merge with master
2014-06-17 14:52:46 +02:00
Kosma Moczek
c5bc12f8cc
minmea_gettimeofday: workaround missing tm_isdst on some systems
2014-05-28 16:06:32 +02:00
Kosma Moczek
03d9772807
always run tests before committing, kiddo.
2014-05-28 15:41:42 +02:00
Kosma Moczek
2329d55ff6
minmea_scan: avoid shadowing local variables
2014-05-28 15:38:23 +02:00
Kosma Moczek
3e3420d1ab
fix minmea_scan("f") overflow
2014-04-27 17:19:29 +02:00
Kosma Moczek
1e802f6d00
fix minmea_scan("f") when no decimal point is present
2014-04-27 17:06:10 +02:00
Kosma Moczek
14437a9631
[API change] add struct minmea_float w/ int_least32_t
...
This is an API breaker that incorporates the following big changes:
1. The (value, scale) float, as used in minmea, is a compound type. It
should be declared and used as such.
2. Some platforms, notably avr-gcc, have 16-bit ints. Make life easier
for them by using int_least32_t for floating point values.
3. As a side effect, the following functions were renamed:
* minmea_coord -> minmea_tocoord
* minmea_float -> minmea_tofloat
Migration guide for user code (easy unless you do fancy stuff):
1. Replace calls to minmea_{coord,float}.
2. Replace int32_t with int_least32_t in user code if your platform
requires this.
2014-04-27 16:22:37 +02:00
Kosma Moczek
6473d5b30e
Merge commit 'pull/origin/5'
2014-04-24 16:02:40 +02:00
Kosma Moczek
08d28a590a
Merge pull request #3 from eketh/master
...
Added support for GST frame
2014-04-24 11:55:54 +02:00
mek_x
c273d92a33
minmea: added minmea_parse_gsv
2014-04-24 00:08:10 +02:00
Eketh
24968cb3ba
Fixed spelling/codestyle
2014-04-23 19:57:30 +02:00
Kosma Moczek
dd2f2f20ff
add support for optional fields (minmea_scan ";" modifier)
2014-04-23 18:15:26 +02:00
Eketh
d6a02269d4
Names unification for GPGST
2014-04-23 13:23:24 +02:00
Eketh
ae6195af1e
Removed tabulatures from minmea.c and minmea.h
2014-04-20 19:21:05 +02:00