From 77c19c5f519616f6b82fc7e6d64d918a785f9ba4 Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Wed, 19 Sep 2018 15:53:24 -0700 Subject: gps.h: PRN is a mess, add gnssid:svid. INCOMPATIBLE CHANGE! No two GPS encode PRN the same way, so be more explicit about constellation and PRN within the constellation. --- gps.h | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'gps.h') diff --git a/gps.h b/gps.h index e427f5a4..2b23df98 100644 --- a/gps.h +++ b/gps.h @@ -1820,9 +1820,25 @@ struct ais_t struct satellite_t { double ss; /* signal-to-noise ratio, 0 to 254 dB, -1 for n/a */ bool used; /* this satellite used in solution */ - short PRN; /* PRN of this satellite, 1 to 437, 0 for n/a */ + /* PRN of this satellite, 1 to 437, 0 for n/a + * sadly there is no standard, but many different implementations of + * how to code PRN + */ + short PRN; short elevation; /* elevation of satellite, -90 to 90 deg, -91 for n/a */ short azimuth; /* azimuth, 0 to 359 deg, -1 for n/a */ + /* gnssid:svid, as defined by u-blox 8: + * gnssid svid (native PRN) + * 0 = GPS 1-32 + * 1 = SBAS 120-158 + * 2 = Galileo 1-36 + * 3 - BeiDou 1-37 + * 4 = IMES 1-10 + * 5 = QZSS 1-5 + * 6 = GLONASS 1-32, 22255 + */ + unsigned char gnssid; + unsigned char svid; }; struct attitude_t { -- cgit v1.2.1