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

DATV: fixed communication with GUI

This commit is contained in:
f4exb 2021-03-08 08:35:30 +01:00
parent ce70029ba6
commit 156d7b543a
3 changed files with 8 additions and 1 deletions

View File

@ -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); }

View File

@ -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;
}

View File

@ -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;