1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-05-30 03:56:53 -04:00

FT4 demod: fixed expected test results and SNR calculation

This commit is contained in:
f4exb 2026-03-08 02:54:14 +01:00
parent 2e0801e57b
commit 76121cf789
2 changed files with 8 additions and 4 deletions

View File

@ -2913,7 +2913,7 @@ float FT4::guess_snr(const FFTEngine::ffts_t &m103)
raw = 0.1;
}
raw /= (2500.0 / 2.7); // 2.7 hz noise b/w -> 2500 hz b/w
raw /= (2500.0 / 12.0); // 9.0 hz noise b/w -> 2500 hz b/w (FT4: 3.33x wider than FT8's 2.7 Hz) + adjust
float snr = 10 * log10(raw);
snr += 5;
snr *= 1.4;

View File

@ -246,15 +246,19 @@ void MainBench::testFT4(const QString& wavFile, const QString& argsStr)
qDebug("MainBench::testFT4: %s", qPrintable(QString::fromStdString(msg.first)));
}
if (msgMap.size() != 2)
if (msgMap.size() != 6)
{
qDebug("MainBench::testFT4: failed: invalid size: %lu expected 2", msgMap.size());
qDebug("MainBench::testFT4: failed: invalid size: %lu expected 6", msgMap.size());
return;
}
QStringList messages = {
"AO5SQ EA3HKA JN11",
"CQ LA1PHA JP76",
"CQ PA8DC JO21",
"CQ R3YBG KO73",
"CQ YU7ZZ KN05"
"CQ YU7ZZ KN05",
"W4WWQ 9A6T -11"
};
for (const auto &msg : messages)