1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-05 07:24:44 -04:00

Interferometer (6)

This commit is contained in:
f4exb
2019-09-24 02:46:14 +02:00
parent 4981ff190e
commit 6bcf8caa21
5 changed files with 61 additions and 21 deletions
@@ -97,6 +97,15 @@ void Interferometer::stop()
void Interferometer::feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end, unsigned int sinkIndex)
{
if (sinkIndex == 0) {
m_count0 = end - begin;
} else if (sinkIndex == 1) {
m_count1 = end - begin;
if (m_count1 != m_count0) {
qDebug("Interferometer::feed: c0: %d 1: %d", m_count0, m_count1);
}
}
m_sink->feed(begin, end, sinkIndex);
}
@@ -179,6 +188,7 @@ bool Interferometer::handleMessage(const Message& cmd)
InterferometerSink::MsgSignalNotification *sig = InterferometerSink::MsgSignalNotification::create(
m_deviceSampleRate, notif.getCenterFrequency(), notif.getIndex()
);
qDebug() << "Interferometer::handleMessage: DSPMIMOSignalNotification: push to sink";
m_sink->getInputMessageQueue()->push(sig);
// Redo the channelizer stuff with the new sample rate to re-synchronize everything