1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-10 10:33:29 -05:00

ATV Demod: make sure channel marker is correctly updated when channel sample rate changes

This commit is contained in:
f4exb 2017-02-25 13:14:29 +01:00
parent fa3e39859a
commit 3e9db6af09
2 changed files with 8 additions and 2 deletions

View File

@ -151,7 +151,7 @@ void ATVDemod::InitATVParameters(int intMsps, int intLineDurationUs, int intTopD
m_objRunning.m_blnHSync = blnHSync; m_objRunning.m_blnHSync = blnHSync;
m_objRunning.m_blnVSync = blnVSync; m_objRunning.m_blnVSync = blnVSync;
qDebug() << "ATV Settings " qDebug() << "ATVDemod::InitATVParameters:"
<< " - Msps: " << intMsps << " - Msps: " << intMsps
<< " - Line us: " << intLineDurationUs << " - Line us: " << intLineDurationUs
<< " - Top us: " << intTopDurationUs << " - Top us: " << intTopDurationUs

View File

@ -180,6 +180,7 @@ void ATVDemodGUI::viewChanged()
void ATVDemodGUI::channelSampleRateChanged() void ATVDemodGUI::channelSampleRateChanged()
{ {
qDebug("ATVDemodGUI::channelSampleRateChanged");
applySettings(); applySettings();
} }
@ -299,7 +300,12 @@ void ATVDemodGUI::applySettings()
enmSelectedModulation, ui->hSync->isChecked(), enmSelectedModulation, ui->hSync->isChecked(),
ui->vSync->isChecked()); ui->vSync->isChecked());
m_objChannelMarker.setBandwidth(m_objATVDemod->GetSampleRate()); qDebug() << "ATVDemodGUI::applySettings:"
<< " m_objChannelizer.inputSampleRate: " << m_objChannelizer->getInputSampleRate()
<< " m_objATVDemod.sampleRate: " << m_objATVDemod->GetSampleRate();
//m_objChannelMarker.setBandwidth(m_objATVDemod->GetSampleRate()); it is unreliable at this moment
m_objChannelMarker.setBandwidth(m_objChannelizer->getInputSampleRate());
} }
} }