1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-02 06:04:39 -04:00

FT8 demod: implement callback as an interface class. Added test .wav file and file option in the sdrbench options

This commit is contained in:
f4exb
2023-01-09 00:38:15 +01:00
parent 23e01ea064
commit 7cd08ef1e9
8 changed files with 101 additions and 28 deletions
+10 -1
View File
@@ -38,7 +38,11 @@ ParserBench::ParserBench() :
m_log2FactorOption(QStringList() << "l" << "log2-factor",
"Log2 factor for rate conversion.",
"log2",
"2")
"2"),
m_fileOption(QStringList() << "f" << "file",
"File to be used for the test.",
"file",
"")
{
m_testStr = "decimateii";
m_nbSamples = 1048576;
@@ -53,6 +57,7 @@ ParserBench::ParserBench() :
m_parser.addOption(m_nbSamplesOption);
m_parser.addOption(m_repetitionOption);
m_parser.addOption(m_log2FactorOption);
m_parser.addOption(m_fileOption);
}
ParserBench::~ParserBench()
@@ -111,6 +116,10 @@ void ParserBench::parse(const QCoreApplication& app)
} else {
qWarning() << "ParserBench::parse: repetilog2 factortion invalid. Defaulting to " << m_log2Factor;
}
// file
m_fileName = m_parser.value(m_fileOption);
}
ParserBench::TestType ParserBench::getTestType() const