[Top][All Lists]

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

Re: [gpsd-users] Get fix mode with disconnect antenna

From: Yakov Shmulevich
Subject: Re: [gpsd-users] Get fix mode with disconnect antenna
Date: Tue, 19 Nov 2013 08:15:15 +0200

Hi Gary,

You don't understand me, I disconnect the antenna, so at this time the PVT data by sure changed.
At least I expected that gpsdata.fix.mode will give me MODE_NO_FIX1.
But I got the data as before disconnecting antenna, include gpsdata.fix.mod=MODE_3D.
I found the workaround, but it seems me very ugly.
Now every time that I want to get PVT data, I open the session by gps_open(), and after I get the PVT data I close the session by gps_close().
Also this solution have some strange behavior - I found that after gps_open() I get right PVT data only after 3-5 gps_read().
It despite the fact that I am using gps_waiting() before gps_read().


On Mon, Nov 18, 2013 at 10:34 PM, Gary E. Miller <address@hidden> wrote:
Yo Tomalak!

On Mon, 18 Nov 2013 20:27:57 +0000
"Tomalak Geret'kal" <address@hidden> wrote:

> On 18/11/2013 19:45, Gary E. Miller wrote:
> > Yo Yakov!
> >
> > On Sun, 17 Nov 2013 19:56:14 +0200
> > Yakov Shmulevich <address@hidden> wrote:
> >
> >> In main all gpsdata.fix (accumulated PVT data) is old and not
> >> updated. At the same time the gpsdata.satellites_used = 0.
> >> So, the question is how I can know that PVT data is wrong?
> > You know because it is old and not updated.
> >
> >
> That's hardly useful without a reference point.

The reference point is the time of the last fix you got.  If the last fix
you got is 10 seconds old, and you are not getting any new data then
you are not getting any new data.  gpsd only passes on what the GPS
give it, and when the GPS stops talking gpsd has nothing to pass on.

Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97701
        address@hidden  Tel:+1(541)382-8588

reply via email to

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