From 156d7b543a981bc60de21c985892dd0eab677e34 Mon Sep 17 00:00:00 2001 From: f4exb Date: Mon, 8 Mar 2021 08:35:30 +0100 Subject: [PATCH] DATV: fixed communication with GUI --- plugins/channelrx/demoddatv/datvdemod.h | 4 ++++ plugins/channelrx/demoddatv/datvdemodgui.cpp | 2 ++ plugins/channelrx/demoddatv/datvdemodsink.cpp | 3 ++- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/plugins/channelrx/demoddatv/datvdemod.h b/plugins/channelrx/demoddatv/datvdemod.h index 42b1e19a6..a85db9a7e 100644 --- a/plugins/channelrx/demoddatv/datvdemod.h +++ b/plugins/channelrx/demoddatv/datvdemod.h @@ -65,6 +65,10 @@ public: return m_settings.m_centerFrequency; } + void setMessageQueueToGUI(MessageQueue* queue) override { + ChannelAPI::setMessageQueueToGUI(queue); + m_basebandSink->setMessageQueueToGUI(queue); + } void SetTVScreen(TVScreen *objScreen) { m_basebandSink->setTVScreen(objScreen); } void setMERLabel(QLabel *merLabel) { m_basebandSink->setMERLabel(merLabel); } void setCNRLabel(QLabel *cnrLabel) { m_basebandSink->setCNRLabel(cnrLabel); } diff --git a/plugins/channelrx/demoddatv/datvdemodgui.cpp b/plugins/channelrx/demoddatv/datvdemodgui.cpp index 5c57cec16..f7be4048a 100644 --- a/plugins/channelrx/demoddatv/datvdemodgui.cpp +++ b/plugins/channelrx/demoddatv/datvdemodgui.cpp @@ -87,6 +87,8 @@ bool DATVDemodGUI::handleMessage(const Message& message) m_settings.m_fec = notif.getCodeRate(); m_settings.m_modulation = notif.getModulation(); m_settings.validateSystemConfiguration(); + qDebug("DATVDemodReport::MsgReportModcodCstlnChange: m_modulation: %d m_fec: %d", + m_settings.m_modulation, m_settings.m_fec); displaySystemConfiguration(); return true; } diff --git a/plugins/channelrx/demoddatv/datvdemodsink.cpp b/plugins/channelrx/demoddatv/datvdemodsink.cpp index 62f5dee15..496e97259 100644 --- a/plugins/channelrx/demoddatv/datvdemodsink.cpp +++ b/plugins/channelrx/demoddatv/datvdemodsink.cpp @@ -49,7 +49,8 @@ DATVDemodSink::DATVDemodSink() : m_modcodModulation(-1), m_modcodCodeRate(-1), m_enmModulation(DATVDemodSettings::BPSK /*DATV_FM1*/), - m_channelSampleRate(1024000) + m_channelSampleRate(1024000), + m_messageQueueToGUI(nullptr) { //*************** DATV PARAMETERS *************** m_blnInitialized=false;