mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-16 05:11:49 -05:00
SSB: space sliders ticks more evenly depending on spectrum sample rate
This commit is contained in:
parent
06f49e1405
commit
21e52e33fb
@ -332,6 +332,8 @@ void SSBDemodGUI::applyBandwidths(bool force)
|
|||||||
int bw = ui->BW->value();
|
int bw = ui->BW->value();
|
||||||
int lw = ui->lowCut->value();
|
int lw = ui->lowCut->value();
|
||||||
int bwMax = 480/(1<<spanLog2);
|
int bwMax = 480/(1<<spanLog2);
|
||||||
|
int tickInterval = m_spectrumRate / 1200;
|
||||||
|
tickInterval = tickInterval == 0 ? 1 : tickInterval;
|
||||||
|
|
||||||
qDebug() << "SSBDemodGUI::applyBandwidths:"
|
qDebug() << "SSBDemodGUI::applyBandwidths:"
|
||||||
<< " dsb: " << dsb
|
<< " dsb: " << dsb
|
||||||
@ -339,7 +341,11 @@ void SSBDemodGUI::applyBandwidths(bool force)
|
|||||||
<< " m_spectrumRate: " << m_spectrumRate
|
<< " m_spectrumRate: " << m_spectrumRate
|
||||||
<< " bw: " << bw
|
<< " bw: " << bw
|
||||||
<< " lw: " << lw
|
<< " lw: " << lw
|
||||||
<< " bwMax: " << bwMax;
|
<< " bwMax: " << bwMax
|
||||||
|
<< " tickInterval: " << tickInterval;
|
||||||
|
|
||||||
|
ui->BW->setTickInterval(tickInterval);
|
||||||
|
ui->lowCut->setTickInterval(tickInterval);
|
||||||
|
|
||||||
bw = bw < -bwMax ? -bwMax : bw > bwMax ? bwMax : bw;
|
bw = bw < -bwMax ? -bwMax : bw > bwMax ? bwMax : bw;
|
||||||
|
|
||||||
|
@ -458,6 +458,8 @@ void SSBModGUI::applyBandwidths(bool force)
|
|||||||
int bw = ui->BW->value();
|
int bw = ui->BW->value();
|
||||||
int lw = ui->lowCut->value();
|
int lw = ui->lowCut->value();
|
||||||
int bwMax = 480/(1<<spanLog2);
|
int bwMax = 480/(1<<spanLog2);
|
||||||
|
int tickInterval = m_spectrumRate / 1200;
|
||||||
|
tickInterval = tickInterval == 0 ? 1 : tickInterval;
|
||||||
|
|
||||||
qDebug() << "SSBModGUI::applyBandwidths:"
|
qDebug() << "SSBModGUI::applyBandwidths:"
|
||||||
<< " dsb: " << dsb
|
<< " dsb: " << dsb
|
||||||
@ -465,7 +467,11 @@ void SSBModGUI::applyBandwidths(bool force)
|
|||||||
<< " m_spectrumRate: " << m_spectrumRate
|
<< " m_spectrumRate: " << m_spectrumRate
|
||||||
<< " bw: " << bw
|
<< " bw: " << bw
|
||||||
<< " lw: " << lw
|
<< " lw: " << lw
|
||||||
<< " bwMax: " << bwMax;
|
<< " bwMax: " << bwMax
|
||||||
|
<< " tickInterval: " << tickInterval;
|
||||||
|
|
||||||
|
ui->BW->setTickInterval(tickInterval);
|
||||||
|
ui->lowCut->setTickInterval(tickInterval);
|
||||||
|
|
||||||
bw = bw < -bwMax ? -bwMax : bw > bwMax ? bwMax : bw;
|
bw = bw < -bwMax ? -bwMax : bw > bwMax ? bwMax : bw;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user