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: Folkert van Heusden
Subject: Re: [gpsd-users] issues with libgps(-dev)
Date: Thu, 25 Apr 2013 20:10:28 -0000

> > 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?

Bernd replied the following off-list:

> Without looking into the code
>     int    status;              /* Do we have a fix? */
> #define STATUS_NO_FIX   0       /* no */
> #define STATUS_FIX      1       /* yes, without DGPS */
> #define STATUS_DGPS_FIX 2       /* yes, with DGPS */
>
> I'd expect that when status == 0 there is no fix and status >= 3 should just 
> not
> happen.
>
> Why do you think that there is no fix when status is > 0 ?

Well it also returned either 1 or 2 without any fix.
I "know" that it had no fix as the long/lat/alt was not set to be
valid in the 'set'-variable of the structure.


regards



reply via email to

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