ugps: add quality measurement parameters master
authorZbyněk Kocur <zbynek.kocur@fel.cvut.cz>
Wed, 14 Feb 2024 09:25:23 +0000 (10:25 +0100)
committerPetr Štetiar <ynezz@true.cz>
Wed, 14 Feb 2024 09:51:09 +0000 (09:51 +0000)
commit69561a074d6f50f63b82608b19041e5eb2c605a9
tree8d9396a6d954620fd17b64dd365c347fdc553363
parenta8171a07193351a9125024d5c759c0ebd6a6895c
ugps: add quality measurement parameters

The current version of ugps does not report any quality parameters for
GPS receiver fixation. Considering the positioning error, which can be
up to hundreds of meters, it is helpful to know how accurately the GPS
determines the position.

This PR supports determining the number of satellites and the HDOP
(Horizontal Dilution of Precision) parameter to address this.  The GPGGA
sentence is already parsed in the code, so it just extends the amount of
data it reads.

Fixes: #2 (ugps miss GPS quality parameters)
Signed-off-by: Zbynek Kocur <zbynek.kocur@fel.cvut.cz>
Signed-off-by: Petr Štetiar <ynezz@true.cz> [whitespace fixes, long line wrap]
main.c
nmea.c
nmea.h