gpsd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Aw: Re: need help: have issues with gpsd-client under python


From: Beta Tester
Subject: Aw: Re: need help: have issues with gpsd-client under python
Date: Fri, 1 Jul 2022 12:18:28 +0200

> > That can work, but you are not checking that the new data is valid before
> > using it to overwrite the NULL.
> >
> > ...
> >
> > I'm talking about the other direction. Data from gps.read() is often
> > not set. So you need to check it is valid before using it. As
> > per the example code previously discussed.
>
> i hope now i understand what you mean.
> i added `get_finite(dict, key)` to my code, that only returns the float value,
> when it is a finite value, otherwise it returns `None`.

no i absolutely don't...
doh, that hurts! sorry, for my very slow brain.
i didn't checked (gps.valid & gps.PACKET_SET)
i didn't checked (gps.valid & gps.SATELLITE_SET) and all the other flags.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]