summaryrefslogtreecommitdiff
path: root/lib/genwspr.f90
diff options
context:
space:
mode:
authorhibby <d@vehibberd.com>2018-02-16 15:17:14 +0000
committerhibby <d@vehibberd.com>2018-02-16 15:17:14 +0000
commit37f727ac0746fd85504aa46c1f023c09b3eff33a (patch)
treec8a7ce04545040a8f161ba279528730bd9a3e6ab /lib/genwspr.f90
parentd63dd8d081a6fcd0715cd13f26df59fb831769d2 (diff)
New upstream version 1.8.0+repackupstream/1.8.0+repack
Diffstat (limited to 'lib/genwspr.f90')
-rw-r--r--lib/genwspr.f9030
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/genwspr.f90 b/lib/genwspr.f90
new file mode 100644
index 00000000..d1d5183b
--- /dev/null
+++ b/lib/genwspr.f90
@@ -0,0 +1,30 @@
+subroutine genwspr(message,msgsent,itone)
+! Encode a WSPR message and generate the array of channel symbols.
+
+ character*22 message,msgsent
+ parameter (MAXSYM=176)
+ integer*1 symbol(MAXSYM)
+ integer*1 data0(11)
+ integer*4 itone(162)
+ integer npr3(162)
+ data npr3/ &
+ 1,1,0,0,0,0,0,0,1,0,0,0,1,1,1,0,0,0,1,0, &
+ 0,1,0,1,1,1,1,0,0,0,0,0,0,0,1,0,0,1,0,1, &
+ 0,0,0,0,0,0,1,0,1,1,0,0,1,1,0,1,0,0,0,1, &
+ 1,0,1,0,0,0,0,1,1,0,1,0,1,0,1,0,1,0,0,1, &
+ 0,0,1,0,1,1,0,0,0,1,1,0,1,0,1,0,0,0,1,0, &
+ 0,0,0,0,1,0,0,1,0,0,1,1,1,0,1,1,0,0,1,1, &
+ 0,1,0,0,0,1,1,1,0,0,0,0,0,1,0,1,0,0,1,1, &
+ 0,0,0,0,0,0,0,1,1,0,1,0,1,1,0,0,0,1,1,0, &
+ 0,0/
+
+ call wqencode(message,ntype,data0) !Source encoding
+ call encode232(data0,162,symbol) !Convolutional encoding
+ call inter_wspr(symbol,1) !Interleaving
+ do i=1,162
+ itone(i)=npr3(i) + 2*symbol(i)
+ enddo
+ msgsent=message !### To be fixed... ?? ###
+
+ return
+end subroutine genwspr