From db2addd9bc4e5433b20dcd560e1efc8ccdad29a5 Mon Sep 17 00:00:00 2001 From: Javier Arribas Date: Tue, 30 Aug 2022 16:50:38 +0200 Subject: [PATCH] AD936x custom source switch from custom to default baseband filters --- .../signal_source/libs/ad936x_iio_custom.cc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/algorithms/signal_source/libs/ad936x_iio_custom.cc b/src/algorithms/signal_source/libs/ad936x_iio_custom.cc index 3357a59d6..705180ef7 100644 --- a/src/algorithms/signal_source/libs/ad936x_iio_custom.cc +++ b/src/algorithms/signal_source/libs/ad936x_iio_custom.cc @@ -549,13 +549,18 @@ bool ad936x_iio_custom::init_config_ad9361_rx(long long bandwidth_, PlutoTxEnable(false); //power down the TX LO to reduce interferences } - - int set_filter_ret = ad9361_set_bb_rate_custom_filter_auto(phy, sample_rate_sps); + int set_filter_ret = ad9361_set_bb_rate(phy, sample_rate_sps); if (set_filter_ret != 0) { - std::cout << "Warning: Unable to set AD936x RX filter parameters!\n"; + std::cout << "Warning: Unable to set AD936x ad9361_set_bb_rate parameters!\n"; } + // int set_filter_ret = ad9361_set_bb_rate_custom_filter_auto(phy, sample_rate_sps); + // if (set_filter_ret != 0) + // { + // std::cout << "Warning: Unable to set AD936x RX filter parameters!\n"; + // } + //testing: set manual RX filter chain // unsigned long RX_analog_bb_lpf_stop_hz = 1000000; // unsigned long TX_analog_bb_lpf_stop_hz = 1000000;