From 2c33773189fe8a5db39979181a02223e14363e97 Mon Sep 17 00:00:00 2001 From: "Charles J. Cliffe" Date: Sat, 21 Feb 2015 23:25:40 -0500 Subject: [PATCH] FFT resolution/zoom tweak --- src/AppFrame.cpp | 6 +++--- src/CubicSDR.cpp | 2 +- src/sdr/SDRPostThread.cpp | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/AppFrame.cpp b/src/AppFrame.cpp index 7129e92..0b68e56 100644 --- a/src/AppFrame.cpp +++ b/src/AppFrame.cpp @@ -370,7 +370,7 @@ void AppFrame::OnIdle(wxIdleEvent& event) { } if (demodWaterfallCanvas->getDragState() == WaterfallCanvas::WF_DRAG_NONE) { long long centerFreq = demod->getFrequency(); - unsigned int demodBw = (unsigned int) ceil((float) demod->getBandwidth() * 2.5); + unsigned int demodBw = (unsigned int) ceil((float) demod->getBandwidth() * 2.25); if (demod->getDemodulatorType() == DEMOD_TYPE_USB) { demodBw /= 2; @@ -385,8 +385,8 @@ void AppFrame::OnIdle(wxIdleEvent& event) { if (demodBw > wxGetApp().getSampleRate() / 2) { demodBw = wxGetApp().getSampleRate() / 2; } - if (demodBw < 30000) { - demodBw = 30000; + if (demodBw < 20000) { + demodBw = 20000; } if (centerFreq != demodWaterfallCanvas->getCenterFrequency()) { diff --git a/src/CubicSDR.cpp b/src/CubicSDR.cpp index 3ae5cfa..32e42d1 100644 --- a/src/CubicSDR.cpp +++ b/src/CubicSDR.cpp @@ -29,7 +29,7 @@ bool CubicSDR::OnInit() { sdrThread = new SDRThread(threadCmdQueueSDR); sdrPostThread = new SDRPostThread(); - sdrPostThread->setNumVisSamples(16384); + sdrPostThread->setNumVisSamples(16384*2); iqPostDataQueue = new SDRThreadIQDataQueue; iqVisualQueue = new DemodulatorThreadInputQueue; diff --git a/src/sdr/SDRPostThread.cpp b/src/sdr/SDRPostThread.cpp index 81c9ef4..34b8942 100644 --- a/src/sdr/SDRPostThread.cpp +++ b/src/sdr/SDRPostThread.cpp @@ -6,7 +6,7 @@ #include SDRPostThread::SDRPostThread() : - iqDataOutQueue(NULL), iqDataInQueue(NULL), iqVisualQueue(NULL), terminated(false), dcFilter(NULL), num_vis_samples(16384) { + iqDataOutQueue(NULL), iqDataInQueue(NULL), iqVisualQueue(NULL), terminated(false), dcFilter(NULL), num_vis_samples(16384*2) { // create a lookup table for (unsigned int i = 0; i <= 0xffff; i++) {