Update QRA test programs.

This commit is contained in:
Joe Taylor 2020-10-14 11:49:27 -04:00
parent ad70cdeb8a
commit 4bf5f23c54
4 changed files with 24 additions and 7 deletions

View File

@ -37,6 +37,7 @@ subroutine qra64a(dd,npts,nf1,nf2,nfqso,ntol,mode64,minsync,ndepth, &
nFadingModel=1
maxaptype=4
if(iand(ndepth,64).ne.0) maxaptype=5
call qra_params(ndepth,maxaptype,minsync)
if(nc1.ne.nc1z .or. nc2.ne.nc2z .or. ng2.ne.ng2z .or. &
maxaptype.ne.maxaptypez) then
do naptype=0,maxaptype
@ -93,3 +94,18 @@ subroutine qra64a(dd,npts,nf1,nf2,nfqso,ntol,mode64,minsync,ndepth, &
return
end subroutine qra64a
subroutine qra_params(ndepth,maxaptype,minsync)
! If file qra_params is present in CWD, read decoding params from it.
logical ex
inquire(file='qra_params',exist=ex)
if(ex) then
open(29,file='qra_params',status='old')
read(29,*) ndepth,maxaptype,minsync
close(29)
endif
return
end subroutine qra_params

View File

@ -96,6 +96,8 @@ contains
! if(ndepth.eq.2) maxaptype=3
! if(ndepth.eq.3) maxaptype=5
if(ndepth.ge.2) maxaptype=5 !###
minsync=-2
call qra_params(ndepth,maxaptype,minsync)
if(nc1.ne.nc1z .or. nc2.ne.nc2z .or. ng2.ne.ng2z .or. &
maxaptype.ne.maxaptypez) then
@ -120,7 +122,6 @@ contains
fac=1.0/32767.0
dd=fac*iwave
minsync=-2
nmode=65
call ana64(dd,npts,c00)

View File

@ -45,7 +45,7 @@ program test_qra64
! 1 2 3 4 5 6 7
! 12345678901234567890123456789012345678901234567890123456789012345678901'
cmd1='qra64sim "K1ABC W9XYZ EN37 " A 1 0.2 0.00 100 -20 > junk0'
cmd1='qra64sim "K1ABC W9XYZ EN37 " A 1 0.2 0.00 100 F -20 > junk0'
cmd2='jt9 -q -L 300 -H 3000 -f 1000 -d 3 -b A *.wav > junk'
@ -74,7 +74,7 @@ program test_qra64
ndecodes=0
nfalse=0
nretcode=0
write(cmd1(55:57),'(i3)') nsnr
write(cmd1(57:59),'(i3)') nsnr
call system(cmd1)
call sec0(0,tdec)
call system(cmd2)

View File

@ -1,6 +1,6 @@
program test_qra65
character*71 cmd1,cmd2,line
character*73 cmd1,cmd2,line
character*22 msg
character*8 arg
character*1 csubmode
@ -60,8 +60,8 @@ program test_qra65
tsym=1.0/baud
! 1 2 3 4 5 6 7
! 12345678901234567890123456789012345678901234567890123456789012345678901'
cmd1='qra65sim "K1ABC W9XYZ EN37 " A 1500 5.0 0.0 60 100 -10 > junk0'
! 1234567890123456789012345678901234567890123456789012345678901234567890123'
cmd1='qra65sim "K1ABC W9XYZ EN37 " A 1500 5.0 0.0 60 100 F -10 > junk0'
cmd2='jt9 -3 -p 15 -L 300 -H 3000 -d 3 -b A *.wav > junk'
write(cmd1(10:33),'(a)') '"'//msg//'"'
@ -90,7 +90,7 @@ program test_qra65
nfalse=0
nretcode=0
navg=0
write(cmd1(61:63),'(i3)') nsnr
write(cmd1(63:65),'(i3)') nsnr
call system(cmd1)
call sec0(0,tdec)
call system(cmd2)