summaryrefslogtreecommitdiff
path: root/contrib/skyview.php
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2008-02-10 07:21:24 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2008-02-10 07:21:24 +0000
commitdc05a08337cde5e588f3fd2351327569d198c859 (patch)
tree43fc393f5d57a4d2d593806f08f3136400bdeed8 /contrib/skyview.php
parent5aadfa1be2e3943d1d988fcf7d3709e21b7951f7 (diff)
downloadgpsd-dc05a08337cde5e588f3fd2351327569d198c859.tar.gz
Clamp satellite positions here too.
Diffstat (limited to 'contrib/skyview.php')
-rwxr-xr-xcontrib/skyview.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/skyview.php b/contrib/skyview.php
index 61fefd70..58efd99a 100755
--- a/contrib/skyview.php
+++ b/contrib/skyview.php
@@ -148,7 +148,8 @@ function azel2xy($az, $el, $sz){
function cellplot($im, $sz, $C, $cellsize, $e){
list($sv, $el, $az, $snr, $u) = $e;
- if ((0 == $sv) || (0 == $az + $el + $snr))
+ if ((0 == $sv) || (0 == $az + $el + $snr) ||
+ ($az < 0) || ($el < 0))
return;
$color = $C['brightgreen'];