summaryrefslogtreecommitdiff
path: root/lib/genwspr.f90
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2026-04-07 19:02:45 +0200
committerChristoph Berg <myon@debian.org>2026-04-07 19:02:45 +0200
commitf647d78463c1250ce9c99af664615fafccf5e959 (patch)
tree5b00428cef68aef1c9d407e2d4535687422419b6 /lib/genwspr.f90
parent0a13f1fdb9928b6d012569dd65f7f6ef18fac2f8 (diff)
New upstream version 3.0.0upstream/3.0.0
Diffstat (limited to 'lib/genwspr.f90')
-rw-r--r--[-rwxr-xr-x]lib/genwspr.f9060
1 files changed, 30 insertions, 30 deletions
diff --git a/lib/genwspr.f90 b/lib/genwspr.f90
index c31cb8a3..d1d5183b 100755..100644
--- a/lib/genwspr.f90
+++ b/lib/genwspr.f90
@@ -1,30 +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
+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