1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-16 05:11:49 -05:00

MIMO engine: fixed generation (MO)

This commit is contained in:
f4exb 2019-11-17 03:54:37 +01:00
parent 85444b0304
commit d113f05f1e

View File

@ -311,7 +311,7 @@ void DSPDeviceMIMOEngine::workSampleSourceFifos()
} }
std::vector<SampleVector::iterator> vbegin; std::vector<SampleVector::iterator> vbegin;
std::vector<SampleVector> data = sampleFifo->getData(); std::vector<SampleVector>& data = sampleFifo->getData();
unsigned int iPart1Begin, iPart1End, iPart2Begin, iPart2End; unsigned int iPart1Begin, iPart1End, iPart2Begin, iPart2End;
unsigned int remainder = sampleFifo->remainderSync(); unsigned int remainder = sampleFifo->remainderSync();
@ -441,10 +441,7 @@ void DSPDeviceMIMOEngine::workSamplesSource(SampleVector& data, unsigned int iBe
// pull data from MIMO channels // pull data from MIMO channels
for (MIMOChannels::const_iterator it = m_mimoChannels.begin(); it != m_mimoChannels.end(); ++it) for (MIMOChannels::const_iterator it = m_mimoChannels.begin(); it != m_mimoChannels.end(); ++it) {
{
qDebug("DSPDeviceMIMOEngine::workSamplesSource: %s: nbSamples: %u stream: %u",
qPrintable((*it)->objectName()), nbSamples, streamIndex);
(*it)->pull(begin, nbSamples, streamIndex); (*it)->pull(begin, nbSamples, streamIndex);
} }
@ -462,8 +459,6 @@ void DSPDeviceMIMOEngine::workSamplesSource(SampleVector& data, unsigned int iBe
else if (m_basebandSampleSources[streamIndex].size() == 1) else if (m_basebandSampleSources[streamIndex].size() == 1)
{ {
BasebandSampleSource *sampleSource = m_basebandSampleSources[streamIndex].front(); BasebandSampleSource *sampleSource = m_basebandSampleSources[streamIndex].front();
qDebug("DSPDeviceMIMOEngine::workSamplesSource: %s: nbSamples: %u stream: %u",
qPrintable(sampleSource->objectName()), nbSamples, streamIndex);
sampleSource->pull(begin, nbSamples); sampleSource->pull(begin, nbSamples);
} }
else else
@ -495,8 +490,6 @@ void DSPDeviceMIMOEngine::workSamplesSource(SampleVector& data, unsigned int iBe
} }
); );
} }
begin = m_sourceSampleBuffers[streamIndex].m_vector.begin();
} }
} }