From c3cac092bd79c91614f1073d66d9760e0c746827 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Wed, 30 Jun 2021 23:06:28 +0200 Subject: [PATCH] use new fft functions in csdr++ --- csdr/__init__.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/csdr/__init__.py b/csdr/__init__.py index 22b9583..fbe689f 100644 --- a/csdr/__init__.py +++ b/csdr/__init__.py @@ -110,10 +110,10 @@ class Dsp(DirewolfConfigSubscriber): if which == "fft": chain += [ "csdr++ fft {fft_size} {fft_block_size}", - "csdr logpower_cf -70" + "csdr++ logpower -70" if self.fft_averages == 0 - else "csdr logaveragepower_cf -70 {fft_size} {fft_averages}", - "csdr fft_exchange_sides_ff {fft_size}", + else "csdr++ logaveragepower {fft_size} {fft_averages} --add -70", + "csdr++ fftswap {fft_size}", ] if self.fft_compression == "adpcm": chain += ["csdr compress_fft_adpcm_f_u8 {fft_size}"] @@ -247,10 +247,10 @@ class Dsp(DirewolfConfigSubscriber): if which == "fft": chain += [ "csdr++ fft {secondary_fft_input_size} {secondary_fft_block_size}", - "csdr logpower_cf -70" + "csdr++ logpower -70" if self.fft_averages == 0 - else "csdr logaveragepower_cf -70 {secondary_fft_size} {fft_averages}", - "csdr fft_exchange_sides_ff {secondary_fft_input_size}", + else "csdr++ logaveragepower {secondary_fft_size} {fft_averages} --add -70", + "csdr++ fftswap {secondary_fft_input_size}", ] if self.fft_compression == "adpcm": chain += ["csdr compress_fft_adpcm_f_u8 {secondary_fft_size}"]