1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-13 11:51:47 -05:00

ATV Demod: added config object

This commit is contained in:
f4exb 2017-03-16 21:07:51 +01:00
parent 465944f60b
commit cade50d9f0
2 changed files with 11 additions and 0 deletions

View File

@ -570,6 +570,16 @@ bool ATVDemod::handleMessage(const Message& cmd)
{
MsgConfigureATVDemod& objCfg = (MsgConfigureATVDemod&) cmd;
m_objConfig.m_enmModulation = objCfg.m_objMsgConfig.m_enmModulation;
m_objConfig.m_fltVoltLevelSynchroBlack = objCfg.m_objMsgConfig.m_fltVoltLevelSynchroBlack;
m_objConfig.m_fltVoltLevelSynchroTop = objCfg.m_objMsgConfig.m_fltVoltLevelSynchroTop;
m_objConfig.m_intFramePerS = objCfg.m_objMsgConfig.m_intFramePerS;
m_objConfig.m_intLineDurationUs = objCfg.m_objMsgConfig.m_intLineDurationUs;
m_objConfig.m_intPercentOfRowsToDisplay = objCfg.m_objMsgConfig.m_intPercentOfRowsToDisplay;
m_objConfig.m_intTopDurationUs = objCfg.m_objMsgConfig.m_intTopDurationUs;
m_objConfig.m_blnHSync = objCfg.m_objMsgConfig.m_blnHSync;
m_objConfig.m_blnVSync = objCfg.m_objMsgConfig.m_blnVSync;
if((objCfg.m_objMsgConfig.m_enmModulation != m_objRunning.m_enmModulation)
|| (objCfg.m_objMsgConfig.m_fltVoltLevelSynchroBlack != m_objRunning.m_fltVoltLevelSynchroBlack)
|| (objCfg.m_objMsgConfig.m_fltVoltLevelSynchroTop != m_objRunning.m_fltVoltLevelSynchroTop)

View File

@ -210,6 +210,7 @@ private:
ATVConfig m_objRunning;
ATVConfig m_objConfig;
QMutex m_objSettingsMutex;