gpsd-users
[Top][All Lists]
Advanced

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

Getting PDOP, VDOP and HDOP in C


From: David Taylor
Subject: Getting PDOP, VDOP and HDOP in C
Date: Tue, 29 Mar 2022 05:29:15 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0

I have a program which returns a valid gps_data_t named gps_data. My knowledge and reading of the headers isn't good enough to find how to get the three variables: pdop, hdop and vdop, although I suspect they are available. Could some kind soul show me how, please?

given in outline:

  struct gps_data_t gpsdata;
  status = gps_open (GPSD_SHARED_MEMORY, DEFAULT_GPSD_PORT, &gpsdata);
  gps_read (&gpsdata, NULL, 0);

  hdop = gpsdata.<what>
  vdop = gpsdata.<what>
  pdop = gpsdata.<what>

Thanks,
David
--
SatSignal Software - Quality software for you
Web: https://www.satsignal.eu
Email: david-taylor@blueyonder.co.uk
Twitter: @gm8arv


reply via email to

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