mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-25 17:28:50 -05:00
Revert "RadioClock: moved ScopeVis to plugin core"
This reverts commit 4ac6c54f95
.
This commit is contained in:
parent
86ceb245cd
commit
d98046f615
@ -55,7 +55,6 @@ RadioClock::RadioClock(DeviceAPI *deviceAPI) :
|
||||
setObjectName(m_channelId);
|
||||
|
||||
m_basebandSink = new RadioClockBaseband(this);
|
||||
m_basebandSink->setScopeSink(&m_scopeSink);
|
||||
m_basebandSink->setMessageQueueToChannel(getInputMessageQueue());
|
||||
m_basebandSink->setChannel(this);
|
||||
m_basebandSink->moveToThread(&m_thread);
|
||||
@ -170,6 +169,11 @@ bool RadioClock::handleMessage(const Message& cmd)
|
||||
}
|
||||
}
|
||||
|
||||
ScopeVis *RadioClock::getScopeSink()
|
||||
{
|
||||
return m_basebandSink->getScopeSink();
|
||||
}
|
||||
|
||||
void RadioClock::applySettings(const RadioClockSettings& settings, bool force)
|
||||
{
|
||||
qDebug() << "RadioClock::applySettings:"
|
||||
|
@ -26,7 +26,6 @@
|
||||
#include <QDateTime>
|
||||
|
||||
#include "dsp/basebandsamplesink.h"
|
||||
#include "dsp/scopevis.h"
|
||||
#include "channel/channelapi.h"
|
||||
#include "util/message.h"
|
||||
|
||||
@ -158,7 +157,7 @@ public:
|
||||
const QStringList& channelSettingsKeys,
|
||||
SWGSDRangel::SWGChannelSettings& response);
|
||||
|
||||
ScopeVis *getScopeSink() { return &m_scopeSink; }
|
||||
ScopeVis *getScopeSink();
|
||||
double getMagSq() const { return m_basebandSink->getMagSq(); }
|
||||
|
||||
void getMagSqLevels(double& avg, double& peak, int& nbSamples) {
|
||||
@ -178,7 +177,6 @@ private:
|
||||
int m_basebandSampleRate; //!< stored from device message used when starting baseband sink
|
||||
qint64 m_centerFrequency;
|
||||
QDateTime m_dateTime; //!< Received data and time
|
||||
ScopeVis m_scopeSink;
|
||||
|
||||
QNetworkAccessManager *m_networkManager;
|
||||
QNetworkRequest m_networkRequest;
|
||||
|
@ -34,6 +34,7 @@ RadioClockBaseband::RadioClockBaseband(RadioClock *radioClock) :
|
||||
{
|
||||
qDebug("RadioClockBaseband::RadioClockBaseband");
|
||||
|
||||
m_sink.setScopeSink(&m_scopeSink);
|
||||
m_sampleFifo.setSize(SampleSinkFifo::getSizePolicy(48000));
|
||||
m_channelizer = new DownChannelizer(&m_sink);
|
||||
}
|
||||
|
@ -23,6 +23,7 @@
|
||||
#include <QMutex>
|
||||
|
||||
#include "dsp/samplesinkfifo.h"
|
||||
#include "dsp/scopevis.h"
|
||||
#include "util/message.h"
|
||||
#include "util/messagequeue.h"
|
||||
|
||||
@ -72,7 +73,7 @@ public:
|
||||
}
|
||||
void setMessageQueueToChannel(MessageQueue *messageQueue) { m_sink.setMessageQueueToChannel(messageQueue); }
|
||||
void setBasebandSampleRate(int sampleRate);
|
||||
void setScopeSink(ScopeVis *scopeSink) { m_sink.setScopeSink(scopeSink); }
|
||||
ScopeVis *getScopeSink() { return &m_scopeSink; }
|
||||
void setChannel(ChannelAPI *channel);
|
||||
double getMagSq() const { return m_sink.getMagSq(); }
|
||||
bool isRunning() const { return m_running; }
|
||||
@ -83,6 +84,7 @@ private:
|
||||
RadioClockSink m_sink;
|
||||
MessageQueue m_inputMessageQueue; //!< Queue for asynchronous inbound communication
|
||||
RadioClockSettings m_settings;
|
||||
ScopeVis m_scopeSink;
|
||||
bool m_running;
|
||||
QMutex m_mutex;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user