mirror of https://github.com/f4exb/sdrangel.git
Class to handle amateur radio callsigns and corresponding country data. Part of #2008
This commit is contained in:
parent
bcc455b143
commit
56f3cfb769
|
@ -224,8 +224,10 @@ set(sdrbase_SOURCES
|
||||||
util/astronomy.cpp
|
util/astronomy.cpp
|
||||||
util/azel.cpp
|
util/azel.cpp
|
||||||
util/baudot.cpp
|
util/baudot.cpp
|
||||||
|
util/callsign.cpp
|
||||||
util/colormap.cpp
|
util/colormap.cpp
|
||||||
util/coordinates.cpp
|
util/coordinates.cpp
|
||||||
|
util/countrydat.cpp
|
||||||
util/crc.cpp
|
util/crc.cpp
|
||||||
util/CRC64.cpp
|
util/CRC64.cpp
|
||||||
util/csv.cpp
|
util/csv.cpp
|
||||||
|
@ -297,6 +299,7 @@ set(sdrbase_SOURCES
|
||||||
maincore.cpp
|
maincore.cpp
|
||||||
remotetcpsinkstarter.cpp
|
remotetcpsinkstarter.cpp
|
||||||
|
|
||||||
|
resources/data.qrc
|
||||||
resources/webapi.qrc
|
resources/webapi.qrc
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -468,8 +471,10 @@ set(sdrbase_HEADERS
|
||||||
util/astronomy.h
|
util/astronomy.h
|
||||||
util/azel.h
|
util/azel.h
|
||||||
util/baudot.h
|
util/baudot.h
|
||||||
|
util/callsign.h
|
||||||
util/colormap.h
|
util/colormap.h
|
||||||
util/coordinates.h
|
util/coordinates.h
|
||||||
|
util/countrydat.h
|
||||||
util/CRC64.h
|
util/CRC64.h
|
||||||
util/csv.h
|
util/csv.h
|
||||||
util/db.h
|
util/db.h
|
||||||
|
|
|
@ -9,6 +9,7 @@ set(sdrbench_SOURCES
|
||||||
parserbench.cpp
|
parserbench.cpp
|
||||||
test_golay2312.cpp
|
test_golay2312.cpp
|
||||||
test_ft8.cpp
|
test_ft8.cpp
|
||||||
|
test_callsign.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set(sdrbench_HEADERS
|
set(sdrbench_HEADERS
|
||||||
|
|
|
@ -69,6 +69,8 @@ void MainBench::run()
|
||||||
testGolay2312();
|
testGolay2312();
|
||||||
} else if (m_parser.getTestType() == ParserBench::TestFT8) {
|
} else if (m_parser.getTestType() == ParserBench::TestFT8) {
|
||||||
testFT8(m_parser.getFileName(), m_parser.getArgsStr());
|
testFT8(m_parser.getFileName(), m_parser.getArgsStr());
|
||||||
|
} else if (m_parser.getTestType() == ParserBench::TestCallsign) {
|
||||||
|
testCallsign(m_parser.getArgsStr());
|
||||||
} else {
|
} else {
|
||||||
qDebug() << "MainBench::run: unknown test type: " << m_parser.getTestType();
|
qDebug() << "MainBench::run: unknown test type: " << m_parser.getTestType();
|
||||||
}
|
}
|
||||||
|
|
|
@ -58,6 +58,7 @@ private:
|
||||||
void testDecimateFF();
|
void testDecimateFF();
|
||||||
void testGolay2312();
|
void testGolay2312();
|
||||||
void testFT8(const QString& wavFile, const QString& argsStr); //!< use with sdrbench/samples/ft8/230105_091630.wav in -f option
|
void testFT8(const QString& wavFile, const QString& argsStr); //!< use with sdrbench/samples/ft8/230105_091630.wav in -f option
|
||||||
|
void testCallsign(const QString& argsStr);
|
||||||
void decimateII(const qint16 *buf, int len);
|
void decimateII(const qint16 *buf, int len);
|
||||||
void decimateInfII(const qint16 *buf, int len);
|
void decimateInfII(const qint16 *buf, int len);
|
||||||
void decimateSupII(const qint16 *buf, int len);
|
void decimateSupII(const qint16 *buf, int len);
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
ParserBench::ParserBench() :
|
ParserBench::ParserBench() :
|
||||||
m_testOption(QStringList() << "t" << "test",
|
m_testOption(QStringList() << "t" << "test",
|
||||||
"Test type: decimateii, decimatefi, decimateff, decimateif, decimateinfii, decimatesupii, ambe, golay2312, ft8"
|
"Test type: decimateii, decimatefi, decimateff, decimateif, decimateinfii, decimatesupii, ambe, golay2312, ft8, callsign"
|
||||||
"test",
|
"test",
|
||||||
"decimateii"),
|
"decimateii"),
|
||||||
m_nbSamplesOption(QStringList() << "n" << "nb-samples",
|
m_nbSamplesOption(QStringList() << "n" << "nb-samples",
|
||||||
|
@ -147,6 +147,8 @@ ParserBench::TestType ParserBench::getTestType() const
|
||||||
return TestGolay2312;
|
return TestGolay2312;
|
||||||
} else if (m_testStr == "ft8") {
|
} else if (m_testStr == "ft8") {
|
||||||
return TestFT8;
|
return TestFT8;
|
||||||
|
} else if (m_testStr == "callsign") {
|
||||||
|
return TestCallsign;
|
||||||
} else {
|
} else {
|
||||||
return TestDecimatorsII;
|
return TestDecimatorsII;
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,7 +38,8 @@ public:
|
||||||
TestDecimatorsInfII,
|
TestDecimatorsInfII,
|
||||||
TestDecimatorsSupII,
|
TestDecimatorsSupII,
|
||||||
TestGolay2312,
|
TestGolay2312,
|
||||||
TestFT8
|
TestFT8,
|
||||||
|
TestCallsign
|
||||||
} TestType;
|
} TestType;
|
||||||
|
|
||||||
ParserBench();
|
ParserBench();
|
||||||
|
|
Loading…
Reference in New Issue