1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 09:48:45 -05:00

Test source: updated documentation

This commit is contained in:
f4exb 2018-10-24 08:29:49 +02:00
parent 58b94c0366
commit 309693469a
2 changed files with 10 additions and 3 deletions

View File

@ -82,6 +82,13 @@ This controls the generator sample rate in samples per second.
- **No**: No modulation - **No**: No modulation
- **AM**: Amplitude modulation (AM) - **AM**: Amplitude modulation (AM)
- **FM**: Frequency modulation (FM) - **FM**: Frequency modulation (FM)
- **P0**: Pattern 0 is a binary pattern
- Pulse width: 150 samples
- Sync pattern: 010 at full amplitude
- Binary pattern LSB first on 3 bits from 0 to 7 at 0.3 amplitude
- **P1**: Pattern 1 is a sawtooth pattern
- Pulse width: 1000 samples
- Starts at full amplitude then amplitude decreases linearly down to zero
<h3>5: Modulating tone frequency</h3> <h3>5: Modulating tone frequency</h3>

View File

@ -90,9 +90,9 @@ GLSpectrum::GLSpectrum(QWidget* parent) :
for (int i = 1; i < 240; i++) for (int i = 1; i < 240; i++)
{ {
QColor c; QColor c;
int val = i < 60 ? 128 + (60-i) : 128; int light = i < 60 ? 128 + (60-i) : 128;
int sat = i < 60 ? 140 + i : i < 180 ? 200 : 200 - (i-180); int sat = i < 60 ? 140 + i : i < 180 ? 200 : 200 - (i-180);
c.setHsl(239 - i, sat, val); c.setHsl(239 - i, sat, light);
((quint8*)&m_histogramPalette[i])[0] = c.red(); ((quint8*)&m_histogramPalette[i])[0] = c.red();
((quint8*)&m_histogramPalette[i])[1] = c.green(); ((quint8*)&m_histogramPalette[i])[1] = c.green();
((quint8*)&m_histogramPalette[i])[2] = c.blue(); ((quint8*)&m_histogramPalette[i])[2] = c.blue();