FFT resolution/zoom tweak

This commit is contained in:
Charles J. Cliffe 2015-02-21 23:25:40 -05:00
parent 4e26c2a38a
commit 2c33773189
3 changed files with 5 additions and 5 deletions

View File

@ -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()) {

View File

@ -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;

View File

@ -6,7 +6,7 @@
#include <deque>
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++) {