diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-09-18 07:41:36 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-09-18 07:41:36 -0400 |
commit | e11a617ab0943bfad775f051a1b256010132a420 (patch) | |
tree | 894addb33e13c13f2a10ed4a38bc489a20eb0973 /driver_geostar.c | |
parent | 5398d10dc20ef7433818f422396b80475b6a8b22 (diff) | |
download | gpsd-e11a617ab0943bfad775f051a1b256010132a420.tar.gz |
Sort out some issues with PRN handling.
Add macros for classifying PRNs into GPS, GLONASS, DGPS. Document the PRN
ranges on the gps_json manual page.
It turns out that U.S. GPS authorities reserve 1-64 for GPS birds, not just
1-32. So the way we map GLONASS PRNs had to change. This required a
regression-test rebuild for the geostar driver.
Diffstat (limited to 'driver_geostar.c')
-rw-r--r-- | driver_geostar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/driver_geostar.c b/driver_geostar.c index 0d56b233..9b771409 100644 --- a/driver_geostar.c +++ b/driver_geostar.c @@ -29,7 +29,7 @@ static int decode_channel_id (uint32_t ch_id) { int num = 0; num = (int)(ch_id & 0x1F); /* SV ID */ - if((ch_id & (1<<30)) == 0) num += 32; /* GLONASS SV */ + if((ch_id & (1<<30)) == 0) num += 64; /* GLONASS SV */ else if (num == 0 ) num = 32; /* GPS SV */ return num; } |