mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-12 07:06:17 -05:00
More cleanup
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@2640 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
e2e3e98e06
commit
6c1dfbed0e
@ -3,45 +3,39 @@ subroutine spec9(c0,npts8,nsps,f0a,lagpk,fpk,i1SoftSymbols)
|
|||||||
parameter (MAXFFT=31500)
|
parameter (MAXFFT=31500)
|
||||||
complex c0(0:npts8-1)
|
complex c0(0:npts8-1)
|
||||||
real s(0:MAXFFT-1)
|
real s(0:MAXFFT-1)
|
||||||
real ssym(0:8,184)
|
real ssym(0:8,85)
|
||||||
real ssymg(0:8,184)
|
|
||||||
complex c(0:MAXFFT-1)
|
complex c(0:MAXFFT-1)
|
||||||
integer*1 i1SoftSymbolsScrambled(207)
|
integer*1 i1SoftSymbolsScrambled(207)
|
||||||
integer*1 i1SoftSymbols(207)
|
integer*1 i1SoftSymbols(207)
|
||||||
integer ibit(207)
|
integer isync(85) !Sync vector
|
||||||
|
data isync/ &
|
||||||
integer*1 t1(13) !72 bits and zero tail as 8-bit bytes
|
1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1,0,0,0,0, &
|
||||||
integer*4 t4(69) !Symbols from t5, values 0-7
|
1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,1,0, &
|
||||||
integer*4 mettab(0:255,0:1)
|
0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0, &
|
||||||
integer*1 tmp(72)
|
0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0, &
|
||||||
character*22 msg
|
1,0,0,0,1/
|
||||||
|
|
||||||
integer isync(85)
|
|
||||||
integer ii(16) !Locations of sync symbols
|
integer ii(16) !Locations of sync symbols
|
||||||
data ii/1,6,11,16,21,26,31,39,45,51,57,63,69,75,81,85/
|
data ii/1,6,11,16,21,26,31,39,45,51,57,63,69,75,81,85/
|
||||||
integer ig(0:7)
|
integer ig(0:7)
|
||||||
data ig/0,1,3,2,7,6,4,5/
|
data ig/0,1,3,2,7,6,4,5/ !Gray code removal
|
||||||
! data ig/0,1,3,2,6,7,5,4/
|
save
|
||||||
|
|
||||||
isync=0
|
nsps8=nsps/8
|
||||||
do i=1,16
|
|
||||||
isync(ii(i))=1
|
|
||||||
enddo
|
|
||||||
|
|
||||||
idt=-400
|
idt=-400
|
||||||
idf=0.
|
idf=0.
|
||||||
fshift=fpk-f0a + 0.1*idf
|
fshift=fpk-f0a + 0.1*idf
|
||||||
twopi=8.0*atan(1.0)
|
twopi=8.0*atan(1.0)
|
||||||
dphi=twopi*fshift/1500.0
|
dphi=twopi*fshift/1500.0
|
||||||
nsps8=nsps/8
|
|
||||||
nfft=nsps8
|
nfft=nsps8
|
||||||
df=1500.0/nfft
|
|
||||||
s=0.
|
s=0.
|
||||||
istart=lagpk*nsps8 + idt
|
! istart=lagpk*nsps8 + idt
|
||||||
|
istart=1520
|
||||||
nsym=min((npts8-istart)/nsps8,85)
|
nsym=min((npts8-istart)/nsps8,85)
|
||||||
|
|
||||||
do j=0,nsym-1
|
do j=1,nsym
|
||||||
ia=j*nsps8 + istart
|
ia=(j-1)*nsps8 + istart
|
||||||
ib=ia+nsps8-1
|
ib=ia+nsps8-1
|
||||||
c(0:nfft-1)=c0(ia:ib)
|
c(0:nfft-1)=c0(ia:ib)
|
||||||
|
|
||||||
@ -54,19 +48,11 @@ subroutine spec9(c0,npts8,nsps,f0a,lagpk,fpk,i1SoftSymbols)
|
|||||||
call four2a(c,nfft,1,-1,1)
|
call four2a(c,nfft,1,-1,1)
|
||||||
do i=0,nfft-1
|
do i=0,nfft-1
|
||||||
sx=real(c(i))**2 + aimag(c(i))**2
|
sx=real(c(i))**2 + aimag(c(i))**2
|
||||||
if(i.le.8) ssym(i,1+j)=sx
|
if(i.ge.1 .and. i.le.8) ssym(ig(i-1)+1,j)=sx
|
||||||
s(i)=s(i) + sx
|
s(i)=s(i) + sx
|
||||||
enddo
|
enddo
|
||||||
enddo
|
enddo
|
||||||
|
|
||||||
ssymg=ssym
|
|
||||||
do j=1,nsym
|
|
||||||
ssym(0,j)=ssymg(0,j)
|
|
||||||
do i=0,7
|
|
||||||
ssym(ig(i)+1,j)=ssymg(i+1,j)
|
|
||||||
enddo
|
|
||||||
enddo
|
|
||||||
|
|
||||||
m0=3
|
m0=3
|
||||||
ntones=8
|
ntones=8
|
||||||
k=0
|
k=0
|
||||||
|
@ -35,13 +35,17 @@ subroutine sync9(ss,tstep,f0a,df3,lagpk,fpk)
|
|||||||
|
|
||||||
fpk=f0a + (npk-1)*df3
|
fpk=f0a + (npk-1)*df3
|
||||||
|
|
||||||
do lag=-lagmax,lagmax
|
! This loop for tests only:
|
||||||
sum=0.
|
! do lag=-lagmax,lagmax
|
||||||
do i=1,16
|
! sum=0.
|
||||||
k=ii(i) + lag
|
! do i=1,16
|
||||||
if(k.ge.1) sum=sum + ss(k,npk)
|
! k=ii(i) + lag
|
||||||
enddo
|
! if(k.ge.1) sum=sum + ss(k,npk)
|
||||||
enddo
|
! enddo
|
||||||
|
! write(71,3001) lag,sum
|
||||||
|
!3001 format(i8,f12.3)
|
||||||
|
! enddo
|
||||||
|
! flush(71)
|
||||||
|
|
||||||
return
|
return
|
||||||
end subroutine sync9
|
end subroutine sync9
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
//-------------------------------------------------------------- MainWindow
|
//------------------------------------------------------------- MainWindow
|
||||||
#include "mainwindow.h"
|
#include "mainwindow.h"
|
||||||
#include "ui_mainwindow.h"
|
#include "ui_mainwindow.h"
|
||||||
#include "devsetup.h"
|
#include "devsetup.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user