@@ -288,20 +288,23 @@ perspective as sampling is at exactly the Nyquist rate. I have not yet tested
288
288
correlation with real hardware but I can envisage issues if the timing of the
289
289
received signal is such that state changes in the expected signal happen to
290
290
occur close to the sample time. To avoid uncertainty caused by signal timing
291
- jitter it is likely that sampling needs t be done at N* Nyquist. Two solutions
291
+ jitter it is likely that sampling should be done at N* Nyquist. Two solutions
292
292
to processing the signal suggest themselves.
293
293
294
294
The discussion below assumes 2* Nyquist.
295
295
296
- One approach is to double the length of the coefficient array repeating each
297
- coefficient so that the time sequence in the coefficient array matches that in
298
- the sample array. Potentially the correlation maximum will occur on two
299
- successive samples but in terms of time this does not imply a loss of
300
- precision.
296
+ One approach is to double the length of the coefficient (expected signal) array
297
+ repeating each entry so that the time sequence in the coefficient array matches
298
+ that in the sample array. Potentially the correlation maximum will occur on two
299
+ successive samples but in terms of time (because of the sample rate) this does
300
+ not imply a loss of precision.
301
301
302
302
The other is to first run a decimation filter to reduce the rate to Nyquist. A
303
- decimation filter will introduce a time delay. However if this is applied to
304
- both channels the relative phase will be unaffected.
303
+ decimation filter will introduce a time delay, but with a linear phase filter
304
+ as produced by TFilter this is fixed and frequency-independent. Decimation is
305
+ likely to produce the best result in the presence of noise because it is a
306
+ filter: a suitable low pass design will remove in-band noise and aliased out of
307
+ band frequencies.
305
308
306
309
In terms of performance, if sampling at Nyquist takes time T the first approach
307
310
will take 2T. The second will take T + Tf where Tf is the time to do the FIR
0 commit comments