diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-04-07 07:26:48 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-04-07 07:26:48 -0400 |
commit | d5ad9f2f9b219de1d35ef95cd60f7fee67ba9935 (patch) | |
tree | 8bc9e3a5d99f8a510286de283c9676bbb7d6c88b /xgpsspeed | |
parent | 9c9b6060ad028070e5d68237985604f1c8565469 (diff) | |
download | gpsd-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-x | xgpsspeed | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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: |