1
0
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:
srcejon 2023-09-29 10:52:21 +01:00
parent b3d3ca43ca
commit 3a8a0f0bf0
4 changed files with 14 additions and 5 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View File

@ -187,8 +187,7 @@ void FreqScannerBaseband::calcScannerSampleRate(int basebandSampleRate, float rf
m_channelizer->setChannelization(m_scannerSampleRate, inputFrequencyOffset);
m_channelSampleRate = m_channelizer->getChannelSampleRate();
m_sink.applyChannelSettings(m_channelSampleRate, m_channelizer->getChannelFrequencyOffset(), m_scannerSampleRate, fftSize, binsPerChannel);
qInfo() << "FreqScannerBaseband::calcScannerSampleRate"
qDebug() << "FreqScannerBaseband::calcScannerSampleRate"
<< "basebandSampleRate:" << basebandSampleRate
<< "channelSampleRate:" << m_channelSampleRate
<< "scannerSampleRate:" << m_scannerSampleRate

View File

@ -614,12 +614,20 @@ void FreqScannerGUI::on_addRange_clicked()
qint64 stop = dialog.m_stop;
int step = dialog.m_step;
blockApplySettings(true);
if ((start <= stop) && (step > 0))
{
for (qint64 f = start; f <= stop; f += step) {
addRow(f, true);
}
}
blockApplySettings(false);
QList<QString> settingsKeys({
"frequencies",
"enabled",
"notes"
});
applySettings(settingsKeys);
}
}

View File

@ -295,14 +295,16 @@ QString FreqScannerSettings::getDebugString(const QStringList& settingsKeys, boo
}
if (settingsKeys.contains("enabled") || force)
{
QStringList s;
// Don't display
/*QStringList s;
for (auto e : m_enabled) {
s.append(e ? "true" : "false");
}
ostr << " m_enabled: " << s.join(",").toStdString();
ostr << " m_enabled: " << s.join(",").toStdString();*/
}
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) {
ostr << " m_channel: " << m_channel.toStdString();