Browse Source

Fix warning.

Add Spectrum Color to docs.
chirpmodem-v8.0.0
Jon Beniston 8 months ago
parent
commit
c57dc649d2
  1. BIN
      doc/img/Spectrum_Display_Settings.png
  2. 6
      sdrbase/dsp/nco.cpp
  3. 12
      sdrgui/gui/spectrum.md

BIN
doc/img/Spectrum_Display_Settings.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 69 KiB

6
sdrbase/dsp/nco.cpp

@ -27,11 +27,13 @@ bool NCO::m_tableInitialized = false; @@ -27,11 +27,13 @@ bool NCO::m_tableInitialized = false;
void NCO::initTable()
{
if(m_tableInitialized)
if (m_tableInitialized) {
return;
}
for(int i = 0; i < TableSize; i++)
for (unsigned i = 0; i < TableSize; i++) {
m_table[i] = cos((2.0 * M_PI * i) / TableSize);
}
m_tableInitialized = true;
}

12
sdrgui/gui/spectrum.md

@ -96,7 +96,9 @@ When the mouse is inside the time scale (waterfall) the overlap is increased by @@ -96,7 +96,9 @@ When the mouse is inside the time scale (waterfall) the overlap is increased by
<h2>B. Spectrum controls</h2>
Controls are organized in 7 blocks arranged in a flow layout so that the size of the control area can adapt to the width of the spectrum arranging the blocks from 4 to 1 line as the spectrum widens. The buttons and various controls in each block remain at the same place.
Not all controls are visible by default. See B.7.8 for how to select which controls are visible.
Controls are organized in 7 blocks arranged in a flow layout so that the size of the control area can adapt to the width of the spectrum arranging the blocks from 5 to 1 line as the spectrum widens. The buttons and various controls in each block remain at the same place.
Narrow (5 lines):
@ -106,8 +108,6 @@ Wide (1 line): @@ -106,8 +108,6 @@ Wide (1 line):
![Spectrum GUI](../../doc/img/MainWindow_spectrum_gui_wide.png)
Not all controls are visible by default. See B.7.8 for how to select which controls are visible.
The 7 blocks are detailed next:
![Spectrum GUI](../../doc/img/MainWindow_spectrum_gui.png)
@ -511,6 +511,12 @@ When checked, the power and frequency of the FFT bin under the cursor will be di @@ -511,6 +511,12 @@ When checked, the power and frequency of the FFT bin under the cursor will be di
When checked, the power and frequency of the highest peak will be displayed in the status line.
<h3>Spectrum</h3>
<h4>Colour</h4>
Specifies the color to draw the spectrum when line (B.2.1) or fill (B.2.2) style is selected.
<h3>Spectrum Memories</h3>
<h4>Memory</h4>

Loading…
Cancel
Save