gpsd-users
[Top][All Lists]
Advanced

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

Re: [gpsd-users] issues with libgps(-dev)


From: Eric S. Raymond
Subject: Re: [gpsd-users] issues with libgps(-dev)
Date: Sun, 15 Sep 2013 12:59:10 -0400
User-agent: Mutt/1.5.21 (2010-09-15)

Folkert van Heusden <address@hidden>:
> I have a small issue with libgps (I use the C library):
> 
> I found that the "status"-field in the structure, if that field is not
> STATUS_NO_FIX, that does not neccessarily mean that there's a fix.
> So what I now do is check if LATLON_SET is set in the 'set'-field AND
> also if status != STATUS_NO_FIX.
> Is that the way to go you think?

That's the right thing.  The status field is derived from the fix status
the GPS passes back.  Some devices will report a fix present when they
really only have enough of a lock to get GPS time.
-- 
                <a href="http://www.catb.org/~esr/";>Eric S. Raymond</a>



reply via email to

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