From 18f833c6501a75d975e77fd733b782042893d922 Mon Sep 17 00:00:00 2001 From: f4exb Date: Thu, 12 Dec 2019 18:23:22 +0100 Subject: [PATCH] Remote Sink: methods cleanup --- plugins/channelrx/remotesink/remotesinkbaseband.cpp | 1 - plugins/channelrx/remotesink/remotesinksink.h | 13 +++---------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/plugins/channelrx/remotesink/remotesinkbaseband.cpp b/plugins/channelrx/remotesink/remotesinkbaseband.cpp index 3467cef8e..6e478cd9d 100644 --- a/plugins/channelrx/remotesink/remotesinkbaseband.cpp +++ b/plugins/channelrx/remotesink/remotesinkbaseband.cpp @@ -117,7 +117,6 @@ bool RemoteSinkBaseband::handleMessage(const Message& cmd) qDebug() << "RemoteSinkBaseband::handleMessage: DSPSignalNotification: basebandSampleRate:" << m_basebandSampleRate; m_channelizer->setBasebandSampleRate(m_basebandSampleRate); m_sink.applyBasebandSampleRate(m_basebandSampleRate); - m_sink.setDeviceCenterFrequency(notif.getCenterFrequency()); return true; } diff --git a/plugins/channelrx/remotesink/remotesinksink.h b/plugins/channelrx/remotesink/remotesinksink.h index 49e278a50..a7c8773f8 100644 --- a/plugins/channelrx/remotesink/remotesinksink.h +++ b/plugins/channelrx/remotesink/remotesinksink.h @@ -44,16 +44,6 @@ public: void applySettings(const RemoteSinkSettings& settings, bool force = false); void applyBasebandSampleRate(uint32_t sampleRate); - /** Set device center frequency given in Hz */ - void setDeviceCenterFrequency(uint64_t centerFrequency) { m_deviceCenterFrequency = centerFrequency; } - - /** Set sample rate given in Hz */ - - void setNbBlocksFEC(int nbBlocksFEC); - void setTxDelay(int txDelay, int nbBlocksFEC, int log2Decim); - void setDataAddress(const QString& address) { m_dataAddress = address; } - void setDataPort(uint16_t port) { m_dataPort = port; } - private: RemoteSinkSettings m_settings; QThread *m_senderThread; @@ -73,6 +63,9 @@ private: int m_txDelay; QString m_dataAddress; uint16_t m_dataPort; + + void setNbBlocksFEC(int nbBlocksFEC); + void setTxDelay(int txDelay, int nbBlocksFEC, int log2Decim); }; #endif // INCLUDE_REMOTESINKSINK_H_ \ No newline at end of file