diff options
| author | Christoph Berg <myon@debian.org> | 2025-09-16 12:37:12 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2025-09-16 12:57:29 +0200 |
| commit | 5a4967c577ad245a2117b7b2f71c13b1212fe285 (patch) | |
| tree | 4d09343cfe757239895a0dd9b399242d2a07d7c2 /lib/genwspr.f90 | |
| parent | 23c903a09fb1d73fd20b50323cd80cfb3aba8799 (diff) | |
Merge 2.7 changes, I had uploaded -1 from the wrong branch.debian/3.0.0_rc1+repack-2
Diffstat (limited to 'lib/genwspr.f90')
| -rwxr-xr-x | lib/genwspr.f90 | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/lib/genwspr.f90 b/lib/genwspr.f90 index d1d5183b..c31cb8a3 100755 --- 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
|
