mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-09-28 15:56:33 -04:00
ChannelAnalzyerNG: fixed bandwidth expand/shrink with baseband sample rate changes
This commit is contained in:
parent
88d7a97b97
commit
457b9aa2c8
@ -163,19 +163,12 @@ bool ChannelAnalyzerNGGUI::handleMessage(const Message& message)
|
|||||||
{
|
{
|
||||||
int newRate = getRequestedChannelSampleRate() / (1<<m_spanLog2);
|
int newRate = getRequestedChannelSampleRate() / (1<<m_spanLog2);
|
||||||
|
|
||||||
uint64_t newBW = (ui->BW->value() * 100L * m_rate) / newRate;
|
|
||||||
uint64_t newLC = (ui->lowCut->value() * 100L * m_rate) / newRate;
|
|
||||||
|
|
||||||
qDebug() << "ChannelAnalyzerNGGUI::handleMessage: MsgReportChannelSampleRateChanged:"
|
qDebug() << "ChannelAnalyzerNGGUI::handleMessage: MsgReportChannelSampleRateChanged:"
|
||||||
<< " newRate: " << newRate
|
<< "m_rate: " << m_rate
|
||||||
<< " newBW: " << newBW
|
<< " newRate: " << newRate;
|
||||||
<< " newLC: " << newLC;
|
|
||||||
|
|
||||||
m_rate = newRate;
|
m_rate = newRate;
|
||||||
|
|
||||||
ui->BW->setValue(newBW/100);
|
|
||||||
ui->lowCut->setValue(newLC/100);
|
|
||||||
|
|
||||||
blockApplySettings(true);
|
blockApplySettings(true);
|
||||||
setFiltersUIBoundaries();
|
setFiltersUIBoundaries();
|
||||||
blockApplySettings(false);
|
blockApplySettings(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user