+06Dec98========================================================================
+1. Fixed DXBearing::is_qra so that it correctly detects full QRA locators
+2. Added a QRA locator thing to sh/heading so that if the 'prefix' looks like
+a locator it will print the bearing and distance to it (as well as doing the
+normal sh/heading on a prefix thing).
+05Dec98========================================================================
+1. Added sh/heading and QRA locator calculation stuff
04Dec98========================================================================
1. Started Changes file
2. Added load/cmd_cache.pl to clear cmd cache shortcuts (use this if cluster.pl
#
-# show the dxcc number for each callsign or prefix entered
+# show the heading and distance for each callsign or prefix entered
#
# $Id$
#
}
foreach $l (@list) {
- my @ans = Prefix::extract($l);
- next if !@ans;
- my $pre = shift @ans;
- my $a;
- foreach $a (@ans) {
- my ($b, $dx) = DXBearing::bdist($lat, $long, $a->{lat}, $a->{long});
- my ($r, $rdx) = DXBearing::bdist($a->{lat}, $a->{long}, $lat, $long);
- push @out, sprintf "%-9s (%s, %s) Bearing: %.0f Recip: %.0f %.0fKm %.0fMi", uc $l, $pre, $a->name(), $b, $r, $dx, $dx * 0.62133785;
- $l = "";
- }
+ # prefixes --->
+ my @ans = Prefix::extract($l);
+ next if !@ans;
+ my $pre = shift @ans;
+ my $a;
+ foreach $a (@ans) {
+ my ($b, $dx) = DXBearing::bdist($lat, $long, $a->{lat}, $a->{long});
+ my ($r, $rdx) = DXBearing::bdist($a->{lat}, $a->{long}, $lat, $long);
+ push @out, sprintf "%-9s (%s, %s) Bearing: %.0f Recip: %.0f %.0fKm %.0fMi", uc $l, $pre, $a->name(), $b, $r, $dx, $dx * 0.62133785;
+ $l = "";
+ }
}
return (1, @out);