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