From 8c706f7f29b4cfdb7a8f3ff64e2661cf29b32caa Mon Sep 17 00:00:00 2001 From: Steven Franke Date: Sun, 21 Jun 2015 01:48:48 +0000 Subject: [PATCH] Refinements to wsprd_exp signal subtraction function. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@5624 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- lib/wsprd/wsprd_exp.c | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/lib/wsprd/wsprd_exp.c b/lib/wsprd/wsprd_exp.c index 558449f59..77d796dcc 100644 --- a/lib/wsprd/wsprd_exp.c +++ b/lib/wsprd/wsprd_exp.c @@ -389,7 +389,7 @@ void subtract_signal2(double *id, double *qd, long np, float f0, int shift0, float drift0, unsigned char* channel_symbols) { double dt=1.0/375.0, df=375.0/256.0; - int i, j, k, ii; + int i, j, k, ii, nfilt=256; //nfilt must be even number. double pi=4.*atan(1.0),twopidt; double refi[45000],refq[45000]; @@ -429,31 +429,31 @@ void subtract_signal2(double *id, double *qd, long np, // s(t) * conjugate(r(t)) // place signal 1 impulse response width in so that we don't have to deal - // with partial convolutions at the beginning. + // with partial convolutions at the beginning when applying LPF. for (i=0; i<41472; i++) { k=shift0+i; if( (k>0) & (k0) & (k