[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gpsd-users] Valid data in gps_data_t struct
From: |
Gary E. Miller |
Subject: |
Re: [gpsd-users] Valid data in gps_data_t struct |
Date: |
Sat, 25 May 2019 12:12:34 -0700 |
Yo Massimiliano!
On Sat, 25 May 2019 19:46:13 +0200
Massimiliano Fago <address@hidden> wrote:
> how I can know if pps.clock, dop.vdop, pps.real data in my gps_data_t
> struct are valid?
Depends on your definition of 'valid'.
All the DOPs are set to NAN if they are unknown.
struct pps is a timedelta_t, so valid if the two times being subtracted
are themselves valid. Also, struct pps is in a union, so only use it
directly after computing it.
RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
address@hidden Tel:+1 541 382 8588
Veritas liberabit vos. -- Quid est veritas?
"If you can’t measure it, you can’t improve it." - Lord Kelvin
pgpn3bRi1zF8x.pgp
Description: OpenPGP digital signature