summaryrefslogtreecommitdiff
path: root/contrib/webgps.py
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/webgps.py')
-rwxr-xr-xcontrib/webgps.py5
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 \