+17Dec04=======================================================================
+1. add undocumented special command for VE7CC.
10Dec04=======================================================================
1. Included fixes sent in by David, N9KT for the new DB0SDX site.
2. removed redundant "rm *bys" and "rm *cys" from Spot::init().
--- /dev/null
+#
+# set the ve7cc output flag
+#
+# Copyright (c) 2000 - Dirk Koopman
+#
+# $Id$
+#
+
+my ($self, $line) = @_;
+my @args = split /\s+/, $line;
+my $call;
+my @out;
+
+return (0, $self->msg('e5')) unless $self->isa('DXCommandmode');
+$self->ve7cc(1);
+push @out, $self->msg('ok');
+return (1, @out);
--- /dev/null
+#
+# set the ve7cc output flag
+#
+# Copyright (c) 2000 - Dirk Koopman
+#
+# $Id$
+#
+
+my ($self, $line) = @_;
+my @args = split /\s+/, $line;
+my $call;
+my @out;
+
+return (0, $self->msg('e5')) unless $self->isa('DXCommandmode');
+$self->ve7cc(0);
+push @out, $self->msg('ok');
+return (1, @out);
build => '1,Node Build',
verified => '9,Verified?,yesno',
newroute => '1,New Style Routing,yesno',
+ ve7cc => '0,VE7CC program special,yesno',
);
use vars qw($VERSION $BRANCH);
use Net::Telnet;
use QSL;
use DB_File;
+use VE7CC;
use strict;
use vars qw(%Cache %cmd_cache $errstr %aliases $scriptbase $maxerrors %nothereslug $maxbadcount);
my $self = shift;
my $line = shift;
my $isolate = shift;
+ return unless $self->{dx};
+
my ($filter, $hops);
- return unless $self->{dx};
-
if ($self->{spotsfilter}) {
($filter, $hops) = $self->{spotsfilter}->it(@_ );
return unless $filter;
}
dbg('spot: "' . join('","', @_) . '"') if isdbg('dxspot');
-
- my $buf = $self->format_dx_spot(@_);
- $buf .= "\a\a" if $self->{beep};
- $buf =~ s/\%5E/^/g;
+
+ my $buf;
+ if ($self->{ve7cc}) {
+ $buf = VE7CC::dx_spot($self, @_);
+ } else {
+ $buf = $self->format_dx_spot(@_);
+ $buf .= "\a\a" if $self->{beep};
+ $buf =~ s/\%5E/^/g;
+ }
+
$self->local_send('X', $buf);
}
sub add
{
- my $buf = join("\^", @_);
+ my $buf = join('^', @_);
$fp->writeunix($_[2], $buf);
$totalspots++;
if ($_[0] <= 30000) {
--- /dev/null
+#
+# VE7CC variations for DXCommandmode
+#
+# This is done this way because a) there aren't very many and
+# b) because it isn't easy to reliably rebless the object in
+# flight (as it were).
+#
+# This could change.
+#
+
+package VE7CC;
+
+use DXVars;
+use DXDebug;
+use DXUtil;
+use Julian;
+use Prefix;
+
+use strict;
+
+use vars qw($VERSION $BRANCH);
+$VERSION = sprintf( "%d.%03d", q$Revision$ =~ /(\d+)\.(\d+)/ );
+$BRANCH = sprintf( "%d.%03d", q$Revision$ =~ /\d+\.\d+\.(\d+)\.(\d+)/ || (0,0));
+$main::build += $VERSION;
+$main::branch += $BRANCH;
+
+sub dx_spot
+{
+ my $self = shift; # this may be useful some day
+ my $freq = shift;
+ my $spotted = shift;
+ my $t = shift;
+
+ # remove interface callsign;
+ pop;
+
+ return sprintf("CC11^%0.1f^%s^", $freq, $spotted) . join('^', cldate($t), ztime($t), @_);
+}
+
+1;