mirror of
https://github.com/g4klx/MMDVMHost
synced 2026-02-04 22:05:41 +08:00
Add Tx and Rx frequency offsets
Enables specification of independant Tx and Rx offsets in Hz for Tx and Rx frequencies on DVMega and MMDVM_HS hardware. Tx and Rx frequencies no longer have to be offset for frequency errors in ADF7021 devices and dashboards (BM/DMR+) will now display intended frequencies.
This commit is contained in:
16
Conf.cpp
16
Conf.cpp
@@ -85,6 +85,8 @@ m_modemTXInvert(false),
|
||||
m_modemPTTInvert(false),
|
||||
m_modemTXDelay(100U),
|
||||
m_modemDMRDelay(0U),
|
||||
m_modemTxOffset(0),
|
||||
m_modemRxOffset(0),
|
||||
m_modemRXLevel(50.0F),
|
||||
m_modemCWIdTXLevel(50.0F),
|
||||
m_modemDStarTXLevel(50.0F),
|
||||
@@ -327,6 +329,10 @@ bool CConf::read()
|
||||
m_modemTXDelay = (unsigned int)::atoi(value);
|
||||
else if (::strcmp(key, "DMRDelay") == 0)
|
||||
m_modemDMRDelay = (unsigned int)::atoi(value);
|
||||
else if (::strcmp(key, "RXOffset") == 0)
|
||||
m_modemRxOffset = ::atoi(value);
|
||||
else if (::strcmp(key, "TXOffset") == 0)
|
||||
m_modemTxOffset = ::atoi(value);
|
||||
else if (::strcmp(key, "RXLevel") == 0)
|
||||
m_modemRXLevel = float(::atof(value));
|
||||
else if (::strcmp(key, "TXLevel") == 0)
|
||||
@@ -733,6 +739,16 @@ unsigned int CConf::getModemDMRDelay() const
|
||||
return m_modemDMRDelay;
|
||||
}
|
||||
|
||||
int CConf::getModemRxOffset() const
|
||||
{
|
||||
return m_modemRxOffset;
|
||||
}
|
||||
|
||||
int CConf::getModemTxOffset() const
|
||||
{
|
||||
return m_modemTxOffset;
|
||||
}
|
||||
|
||||
float CConf::getModemRXLevel() const
|
||||
{
|
||||
return m_modemRXLevel;
|
||||
|
||||
Reference in New Issue
Block a user