diff options
Diffstat (limited to 'contrib/webgps.py')
-rwxr-xr-x | contrib/webgps.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/webgps.py b/contrib/webgps.py index 0a801b5e..2e9a8187 100755 --- a/contrib/webgps.py +++ b/contrib/webgps.py @@ -244,7 +244,10 @@ function draw_satview() { # Draw the satellites for s in self.satellites: - x, y = polartocart(s.elevation, s.azimuth) + el, az = s.elevation, s.azimuth + if el == 0 and az == 0: + continue # Skip satellites with unknown position + x, y = polartocart(el, az) fill = not s.used and 'lightgrey' or \ s.ss < 30 and 'red' or \ s.ss < 35 and 'yellow' or \ |