mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-08-04 15:12:25 -04:00
Don't call peakup if we're too close to the edge.
This commit is contained in:
parent
376f0d1e53
commit
993705d581
@ -96,8 +96,14 @@ subroutine sfox_sync(iwave,fsample,isync,f,t)
|
||||
ipk=ipeak(1)-1+ia
|
||||
jpk=ipeak(2)-1+lag1
|
||||
|
||||
dxi=0.
|
||||
dxj=0.
|
||||
if(ipk.gt.ia .and. ipk.lt.ib) then
|
||||
call peakup(ccf(ipk-1,jpk),ccf(ipk,jpk),ccf(ipk+1,jpk),dxi)
|
||||
endif
|
||||
if(jpk.gt.lag1 .and. jpk.lt.lag2) then
|
||||
call peakup(ccf(ipk,jpk-1),ccf(ipk,jpk),ccf(ipk,jpk+1),dxj)
|
||||
endif
|
||||
|
||||
f=ibest*df + bw/2 + dxi*df
|
||||
t=lagbest*dtstep + dxj*dtstep
|
||||
|
Loading…
x
Reference in New Issue
Block a user