mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-15 12:51:49 -05:00
ATV Modulator: use consistent opposite sideband bandwidth
This commit is contained in:
parent
b76c246bcd
commit
836c3a56da
@ -266,7 +266,7 @@ void ATVModGUI::on_modulation_currentIndexChanged(int index)
|
|||||||
ui->rfBW->setMaximum(m_channelizer->getOutputSampleRate() / 200000);
|
ui->rfBW->setMaximum(m_channelizer->getOutputSampleRate() / 200000);
|
||||||
ui->rfOppBW->setMaximum(m_channelizer->getOutputSampleRate() / 200000);
|
ui->rfOppBW->setMaximum(m_channelizer->getOutputSampleRate() / 200000);
|
||||||
m_channelMarker.setBandwidth(ui->rfBW->value()*100000);
|
m_channelMarker.setBandwidth(ui->rfBW->value()*100000);
|
||||||
m_channelMarker.setOppositeBandwidth(ui->rfOppBW->value()*200000);
|
m_channelMarker.setOppositeBandwidth(ui->rfOppBW->value()*100000);
|
||||||
m_channelMarker.setSidebands(ChannelMarker::vlsb);
|
m_channelMarker.setSidebands(ChannelMarker::vlsb);
|
||||||
}
|
}
|
||||||
else if (index == (int) ATVMod::ATVModulationUSB)
|
else if (index == (int) ATVMod::ATVModulationUSB)
|
||||||
@ -281,7 +281,7 @@ void ATVModGUI::on_modulation_currentIndexChanged(int index)
|
|||||||
ui->rfBW->setMaximum(m_channelizer->getOutputSampleRate() / 200000);
|
ui->rfBW->setMaximum(m_channelizer->getOutputSampleRate() / 200000);
|
||||||
ui->rfOppBW->setMaximum(m_channelizer->getOutputSampleRate() / 200000);
|
ui->rfOppBW->setMaximum(m_channelizer->getOutputSampleRate() / 200000);
|
||||||
m_channelMarker.setBandwidth(ui->rfBW->value()*100000);
|
m_channelMarker.setBandwidth(ui->rfBW->value()*100000);
|
||||||
m_channelMarker.setOppositeBandwidth(ui->rfOppBW->value()*200000);
|
m_channelMarker.setOppositeBandwidth(ui->rfOppBW->value()*100000);
|
||||||
m_channelMarker.setSidebands(ChannelMarker::vusb);
|
m_channelMarker.setSidebands(ChannelMarker::vusb);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -329,11 +329,11 @@ void ATVModGUI::on_rfOppBW_valueChanged(int value)
|
|||||||
|
|
||||||
if (ui->modulation->currentIndex() == (int) ATVMod::ATVModulationVestigialLSB)
|
if (ui->modulation->currentIndex() == (int) ATVMod::ATVModulationVestigialLSB)
|
||||||
{
|
{
|
||||||
m_channelMarker.setOppositeBandwidth(-ui->rfOppBW->value()*200000);
|
m_channelMarker.setOppositeBandwidth(-ui->rfOppBW->value()*100000);
|
||||||
}
|
}
|
||||||
else if (ui->modulation->currentIndex() == (int) ATVMod::ATVModulationVestigialUSB)
|
else if (ui->modulation->currentIndex() == (int) ATVMod::ATVModulationVestigialUSB)
|
||||||
{
|
{
|
||||||
m_channelMarker.setOppositeBandwidth(ui->rfOppBW->value()*200000);
|
m_channelMarker.setOppositeBandwidth(ui->rfOppBW->value()*100000);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -1270,10 +1270,10 @@ void GLSpectrum::applyChanges()
|
|||||||
pw = dv->m_channelMarker->getLowCutoff();
|
pw = dv->m_channelMarker->getLowCutoff();
|
||||||
nw = dv->m_channelMarker->getBandwidth() / 2;
|
nw = dv->m_channelMarker->getBandwidth() / 2;
|
||||||
} else if (sidebands == ChannelMarker::vusb) {
|
} else if (sidebands == ChannelMarker::vusb) {
|
||||||
nw = -dv->m_channelMarker->getOppositeBandwidth() / 2; // negative bandwidth
|
nw = -dv->m_channelMarker->getOppositeBandwidth(); // negative bandwidth
|
||||||
pw = dv->m_channelMarker->getBandwidth(); // positive bandwidth
|
pw = dv->m_channelMarker->getBandwidth(); // positive bandwidth
|
||||||
} else if (sidebands == ChannelMarker::vlsb) {
|
} else if (sidebands == ChannelMarker::vlsb) {
|
||||||
pw = dv->m_channelMarker->getOppositeBandwidth() / 2; // positive bandwidth
|
pw = dv->m_channelMarker->getOppositeBandwidth(); // positive bandwidth
|
||||||
nw = -dv->m_channelMarker->getBandwidth(); // negative bandwidth
|
nw = -dv->m_channelMarker->getBandwidth(); // negative bandwidth
|
||||||
} else {
|
} else {
|
||||||
pw = dsbw / 2;
|
pw = dsbw / 2;
|
||||||
|
Loading…
Reference in New Issue
Block a user