From be1055a2c7ddb674223c3724256a7b2dcb9c010e Mon Sep 17 00:00:00 2001 From: "Charles J. Cliffe" Date: Fri, 17 Jul 2015 19:14:39 -0400 Subject: [PATCH] reduce demod I/Q AGC bandwidth for better raw output --- src/demod/DemodulatorThread.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/demod/DemodulatorThread.cpp b/src/demod/DemodulatorThread.cpp index 6f7246f..7ffd6a9 100644 --- a/src/demod/DemodulatorThread.cpp +++ b/src/demod/DemodulatorThread.cpp @@ -61,7 +61,7 @@ void DemodulatorThread::threadMain() { // Automatic IQ gain iqAutoGain = agc_crcf_create(); - agc_crcf_set_bandwidth(iqAutoGain, 0.9); + agc_crcf_set_bandwidth(iqAutoGain, 0.1); AudioThreadInput *ati_vis = new AudioThreadInput; ati_vis->data.reserve(DEMOD_VIS_SIZE); @@ -372,8 +372,8 @@ void DemodulatorThread::threadMain() { if (demodulatorType == DEMOD_TYPE_RAW) { for (int i = 0; i < stereoSize / 2; i++) { - ati_vis->data[i] = ati->data[i * 2] * 0.5; - ati_vis->data[i + stereoSize / 2] = ati->data[i * 2 + 1] * 0.5; + ati_vis->data[i] = ati->data[i * 2] * 0.75; + ati_vis->data[i + stereoSize / 2] = ati->data[i * 2 + 1] * 0.75; } } else { for (int i = 0; i < stereoSize / 2; i++) {