1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-02-03 09:44:01 -05:00

DSD demod: rescale squelch

This commit is contained in:
f4exb 2017-10-03 23:03:29 +02:00
parent 6e2e8dc2b5
commit 96530f13f4
3 changed files with 4 additions and 4 deletions

View File

@ -476,8 +476,8 @@ void DSDDemod::apply(bool force)
if ((m_config.m_squelch != m_running.m_squelch) || force)
{
// input is a value in tenths of dB
m_squelchLevel = std::pow(10.0, m_config.m_squelch / 100.0);
// input is a value in dB
m_squelchLevel = std::pow(10.0, m_config.m_squelch / 10.0);
//m_squelchLevel *= m_squelchLevel;
}

View File

@ -292,7 +292,7 @@ private:
m_volume(1.0),
m_baudRate(4800),
m_squelchGate(1),
m_squelch(0),
m_squelch(-40.0),
m_audioMute(false),
m_audioSampleRate(0),
m_enableCosineFiltering(false),

View File

@ -413,7 +413,7 @@ void DSDDemodGUI::applySettings(bool force)
ui->volume->value() / 10.0,
DSDDemodBaudRates::getRate(ui->baudRate->currentIndex()),
ui->squelchGate->value(), // in 10ths of ms
ui->squelch->value(),
ui->squelch->value() / 10.0,
ui->audioMute->isChecked(),
m_enableCosineFiltering,
m_syncOrConstellation,