wadda / gps3

Python 2.7 - 3.5 interface to gpsd
MIT License
76 stars 32 forks source link

Fix quality #10

Closed fperucic closed 8 years ago

fperucic commented 8 years ago

Hi,

this library looks grat. However I can't find "Fix Quality" data from the GGA sentence. Am I missing something?

Many thanks!

wadda commented 8 years ago

I have only wild speculation why you "can't find "Fix Quality" data from the [GGA sentence]"...quite possibly all wrong.

However, in the JSON datastream is the 'TPV' class It has a key 'mode' (self.TPV['mode'])

It is a numeric value that is always present in that 'class' JSON object NMEA mode: %d, 0=no mode value yet seen, 1=no fix, 2=2D, 3=3D.

That may be suitable.

fperucic commented 8 years ago

Yes, I saw that property on the TPV class, however I was confused with the status property from the older gps.py which is never updated once it is set as STATUS_NO_FIX. Nevermind, I only thought you had something simmilar. I will kepp using the mode property.