mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-22 20:28:42 -05:00
c407bc00f9
This reverts commit fb6fcdf35e
.
52 lines
1.3 KiB
Fortran
52 lines
1.3 KiB
Fortran
subroutine q65_set_list(mycall,hiscall,hisgrid,codewords,ncw)
|
|
|
|
parameter (MAX_NCW=206)
|
|
character*12 mycall,hiscall
|
|
character*6 hisgrid
|
|
character*37 msg0,msg,msgsent
|
|
integer codewords(63,MAX_NCW)
|
|
integer itone(85)
|
|
integer isync(22)
|
|
data isync/1,9,12,13,15,22,23,26,27,33,35,38,46,50,55,60,62,66,69,74,76,85/
|
|
|
|
ncw=0
|
|
if(hiscall(1:1).eq. ' ') return
|
|
|
|
ncw=MAX_NCW
|
|
msg0=trim(mycall)//' '//trim(hiscall)
|
|
j0=len(trim(msg0))+2
|
|
do i=1,ncw
|
|
msg=msg0
|
|
if(i.eq.2) msg(j0:j0+2)='RRR'
|
|
if(i.eq.3) msg(j0:j0+3)='RR73'
|
|
if(i.eq.4) msg(j0:j0+1)='73'
|
|
if(i.eq.5) msg='CQ '//trim(hiscall)//' '//hisgrid(1:4)
|
|
if(i.eq.6) msg(j0:j0+3)=hisgrid(1:4)
|
|
if(i.ge.7 .and. i.le.206) then
|
|
isnr = -50 + (i-7)/2
|
|
if(iand(i,1).eq.1) then
|
|
write(msg(j0:j0+2),'(i3.2)') isnr
|
|
if(msg(j0:j0).eq.' ') msg(j0:j0)='+'
|
|
else
|
|
write(msg(j0:j0+3),'("R",i3.2)') isnr
|
|
if(msg(j0+1:j0+1).eq.' ') msg(j0+1:j0+1)='+'
|
|
endif
|
|
endif
|
|
call genq65(msg,0,msgsent,itone,i3,n3)
|
|
i0=1
|
|
j=0
|
|
do k=1,85
|
|
if(k.eq.isync(i0)) then
|
|
i0=i0+1
|
|
cycle
|
|
endif
|
|
j=j+1
|
|
codewords(j,i)=itone(k) - 1
|
|
enddo
|
|
! write(71,3001) i,isnr,codewords(1:13,i),trim(msg)
|
|
!3001 format(i3,2x,i3.2,2x,13i3,2x,a)
|
|
enddo
|
|
|
|
return
|
|
end subroutine q65_set_list
|