From 6d44aa3f580af1ee736b4a260b7d23c7ab4a0d58 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Wed, 11 Sep 2019 00:27:49 +0200 Subject: [PATCH] don't decimate at factor 1 --- csdr.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/csdr.py b/csdr.py index 832d069..ab4688b 100644 --- a/csdr.py +++ b/csdr.py @@ -127,11 +127,10 @@ class dsp(object): if self.fft_compression == "adpcm": chain += ["csdr compress_fft_adpcm_f_u8 {fft_size}"] return chain - chain += [ - "csdr shift_addition_cc --fifo {shift_pipe}", - "csdr fir_decimate_cc {decimation} {ddc_transition_bw} HAMMING", - "csdr bandpass_fir_fft_cc --fifo {bpf_pipe} {bpf_transition_bw} HAMMING", - ] + chain += ["csdr shift_addition_cc --fifo {shift_pipe}"] + if self.decimation > 1: + chain += ["csdr fir_decimate_cc {decimation} {ddc_transition_bw} HAMMING"] + chain += ["csdr bandpass_fir_fft_cc --fifo {bpf_pipe} {bpf_transition_bw} HAMMING"] if self.output.supports_type("smeter"): chain += [ "csdr squelch_and_smeter_cc --fifo {squelch_pipe} --outfifo {smeter_pipe} 5 {smeter_report_every}"