mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-23 01:55:48 -05:00
Reduce debug. Add screenshot.
This commit is contained in:
parent
b3d3ca43ca
commit
3a8a0f0bf0
BIN
doc/img/FreqScanner_plugin.png
Normal file
BIN
doc/img/FreqScanner_plugin.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
@ -187,8 +187,7 @@ void FreqScannerBaseband::calcScannerSampleRate(int basebandSampleRate, float rf
|
|||||||
m_channelizer->setChannelization(m_scannerSampleRate, inputFrequencyOffset);
|
m_channelizer->setChannelization(m_scannerSampleRate, inputFrequencyOffset);
|
||||||
m_channelSampleRate = m_channelizer->getChannelSampleRate();
|
m_channelSampleRate = m_channelizer->getChannelSampleRate();
|
||||||
m_sink.applyChannelSettings(m_channelSampleRate, m_channelizer->getChannelFrequencyOffset(), m_scannerSampleRate, fftSize, binsPerChannel);
|
m_sink.applyChannelSettings(m_channelSampleRate, m_channelizer->getChannelFrequencyOffset(), m_scannerSampleRate, fftSize, binsPerChannel);
|
||||||
|
qDebug() << "FreqScannerBaseband::calcScannerSampleRate"
|
||||||
qInfo() << "FreqScannerBaseband::calcScannerSampleRate"
|
|
||||||
<< "basebandSampleRate:" << basebandSampleRate
|
<< "basebandSampleRate:" << basebandSampleRate
|
||||||
<< "channelSampleRate:" << m_channelSampleRate
|
<< "channelSampleRate:" << m_channelSampleRate
|
||||||
<< "scannerSampleRate:" << m_scannerSampleRate
|
<< "scannerSampleRate:" << m_scannerSampleRate
|
||||||
|
@ -614,12 +614,20 @@ void FreqScannerGUI::on_addRange_clicked()
|
|||||||
qint64 stop = dialog.m_stop;
|
qint64 stop = dialog.m_stop;
|
||||||
int step = dialog.m_step;
|
int step = dialog.m_step;
|
||||||
|
|
||||||
|
blockApplySettings(true);
|
||||||
if ((start <= stop) && (step > 0))
|
if ((start <= stop) && (step > 0))
|
||||||
{
|
{
|
||||||
for (qint64 f = start; f <= stop; f += step) {
|
for (qint64 f = start; f <= stop; f += step) {
|
||||||
addRow(f, true);
|
addRow(f, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
blockApplySettings(false);
|
||||||
|
QList<QString> settingsKeys({
|
||||||
|
"frequencies",
|
||||||
|
"enabled",
|
||||||
|
"notes"
|
||||||
|
});
|
||||||
|
applySettings(settingsKeys);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -295,14 +295,16 @@ QString FreqScannerSettings::getDebugString(const QStringList& settingsKeys, boo
|
|||||||
}
|
}
|
||||||
if (settingsKeys.contains("enabled") || force)
|
if (settingsKeys.contains("enabled") || force)
|
||||||
{
|
{
|
||||||
QStringList s;
|
// Don't display
|
||||||
|
/*QStringList s;
|
||||||
for (auto e : m_enabled) {
|
for (auto e : m_enabled) {
|
||||||
s.append(e ? "true" : "false");
|
s.append(e ? "true" : "false");
|
||||||
}
|
}
|
||||||
ostr << " m_enabled: " << s.join(",").toStdString();
|
ostr << " m_enabled: " << s.join(",").toStdString();*/
|
||||||
}
|
}
|
||||||
if (settingsKeys.contains("notes") || force) {
|
if (settingsKeys.contains("notes") || force) {
|
||||||
ostr << " m_notes: " << m_notes.join(",").toStdString();
|
// Don't display
|
||||||
|
//ostr << " m_notes: " << m_notes.join(",").toStdString();
|
||||||
}
|
}
|
||||||
if (settingsKeys.contains("channel") || force) {
|
if (settingsKeys.contains("channel") || force) {
|
||||||
ostr << " m_channel: " << m_channel.toStdString();
|
ostr << " m_channel: " << m_channel.toStdString();
|
||||||
|
Loading…
Reference in New Issue
Block a user