From 57ca4235b1b634d8c487fe2f0928ecc79f1bdbe7 Mon Sep 17 00:00:00 2001 From: michael-west Date: Wed, 21 Oct 2020 12:35:02 -0700 Subject: DUC: Fix incorrect DDS_GAIN Fixes incorrect value for the DDS_GAIN that was causing the TX output power to be 6 dB lower than it was supposed to be. Signed-off-by: michael-west --- host/lib/rfnoc/duc_block_control.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/lib/rfnoc') diff --git a/host/lib/rfnoc/duc_block_control.cpp b/host/lib/rfnoc/duc_block_control.cpp index c5dd2ff02..0e75390bc 100644 --- a/host/lib/rfnoc/duc_block_control.cpp +++ b/host/lib/rfnoc/duc_block_control.cpp @@ -480,7 +480,7 @@ private: } // DDS gain: - constexpr double DDS_GAIN = 2.0; + constexpr double DDS_GAIN = 1.0; // Calculate algorithmic gain of CIC for a given interpolation. // For Ettus CIC R=interp, M=1, N=4. Gain = (R * M) ^ (N - 1) const double cic_gain = std::pow(double(cic_interp * 1), /*N*/ 4 - 1); -- cgit v1.2.3