1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-21 23:55:13 -05:00

Class to handle amateur radio callsigns and corresponding country data. Part of #2008

This commit is contained in:
f4exb 2024-03-07 14:48:54 +01:00
parent bcc455b143
commit 56f3cfb769
6 changed files with 14 additions and 2 deletions

View File

@ -224,8 +224,10 @@ set(sdrbase_SOURCES
util/astronomy.cpp
util/azel.cpp
util/baudot.cpp
util/callsign.cpp
util/colormap.cpp
util/coordinates.cpp
util/countrydat.cpp
util/crc.cpp
util/CRC64.cpp
util/csv.cpp
@ -297,6 +299,7 @@ set(sdrbase_SOURCES
maincore.cpp
remotetcpsinkstarter.cpp
resources/data.qrc
resources/webapi.qrc
)
@ -468,8 +471,10 @@ set(sdrbase_HEADERS
util/astronomy.h
util/azel.h
util/baudot.h
util/callsign.h
util/colormap.h
util/coordinates.h
util/countrydat.h
util/CRC64.h
util/csv.h
util/db.h

View File

@ -9,6 +9,7 @@ set(sdrbench_SOURCES
parserbench.cpp
test_golay2312.cpp
test_ft8.cpp
test_callsign.cpp
)
set(sdrbench_HEADERS

View File

@ -69,6 +69,8 @@ void MainBench::run()
testGolay2312();
} else if (m_parser.getTestType() == ParserBench::TestFT8) {
testFT8(m_parser.getFileName(), m_parser.getArgsStr());
} else if (m_parser.getTestType() == ParserBench::TestCallsign) {
testCallsign(m_parser.getArgsStr());
} else {
qDebug() << "MainBench::run: unknown test type: " << m_parser.getTestType();
}

View File

@ -58,6 +58,7 @@ private:
void testDecimateFF();
void testGolay2312();
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 decimateInfII(const qint16 *buf, int len);
void decimateSupII(const qint16 *buf, int len);

View File

@ -24,7 +24,7 @@
ParserBench::ParserBench() :
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",
"decimateii"),
m_nbSamplesOption(QStringList() << "n" << "nb-samples",
@ -147,6 +147,8 @@ ParserBench::TestType ParserBench::getTestType() const
return TestGolay2312;
} else if (m_testStr == "ft8") {
return TestFT8;
} else if (m_testStr == "callsign") {
return TestCallsign;
} else {
return TestDecimatorsII;
}

View File

@ -38,7 +38,8 @@ public:
TestDecimatorsInfII,
TestDecimatorsSupII,
TestGolay2312,
TestFT8
TestFT8,
TestCallsign
} TestType;
ParserBench();