From 1674ab0e29ded87ab9c2e589572fc5fdeda212ec Mon Sep 17 00:00:00 2001 From: f4exb Date: Sat, 13 Oct 2018 06:29:43 +0200 Subject: [PATCH] Updated documentation. Extended spectrum number of averaging samples --- debian/changelog | 1 + sdrgui/gui/glspectrumgui.cpp | 2 +- sdrgui/gui/glspectrumgui.ui | 47 +++++++++++++++++++++++++++++++++++- sdrgui/readme.md | 7 ++++-- 4 files changed, 53 insertions(+), 4 deletions(-) diff --git a/debian/changelog b/debian/changelog index 10534c313..b35bd92f7 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,7 @@ sdrangel (4.2.2-1) unstable; urgency=medium * Spectrum: option to get max over a number of FFTs. Implements issue #207 + * File Input: fixed wrong times displays due to 32 bit integer ovevlow. Issue #206 -- Edouard Griffiths, F4EXB Sun, 14 Oct 2018 21:14:18 +0200 diff --git a/sdrgui/gui/glspectrumgui.cpp b/sdrgui/gui/glspectrumgui.cpp index d0ba90b1d..cd3d73d1e 100644 --- a/sdrgui/gui/glspectrumgui.cpp +++ b/sdrgui/gui/glspectrumgui.cpp @@ -30,7 +30,7 @@ GLSpectrumGUI::GLSpectrumGUI(QWidget* parent) : m_invert(true), m_averagingMode(AvgModeNone), m_averagingIndex(0), - m_averagingMaxScale(2), + m_averagingMaxScale(5), m_averagingNb(0) { ui->setupUi(this); diff --git a/sdrgui/gui/glspectrumgui.ui b/sdrgui/gui/glspectrumgui.ui index a874c7068..6c81795fb 100644 --- a/sdrgui/gui/glspectrumgui.ui +++ b/sdrgui/gui/glspectrumgui.ui @@ -591,7 +591,7 @@ - 0 + 1 @@ -639,6 +639,51 @@ 1k + + + 2k + + + + + 5k + + + + + 10k + + + + + 20k + + + + + 50k + + + + + 1e5 + + + + + 2e5 + + + + + 5e5 + + + + + 1M + + diff --git a/sdrgui/readme.md b/sdrgui/readme.md index 6ef34bfe7..46554c45f 100644 --- a/sdrgui/readme.md +++ b/sdrgui/readme.md @@ -269,11 +269,14 @@ Use this combo to select which averaging mode is applied: - **No**: no averaging. Disables averaging regardless of the number of averaged samples (4.6). This is the default option - **Mov**: moving average. This is a sliding average over the amount of samples specified next (4.6). There is one complete FFT line produced at every FFT sampling period - **Fix**: fixed average. Average is done over the amount of samples specified next (4.6) and a result is produced at the end of the corresponding period then the next block of averaged samples is processed. There is one complete FFT line produced every FFT sampling period multiplied by the number of averaged samples (4.6). The time scale on the waterfall display is updated accordingly. + - **Max**: this is not an averaging but a max hold. It will retain the maximum value over the amount of samples specified next (4.6). Similarly to the fixed average a result is produced at the end of the corresponding period which results in slowing down the waterfall display. The point of this mode is to make outlying short bursts within the "averaging" period stand out. With averaging they would only cause a modest increase and could be missed out.

4.6. Number of averaged samples

-Each FFT bin (squared magnitude) is averaged over a number of samples. This combo allows selecting the number of samples between these values: 0 (no averaging), 2, 5, 10, 20, 50, 100, 200, 500, 1k (1000). The tooltip mentions the resulting averaging period considering the baseband sample rate and FFT size. -Averaging reduces the noise variance and can be used to better detect weak continuous signals. The fixed averaging mode allows long time monitoring on the waterfall. +Each FFT bin (squared magnitude) is averaged or max'ed over a number of samples. This combo allows selecting the number of samples between these values: 0 (no averaging), 2, 5, 10, 20, 50, 100, 200, 500, 1k (1000), 2k, 5k, 10k, 20k, 50k, 1e5 (100000), 2e5, 5e5, 1M (1000000). The tooltip mentions the resulting averaging period considering the baseband sample rate and FFT size. +Averaging reduces the noise variance and can be used to better detect weak continuous signals. The fixed averaging mode allows long time monitoring on the waterfall. The max mode helps showing short bursts that may appear during the "averaging" period. + +☞ Note: The spectrum display is refreshed every 50ms (20 FPS). Setting an averaging time above this value will make sure that a short burst is not missed particularly when using the max mode.

4.7. Phosphor display stroke decay