Add utility program ft4code.

This commit is contained in:
Joe Taylor
2019-12-18 10:02:00 -05:00
parent 7d8cdd200c
commit 3397bf49b4
4 changed files with 163 additions and 3 deletions
+10 -3
View File
@@ -12,7 +12,7 @@ program ft8code
character*9 comment
character bad*1,msgtype*18
integer itone(NN)
integer*1 msgbits(77)
integer*1 msgbits(77),codeword(174)
! Get command-line argument(s)
nargs=iargc()
@@ -45,6 +45,7 @@ program ft8code
i3=-1
n3=-1
call genft8(msg,i3,n3,msgsent,msgbits,itone)
call encode174_91(msgbits,codeword)
msgtype=""
if(i3.eq.0) then
if(n3.eq.0) msgtype="Free text"
@@ -75,9 +76,15 @@ program ft8code
if(nmsg.eq.1) then
write(*,1030) msgbits
1030 format(/'Message bits: ',/77i1)
1030 format(/'Source-encoded message, 77 bits: ',/77i1)
write(*,1031) codeword(78:91)
1031 format(/'14-bit CRC: ',/14i1)
write(*,1032) codeword(92:174)
1032 format(/'83 Parity bits: ',/83i1)
write(*,1034) itone
1034 format(/'Channel symbols (tones):'/79i1)
1034 format(/'Channel symbols (79 tones):'/ &
' Sync ',14x,'Data',15x,'Sync',15x,'Data',15x,'Sync'/ &
7i1,1x,29i1,1x,7i1,1x,29i1,1x,7i1)
endif
999 end program ft8code