Reduce debug. Add screenshot.

pull/1852/head
srcejon 2023-09-29 10:52:21 +01:00
rodzic b3d3ca43ca
commit 3a8a0f0bf0
4 zmienionych plików z 14 dodań i 5 usunięć

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 24 KiB

Wyświetl plik

@ -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

Wyświetl plik

@ -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);
} }
} }

Wyświetl plik

@ -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();