summaryrefslogtreecommitdiff
path: root/gpsd.php
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2008-02-10 19:26:16 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2008-02-10 19:26:16 +0000
commit0a758c5ea583eb113940bb7b872500d346706aa5 (patch)
treef6d09c4faaa1d9332e46cbe64777487b24d3150a /gpsd.php
parentcd89a454740936e15e836ffc3ca118674589aef4 (diff)
downloadgpsd-0a758c5ea583eb113940bb7b872500d346706aa5.tar.gz
got elevation and azimuth backwards... again.
Diffstat (limited to 'gpsd.php')
-rw-r--r--gpsd.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/gpsd.php b/gpsd.php
index b998d356..1e6333a7 100644
--- a/gpsd.php
+++ b/gpsd.php
@@ -145,7 +145,7 @@ function azel2xy($az, $el, $sz){
}
function splot($im, $sz, $C, $e){
- list($sv, $az, $el, $snr, $u) = $e;
+ list($sv, $el, $az, $snr, $u) = $e;
if ((0 == $sv) || (0 == $az + $el + $snr) ||
($az < 0) || ($el < 0))
@@ -163,7 +163,7 @@ function splot($im, $sz, $C, $e){
if ($snr < 10)
$color = $C['black'];
- list($x, $y) = azel2xy($el, $az, $sz);
+ list($x, $y) = azel2xy($az, $el, $sz);
$r = 12;
if (isset($_GET['sz']) && ($_GET['sz'] == 'small'))