1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-01 13:47:01 -04:00

MIMO: MO operation fixes

This commit is contained in:
f4exb
2019-10-20 20:05:01 +02:00
parent 7a1b727a36
commit cf52553304
11 changed files with 481 additions and 275 deletions
+17 -6
View File
@@ -63,7 +63,7 @@ TestMI::~TestMI()
delete m_networkManager;
if (m_running) {
stop();
stopRx();
}
std::vector<FileRecord*>::iterator it = m_fileSinks.begin();
@@ -91,13 +91,13 @@ void TestMI::init()
applySettings(m_settings, true);
}
bool TestMI::start()
bool TestMI::startRx()
{
qDebug("TestMI::start");
qDebug("TestMI::startRx");
QMutexLocker mutexLocker(&m_mutex);
if (m_running) {
stop();
stopRx();
}
m_testSourceThreads.push_back(new TestMIThread(&m_sampleMIFifo, 0));
@@ -116,9 +116,15 @@ bool TestMI::start()
return true;
}
void TestMI::stop()
bool TestMI::startTx()
{
qDebug("TestMI::stop");
qDebug("TestMI::startTx");
return false;
}
void TestMI::stopRx()
{
qDebug("TestMI::stopRx");
QMutexLocker mutexLocker(&m_mutex);
std::vector<TestMIThread*>::iterator it = m_testSourceThreads.begin();
@@ -133,6 +139,11 @@ void TestMI::stop()
m_running = false;
}
void TestMI::stopTx()
{
qDebug("TestMI::stopTx");
}
QByteArray TestMI::serialize() const
{
return m_settings.serialize();
+4 -2
View File
@@ -104,8 +104,10 @@ public:
virtual void destroy();
virtual void init();
virtual bool start();
virtual void stop();
virtual bool startRx();
virtual void stopRx();
virtual bool startTx();
virtual void stopTx();
virtual QByteArray serialize() const;
virtual bool deserialize(const QByteArray& data);