Add fine adjustments to DMR/YSF thresholds.

This commit is contained in:
Jonathan Naylor
2016-06-21 07:26:11 +01:00
parent 9240550de6
commit 768e3efcad
6 changed files with 62 additions and 19 deletions

View File

@@ -82,6 +82,8 @@ m_modemDMRLevel1(0),
m_modemDMRLevel3(0),
m_modemYSFLevel1(0),
m_modemYSFLevel3(0),
m_modemDMRThreshold(0),
m_modemYSFThreshold(0),
m_modemOscOffset(0),
m_modemDebug(false),
m_dstarEnabled(true),
@@ -280,6 +282,10 @@ bool CConf::read()
m_modemYSFLevel1 = ::atoi(value);
else if (::strcmp(key, "YSFLevel3") == 0)
m_modemYSFLevel3 = ::atoi(value);
else if (::strcmp(key, "DMRThreshold") == 0)
m_modemDMRThreshold = ::atoi(value);
else if (::strcmp(key, "YSFThreshold") == 0)
m_modemYSFThreshold = ::atoi(value);
else if (::strcmp(key, "OscOffset") == 0)
m_modemOscOffset = ::atoi(value);
else if (::strcmp(key, "Debug") == 0)
@@ -641,6 +647,16 @@ int CConf::getModemYSFLevel3() const
return m_modemYSFLevel3;
}
int CConf::getModemDMRThreshold() const
{
return m_modemDMRThreshold;
}
int CConf::getModemYSFThreshold() const
{
return m_modemYSFThreshold;
}
int CConf::getModemOscOffset() const
{
return m_modemOscOffset;