summaryrefslogtreecommitdiff
path: root/xgpsspeed
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-04-07 07:26:48 -0400
committerEric S. Raymond <esr@thyrsus.com>2015-04-07 07:26:48 -0400
commitd5ad9f2f9b219de1d35ef95cd60f7fee67ba9935 (patch)
tree8bc9e3a5d99f8a510286de283c9676bbb7d6c88b /xgpsspeed
parent9c9b6060ad028070e5d68237985604f1c8565469 (diff)
downloadgpsd-d5ad9f2f9b219de1d35ef95cd60f7fee67ba9935.tar.gz
Correct buggy detection of SBAS satellites in the Python client code.
Before this fix, satellites from the Beidou or QZNSS wuld have been incirrectly displayed with the SBAS shape.
Diffstat (limited to 'xgpsspeed')
-rwxr-xr-xxgpsspeed3
1 files changed, 1 insertions, 2 deletions
diff --git a/xgpsspeed b/xgpsspeed
index d553d2c8..f2e8a494 100755
--- a/xgpsspeed
+++ b/xgpsspeed
@@ -220,7 +220,6 @@ class LandSpeedometer(Speedometer):
class NauticalSpeedometer(Speedometer):
HEADING_SAT_GAP = 0.8
- GPS_PRNMAX = 96 # Above this number are SBAS satellites
SAT_SIZE = 10 # radius of the satellite circle in skyview
def __init__(self, speed_unit=None, maxspeed=100):
@@ -454,7 +453,7 @@ class NauticalSpeedometer(Speedometer):
x0, y0 = NauticalSpeedometer.polar2xy(radius * (90 - satsoup['el']) / 90, h, x, y)
self.cr.new_sub_path()
- if satsoup['PRN'] > NauticalSpeedometer.GPS_PRNMAX:
+ if gps.is_sbas(satsoup['PRN']):
self.cr.rectangle(x0 - NauticalSpeedometer.SAT_SIZE, y0 - NauticalSpeedometer.SAT_SIZE,
NauticalSpeedometer.SAT_SIZE * 2, NauticalSpeedometer.SAT_SIZE * 2)
else: