mirror of
				https://github.com/saitohirga/WSJT-X.git
				synced 2025-10-30 12:30:23 -04:00 
			
		
		
		
	Merge branch 'develop' of bitbucket.org:k1jt/wsjtx into develop
This commit is contained in:
		
						commit
						b847d6b32b
					
				| @ -84,35 +84,55 @@ program wspr4d | |||||||
|       do icand=1,ncand |       do icand=1,ncand | ||||||
|          fc0=candidates(icand,1) |          fc0=candidates(icand,1) | ||||||
|          xsnr=candidates(icand,2) |          xsnr=candidates(icand,2) | ||||||
|          xmax=-1e32 | 
 | ||||||
|  |          do isync=0,1 | ||||||
|  | 
 | ||||||
|  |             del=1.5*fs/416.0 | ||||||
|  |             if(isync.eq.0) then | ||||||
|  |                fc1=fc0-del | ||||||
|  |                is0=375 | ||||||
|  |                ishw=300 | ||||||
|  |                dis=50 | ||||||
|  |                ifhw=10 | ||||||
|  |                df=.1 | ||||||
|  |             else if(isync.eq.1) then | ||||||
|  |                fc1=fc2 | ||||||
|  |                is0=isbest | ||||||
|  |                ishw=100 | ||||||
|  |                dis=10 | ||||||
|  |                ifhw=10 | ||||||
|  |                df=.02 | ||||||
|  |             endif | ||||||
|             smax=0.0 |             smax=0.0 | ||||||
|          fc1=fc0-1.50*(fs/416.0) |             do if=-ifhw,ifhw | ||||||
|          do if=-20,20 |                fc=fc1+df*if | ||||||
|             df=if*0.04 |                do istart=max(1,is0-ishw),is0+ishw,dis | ||||||
|             fc=fc1+df |                   call coherent_sync(c2,istart,fc,1,sync,data_aided,kstart,tones) | ||||||
|             do is=300,450,5 |  | ||||||
|                call coherent_sync(c2,is,fc,1,sync) |  | ||||||
|                   if(sync.gt.smax) then |                   if(sync.gt.smax) then | ||||||
|                      fc2=fc |                      fc2=fc | ||||||
|                   isbest=is |                      isbest=istart | ||||||
|                      smax=sync |                      smax=sync | ||||||
|                   endif |                   endif | ||||||
|                enddo |                enddo | ||||||
|             enddo |             enddo | ||||||
|          write(*,*) ifile,icand,-1.50*(fs/416),fc1,fc2,isbest,smax |             write(*,*) ifile,icand,isync,fc1+del,fc2+del,isbest,smax | ||||||
|          istart=isbest |          enddo | ||||||
|          fcest=fc2 | 
 | ||||||
| ! |          if(smax .lt. 100.0 ) cycle | ||||||
| !******** genie sync |          idecoded=0 | ||||||
| !         istart=375 |          do ijitter=0,4 | ||||||
| !         fcest=0.0-1.50*(fs/416) |             if(idecoded.eq.1) exit | ||||||
| ! |             if(ijitter.eq.1) ioffset=20 | ||||||
|          cframe=c2(istart:istart+103*416-1) |             if(ijitter.eq.2) ioffset=-20 | ||||||
|          call downsample4(cframe,fcest,cd) |             if(ijitter.eq.3) ioffset=40 | ||||||
|  |             if(ijitter.eq.4) ioffset=-40 | ||||||
|  |             is0=isbest+ioffset | ||||||
|  |             if(is0.lt.0) cycle | ||||||
|  |             cframe=c2(is0:is0+103*416-1) | ||||||
|  |             call downsample4(cframe,fc2,cd) | ||||||
|             s2=sum(cd*conjg(cd))/(16*103) |             s2=sum(cd*conjg(cd))/(16*103) | ||||||
|             cd=cd/sqrt(s2) |             cd=cd/sqrt(s2) | ||||||
|             call get_wspr4_bitmetrics(cd,bitmetrics,badsync) |             call get_wspr4_bitmetrics(cd,bitmetrics,badsync) | ||||||
| !          if(badsync) cycle |  | ||||||
| 
 | 
 | ||||||
|             hbits=0 |             hbits=0 | ||||||
|             where(bitmetrics(:,1).ge.0) hbits=1 |             where(bitmetrics(:,1).ge.0) hbits=1 | ||||||
| @ -145,6 +165,7 @@ program wspr4d | |||||||
|                if(itry.eq.3) llr=llrc |                if(itry.eq.3) llr=llrc | ||||||
|                nhardbp=0 |                nhardbp=0 | ||||||
|                nhardosd=0 |                nhardosd=0 | ||||||
|  |                dmin=0.0 | ||||||
|                call bpdecode174_74(llr,apmask,max_iterations,message,cw,nhardbp,niterations) |                call bpdecode174_74(llr,apmask,max_iterations,message,cw,nhardbp,niterations) | ||||||
|                Keff=64 |                Keff=64 | ||||||
|                if(nhardbp.lt.0) call osd174_74(llr,Keff,apmask,5,message,cw,nhardosd,dmin) |                if(nhardbp.lt.0) call osd174_74(llr,Keff,apmask,5,message,cw,nhardosd,dmin) | ||||||
| @ -153,15 +174,17 @@ program wspr4d | |||||||
|                   c77(51:77)='000000000000000000000110000' |                   c77(51:77)='000000000000000000000110000' | ||||||
|                   call unpack77(c77,0,msg,unpk77_success) |                   call unpack77(c77,0,msg,unpk77_success) | ||||||
|                   if(unpk77_success .and. index(msg,'K9AN').gt.0) then |                   if(unpk77_success .and. index(msg,'K9AN').gt.0) then | ||||||
|  |                      idecoded=1 | ||||||
|                      ngood=ngood+1 |                      ngood=ngood+1 | ||||||
|                   write(*,1100) ifile,fc0,xsnr,msg(1:14),itry,nhardbp,nhardosd,dmin |                      write(*,1100) ifile,xsnr,isbest/375.0-1.0,1500.0+fc2+del,msg(1:14),itry,nhardbp,nhardosd,dmin,ijitter | ||||||
| 1100              format(i5,2x,f8.2,2x,f8.2,2x,a14,i4,i4,i4,f7.2) | 1100                 format(i5,2x,f6.1,2x,f6.2,2x,f8.2,2x,a14,i4,i4,i4,f7.2,i6) | ||||||
|                      exit |                      exit | ||||||
|                   else |                   else | ||||||
|                      cycle |                      cycle | ||||||
|                   endif |                   endif | ||||||
|                endif |                endif | ||||||
|          enddo |             enddo  ! metrics | ||||||
|  |          enddo  ! istart jitter | ||||||
|       enddo !candidate list |       enddo !candidate list | ||||||
|    enddo !files |    enddo !files | ||||||
|    nfiles=nargs-iarg+1 |    nfiles=nargs-iarg+1 | ||||||
| @ -269,7 +292,7 @@ subroutine coherent_sync(cd0,i0,f0,itwk,sync) | |||||||
|       if(npts.le.32) then |       if(npts.le.32) then | ||||||
|          z4=0. |          z4=0. | ||||||
|       else |       else | ||||||
|          z4=sum(cd0(i4:i4+2*npts-1)*conjg(csync2(1:npts))) |          z4=sum(cd0(i4:i4+npts-1)*conjg(csync2(1:npts))) | ||||||
|       endif |       endif | ||||||
|    endif |    endif | ||||||
| 
 | 
 | ||||||
| @ -352,7 +375,7 @@ subroutine getcandidate4(c,npts,fs,fa,fb,ncand,candidates) | |||||||
|          (bigspec(i).gt.1.15).and.ncand.lt.100) then |          (bigspec(i).gt.1.15).and.ncand.lt.100) then | ||||||
|          ncand=ncand+1 |          ncand=ncand+1 | ||||||
|          candidates(ncand,1)=df*(i-NH2) |          candidates(ncand,1)=df*(i-NH2) | ||||||
|          candidates(ncand,2)=10*log10(bigspec(i)-1)-26.0 |          candidates(ncand,2)=10*log10(bigspec(i)-1)-28.5 | ||||||
|       endif |       endif | ||||||
|    enddo |    enddo | ||||||
|    return |    return | ||||||
|  | |||||||
| @ -65,7 +65,7 @@ program wspr4sim | |||||||
|   endif |   endif | ||||||
|   write(*,*)  |   write(*,*)  | ||||||
|   write(*,'(a17)') 'Channel symbols: ' |   write(*,'(a17)') 'Channel symbols: ' | ||||||
|   write(*,'(76i1)') itone |   write(*,'(10i1)') itone | ||||||
|   write(*,*)   |   write(*,*)   | ||||||
| 
 | 
 | ||||||
|   call sgran() |   call sgran() | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user