Skip to content

Change accuracy from HDOP determination

Chris T requested to merge kop316/geoclue:wip/fix_nmea into master

partial fix for #174 (closed) .

Based on https://en.wikipedia.org/wiki/Dilution_of_precision_%28GPS%29#Meaning_of_DOP_Values , I just changed the location to favor the NMEA source if the HDOP is below 5 (the GPS may fluxuate to above 2 while in use, so we still want to use the GPS values), made the values from 5-10 such that geoclue may use wifi/3g, and if it is above 10, use it only as a last resort. This also has the benefit of if GPS drops out, another source can be used.

I have verified this works on my Librem 5 with an NMEA GPS Source.

Edited by Chris T

Merge request reports