|
From: | Joop Stakenborg |
Subject: | Re: [Xlog-discussion] xlog-0.9.2pre2, some errors fixed |
Date: | Sun, 18 Apr 2004 16:11:07 +0200 |
User-agent: | Mozilla Thunderbird 0.5 (X11/20040306) |
Andrea Borgia wrote:
Andrea Borgia wrote:Hope I am not too late for this: my own locator is JN54QL and entering RE66HL gives a distance of 1499km instead of 18503km. Considering New Zealand still is downunder ;-) , what gives?(System is Debian/testing, fully up-to-date)Replying to myself to add that also xlog 0.8 built on "woody" has the same problem.B73, Andrea.
Thanks Andrea,locator calculations were derived from the wwl package. It turns out wwl produces negative results sometimes:
$ wwl jn54ql re66hl qrb: -1499 kilometers, azimuth: 93 degreesWe can simple add half the circumference of the earth, which gives us the correct number, so in wwl.c we can add a line like:
if (p < 0) p = 20002 + p; line 217 in wwl.c Regards, Joop PG4I
[Prev in Thread] | Current Thread | [Next in Thread] |