[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gpsd-dev] STATUS_DGPS_FIX is never reported by libgps
From: |
Ahti Heinla |
Subject: |
[gpsd-dev] STATUS_DGPS_FIX is never reported by libgps |
Date: |
Mon, 20 Oct 2014 10:27:57 +0300 |
User-agent: |
KMail/4.10.5 (Linux/3.9.9-030909-generic; KDE/4.10.5; x86_64; ; ) |
Hi,
Although gps.h documents that gps_data_t status field can have a value
STATUS_DGPS_FIX, in practice libgps reports STATUS_FIX while in fact it knows
it has a DGPS fix.
When libgps accesses gpsd via the socket interface, this results from
the fact
that socket protocol as documented simply does not include information on
whether
the fix is DGPS or non-DGPS.
When libgps accesses gpsd via shm interface, this results from
libgps_shm.c
having specific code to ignore gpsdata->status, and instead set it based on
gpsdata->fix.mode (which does not include DGPS information):
if ((gpsdata->set & REPORT_IS)!=0) {
if (gpsdata->fix.mode >= 2)
gpsdata->status = STATUS_FIX;
else
gpsdata->status = STATUS_NO_FIX;
gpsdata->set = STATUS_SET;
}
Any comments? Should the documentation in gps.h be changed, or steps
be taken to actually report STATUS_DGPS_FIX when it is due?
Ahti
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gpsd-dev] STATUS_DGPS_FIX is never reported by libgps,
Ahti Heinla <=