kopia lustrzana https://github.com/f4exb/sdrangel
Adjust number of frequency digits depending whether transverter is enabled
rodzic
5b27a50cf8
commit
929e0d34dc
|
@ -159,7 +159,7 @@ void BladeRF2MIMOGui::displaySettings()
|
|||
ui->transverter->setDeltaFrequency(m_settings.m_rxTransverterDeltaFrequency);
|
||||
ui->transverter->setDeltaFrequencyActive(m_settings.m_rxTransverterMode);
|
||||
ui->transverter->setIQOrder(m_settings.m_iqOrder);
|
||||
ui->centerFrequency->setValueRange(9, m_fMinRx / 1000, m_fMaxRx / 1000);
|
||||
ui->centerFrequency->setValueRange(7, m_fMinRx / 1000, m_fMaxRx / 1000);
|
||||
ui->centerFrequency->setValue(m_settings.m_rxCenterFrequency / 1000);
|
||||
ui->bandwidth->setValueRange(5, m_bwMinRx / 1000, m_bwMaxRx / 1000);
|
||||
ui->bandwidth->setValue(m_settings.m_rxBandwidth / 1000);
|
||||
|
@ -187,7 +187,7 @@ void BladeRF2MIMOGui::displaySettings()
|
|||
ui->transverter->setDeltaFrequency(m_settings.m_txTransverterDeltaFrequency);
|
||||
ui->transverter->setDeltaFrequencyActive(m_settings.m_txTransverterMode);
|
||||
ui->transverter->setIQOrder(m_settings.m_iqOrder);
|
||||
ui->centerFrequency->setValueRange(9, m_fMinTx / 1000, m_fMaxTx / 1000);
|
||||
ui->centerFrequency->setValueRange(7, m_fMinTx / 1000, m_fMaxTx / 1000);
|
||||
ui->centerFrequency->setValue(m_settings.m_txCenterFrequency / 1000);
|
||||
ui->bandwidth->setValueRange(5, m_bwMinTx / 1000, m_bwMaxTx / 1000);
|
||||
ui->bandwidth->setValue(m_settings.m_txBandwidth / 1000);
|
||||
|
@ -705,12 +705,19 @@ void BladeRF2MIMOGui::updateFrequencyLimits()
|
|||
qint64 minLimit = f_min/1000 + deltaFrequency;
|
||||
qint64 maxLimit = f_max/1000 + deltaFrequency;
|
||||
|
||||
minLimit = minLimit < 0 ? 0 : minLimit > 999999999 ? 999999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 999999999 ? 999999999 : maxLimit;
|
||||
|
||||
if (m_settings.m_txTransverterMode || m_settings.m_rxTransverterMode)
|
||||
{
|
||||
minLimit = minLimit < 0 ? 0 : minLimit > 999999999 ? 999999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 999999999 ? 999999999 : maxLimit;
|
||||
ui->centerFrequency->setValueRange(9, minLimit, maxLimit);
|
||||
}
|
||||
else
|
||||
{
|
||||
minLimit = minLimit < 0 ? 0 : minLimit > 9999999 ? 9999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 9999999 ? 9999999 : maxLimit;
|
||||
ui->centerFrequency->setValueRange(7, minLimit, maxLimit);
|
||||
}
|
||||
qDebug("BladeRF2MIMOGui::updateFrequencyLimits: Rx: delta: %lld min: %lld max: %lld", deltaFrequency, minLimit, maxLimit);
|
||||
|
||||
ui->centerFrequency->setValueRange(9, minLimit, maxLimit);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -719,12 +726,19 @@ void BladeRF2MIMOGui::updateFrequencyLimits()
|
|||
qint64 minLimit = f_min/1000 + deltaFrequency;
|
||||
qint64 maxLimit = f_max/1000 + deltaFrequency;
|
||||
|
||||
minLimit = minLimit < 0 ? 0 : minLimit > 999999999 ? 999999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 999999999 ? 999999999 : maxLimit;
|
||||
|
||||
if (m_settings.m_txTransverterMode || m_settings.m_rxTransverterMode)
|
||||
{
|
||||
minLimit = minLimit < 0 ? 0 : minLimit > 999999999 ? 999999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 999999999 ? 999999999 : maxLimit;
|
||||
ui->centerFrequency->setValueRange(9, minLimit, maxLimit);
|
||||
}
|
||||
else
|
||||
{
|
||||
minLimit = minLimit < 0 ? 0 : minLimit > 9999999 ? 9999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 9999999 ? 9999999 : maxLimit;
|
||||
ui->centerFrequency->setValueRange(7, minLimit, maxLimit);
|
||||
}
|
||||
qDebug("BladeRF2MIMOGui::updateFrequencyLimits: Rx: delta: %lld min: %lld max: %lld", deltaFrequency, minLimit, maxLimit);
|
||||
|
||||
ui->centerFrequency->setValueRange(9, minLimit, maxLimit);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -586,19 +586,26 @@ void LimeSDRMIMOGUI::updateFrequencyLimits()
|
|||
{
|
||||
minF = m_fMinTx;
|
||||
maxF = m_fMaxTx;
|
||||
deltaFrequency = m_settings.m_rxTransverterMode ? m_settings.m_txTransverterDeltaFrequency/1000 : 0;
|
||||
deltaFrequency = m_settings.m_txTransverterMode ? m_settings.m_txTransverterDeltaFrequency/1000 : 0;
|
||||
}
|
||||
|
||||
|
||||
qint64 minLimit = minF/1000 + deltaFrequency;
|
||||
qint64 maxLimit = maxF/1000 + deltaFrequency;
|
||||
|
||||
minLimit = minLimit < 0 ? 0 : minLimit > 999999999 ? 999999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 999999999 ? 999999999 : maxLimit;
|
||||
|
||||
if (m_settings.m_txTransverterMode || m_settings.m_rxTransverterMode)
|
||||
{
|
||||
minLimit = minLimit < 0 ? 0 : minLimit > 999999999 ? 999999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 999999999 ? 999999999 : maxLimit;
|
||||
ui->centerFrequency->setValueRange(9, minLimit, maxLimit);
|
||||
}
|
||||
else
|
||||
{
|
||||
minLimit = minLimit < 0 ? 0 : minLimit > 9999999 ? 9999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 9999999 ? 9999999 : maxLimit;
|
||||
ui->centerFrequency->setValueRange(7, minLimit, maxLimit);
|
||||
}
|
||||
qDebug("LimeSDRMIMOGUI::updateFrequencyLimits: delta: %lld min: %lld max: %lld", deltaFrequency, minLimit, maxLimit);
|
||||
|
||||
ui->centerFrequency->setValueRange(9, minLimit, maxLimit);
|
||||
}
|
||||
|
||||
void LimeSDRMIMOGUI::updateLPFLimits()
|
||||
|
|
|
@ -383,12 +383,19 @@ void PlutoSDRMIMOGUI::updateFrequencyLimits()
|
|||
minLimit = minLimit/1000 + deltaFrequency;
|
||||
maxLimit = maxLimit/1000 + deltaFrequency;
|
||||
|
||||
minLimit = minLimit < 0 ? 0 : minLimit > 999999999 ? 999999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 999999999 ? 999999999 : maxLimit;
|
||||
|
||||
if (m_settings.m_txTransverterMode || m_settings.m_rxTransverterMode)
|
||||
{
|
||||
minLimit = minLimit < 0 ? 0 : minLimit > 999999999 ? 999999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 999999999 ? 999999999 : maxLimit;
|
||||
ui->centerFrequency->setValueRange(9, minLimit, maxLimit);
|
||||
}
|
||||
else
|
||||
{
|
||||
minLimit = minLimit < 0 ? 0 : minLimit > 9999999 ? 9999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 9999999 ? 9999999 : maxLimit;
|
||||
ui->centerFrequency->setValueRange(7, minLimit, maxLimit);
|
||||
}
|
||||
qDebug("PlutoSDRMIMOGUI::updateFrequencyLimits: delta: %lld min: %lld max: %lld", deltaFrequency, minLimit, maxLimit);
|
||||
|
||||
ui->centerFrequency->setValueRange(9, minLimit, maxLimit);
|
||||
}
|
||||
|
||||
bool PlutoSDRMIMOGUI::handleMessage(const Message& message)
|
||||
|
|
|
@ -76,7 +76,7 @@ XTRXMIMOGUI::XTRXMIMOGUI(DeviceUISet *deviceUISet, QWidget* parent) :
|
|||
|
||||
m_xtrxMIMO->getLORange(minF, maxF, stepF);
|
||||
ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold));
|
||||
ui->centerFrequency->setValueRange(9, ((uint32_t) minF)/1000, ((uint32_t) maxF)/1000); // frequency dial is in kHz
|
||||
ui->centerFrequency->setValueRange(7, ((uint32_t) minF)/1000, ((uint32_t) maxF)/1000); // frequency dial is in kHz
|
||||
|
||||
m_xtrxMIMO->getSRRange(minF, maxF, stepF);
|
||||
ui->sampleRate->setColorMapper(ColorMapper(ColorMapper::GrayGreenYellow));
|
||||
|
|
|
@ -50,7 +50,7 @@ Bladerf1OutputGui::Bladerf1OutputGui(DeviceUISet *deviceUISet, QWidget* parent)
|
|||
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
||||
getContents()->setStyleSheet("#Bladerf1OutputGui { background-color: rgb(64, 64, 64); }");
|
||||
m_helpURL = "/plugins/samplesink/bladerf1output/readme.md"; ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold));
|
||||
ui->centerFrequency->setValueRange(9, BLADERF_FREQUENCY_MIN_XB200/1000, BLADERF_FREQUENCY_MAX/1000);
|
||||
ui->centerFrequency->setValueRange(7, BLADERF_FREQUENCY_MIN_XB200/1000, BLADERF_FREQUENCY_MAX/1000);
|
||||
|
||||
ui->sampleRate->setColorMapper(ColorMapper(ColorMapper::GrayGreenYellow));
|
||||
ui->sampleRate->setValueRange(8, BLADERF_SAMPLERATE_MIN, BLADERF_SAMPLERATE_REC_MAX);
|
||||
|
@ -348,11 +348,19 @@ void Bladerf1OutputGui::on_xb200_currentIndexChanged(int index)
|
|||
|
||||
if (m_settings.m_xb200)
|
||||
{
|
||||
ui->centerFrequency->setValueRange(9, BLADERF_FREQUENCY_MIN_XB200/1000, BLADERF_FREQUENCY_MAX/1000);
|
||||
if (m_settings.m_transverterMode) {
|
||||
ui->centerFrequency->setValueRange(9, BLADERF_FREQUENCY_MIN_XB200/1000, BLADERF_FREQUENCY_MAX/1000);
|
||||
} else {
|
||||
ui->centerFrequency->setValueRange(7, BLADERF_FREQUENCY_MIN_XB200/1000, BLADERF_FREQUENCY_MAX/1000);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ui->centerFrequency->setValueRange(9, BLADERF_FREQUENCY_MIN/1000, BLADERF_FREQUENCY_MAX/1000);
|
||||
if (m_settings.m_transverterMode) {
|
||||
ui->centerFrequency->setValueRange(9, BLADERF_FREQUENCY_MIN/1000, BLADERF_FREQUENCY_MAX/1000);
|
||||
} else {
|
||||
ui->centerFrequency->setValueRange(7, BLADERF_FREQUENCY_MIN/1000, BLADERF_FREQUENCY_MAX/1000);
|
||||
}
|
||||
}
|
||||
|
||||
sendSettings();
|
||||
|
|
|
@ -57,7 +57,7 @@ BladeRF2OutputGui::BladeRF2OutputGui(DeviceUISet *deviceUISet, QWidget* parent)
|
|||
m_sampleSink->getFrequencyRange(f_min, f_max, step, scale);
|
||||
qDebug("BladeRF2OutputGui::BladeRF2OutputGui: getFrequencyRange: [%lu,%lu] step: %d", f_min, f_max, step);
|
||||
ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold));
|
||||
ui->centerFrequency->setValueRange(9, f_min/1000, f_max/1000);
|
||||
ui->centerFrequency->setValueRange(7, f_min/1000, f_max/1000);
|
||||
|
||||
m_sampleSink->getSampleRateRange(min, max, step, scale);
|
||||
qDebug("BladeRF2OutputGui::BladeRF2OutputGui: getSampleRateRange: [%d,%d] step: %d", min, max, step);
|
||||
|
@ -143,12 +143,19 @@ void BladeRF2OutputGui::updateFrequencyLimits()
|
|||
qint64 minLimit = f_min/1000 + deltaFrequency;
|
||||
qint64 maxLimit = f_max/1000 + deltaFrequency;
|
||||
|
||||
minLimit = minLimit < 0 ? 0 : minLimit > 999999999 ? 999999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 999999999 ? 999999999 : maxLimit;
|
||||
|
||||
if (m_settings.m_transverterMode)
|
||||
{
|
||||
minLimit = minLimit < 0 ? 0 : minLimit > 999999999 ? 999999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 999999999 ? 999999999 : maxLimit;
|
||||
ui->centerFrequency->setValueRange(9, minLimit, maxLimit);
|
||||
}
|
||||
else
|
||||
{
|
||||
minLimit = minLimit < 0 ? 0 : minLimit > 9999999 ? 9999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 9999999 ? 9999999 : maxLimit;
|
||||
ui->centerFrequency->setValueRange(7, minLimit, maxLimit);
|
||||
}
|
||||
qDebug("BladeRF2OutputGui::updateFrequencyLimits: delta: %lld min: %lld max: %lld", deltaFrequency, minLimit, maxLimit);
|
||||
|
||||
ui->centerFrequency->setValueRange(9, minLimit, maxLimit);
|
||||
}
|
||||
|
||||
void BladeRF2OutputGui::setCenterFrequencySetting(uint64_t kHzValue)
|
||||
|
|
|
@ -53,7 +53,7 @@ HackRFOutputGui::HackRFOutputGui(DeviceUISet *deviceUISet, QWidget* parent) :
|
|||
getContents()->setStyleSheet("#HackRFOutputGui { background-color: rgb(64, 64, 64); }");
|
||||
m_helpURL = "plugins/samplesink/hackrfoutput/readme.md";
|
||||
ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold));
|
||||
ui->centerFrequency->setValueRange(9, 0U, 999999999U);
|
||||
ui->centerFrequency->setValueRange(7, 0U, 999999999U);
|
||||
|
||||
ui->sampleRate->setColorMapper(ColorMapper(ColorMapper::GrayGreenYellow));
|
||||
ui->sampleRate->setValueRange(8, 1000000U, 20000000U);
|
||||
|
@ -226,12 +226,19 @@ void HackRFOutputGui::updateFrequencyLimits()
|
|||
qint64 minLimit = (0U) + deltaFrequency;
|
||||
qint64 maxLimit = (7250000U) + deltaFrequency;
|
||||
|
||||
minLimit = minLimit < 0 ? 0 : minLimit > 999999999 ? 999999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 999999999 ? 999999999 : maxLimit;
|
||||
|
||||
if (m_settings.m_transverterMode)
|
||||
{
|
||||
minLimit = minLimit < 0 ? 0 : minLimit > 999999999 ? 999999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 999999999 ? 999999999 : maxLimit;
|
||||
ui->centerFrequency->setValueRange(9, minLimit, maxLimit);
|
||||
}
|
||||
else
|
||||
{
|
||||
minLimit = minLimit < 0 ? 0 : minLimit > 9999999 ? 9999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 9999999 ? 9999999 : maxLimit;
|
||||
ui->centerFrequency->setValueRange(7, minLimit, maxLimit);
|
||||
}
|
||||
qDebug("HackRFOutputGui::updateFrequencyLimits: delta: %lld min: %lld max: %lld", deltaFrequency, minLimit, maxLimit);
|
||||
|
||||
ui->centerFrequency->setValueRange(9, minLimit, maxLimit);
|
||||
}
|
||||
|
||||
void HackRFOutputGui::displayFcTooltip()
|
||||
|
|
|
@ -54,7 +54,7 @@ LimeSDROutputGUI::LimeSDROutputGUI(DeviceUISet *deviceUISet, QWidget* parent) :
|
|||
|
||||
m_limeSDROutput->getLORange(minF, maxF);
|
||||
ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold));
|
||||
ui->centerFrequency->setValueRange(9, ((uint32_t) minF)/1000, ((uint32_t) maxF)/1000); // frequency dial is in kHz
|
||||
ui->centerFrequency->setValueRange(7, ((uint32_t) minF)/1000, ((uint32_t) maxF)/1000); // frequency dial is in kHz
|
||||
|
||||
m_limeSDROutput->getSRRange(minF, maxF);
|
||||
ui->sampleRate->setColorMapper(ColorMapper(ColorMapper::GrayGreenYellow));
|
||||
|
@ -156,12 +156,19 @@ void LimeSDROutputGUI::updateFrequencyLimits()
|
|||
// Min freq is 30MHz - NCO must be used to go below this
|
||||
qint64 minFreq = m_settings.m_ncoEnable ? 30000 + m_settings.m_ncoFrequency/1000 : 30000;
|
||||
|
||||
minLimit = minLimit < minFreq ? minFreq : minLimit > 999999999 ? 999999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 999999999 ? 999999999 : maxLimit;
|
||||
|
||||
if (m_settings.m_transverterMode)
|
||||
{
|
||||
minLimit = minLimit < minFreq ? minFreq : minLimit > 999999999 ? 999999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 999999999 ? 999999999 : maxLimit;
|
||||
ui->centerFrequency->setValueRange(9, minLimit, maxLimit);
|
||||
}
|
||||
else
|
||||
{
|
||||
minLimit = minLimit < minFreq ? minFreq : minLimit > 9999999 ? 9999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 9999999 ? 9999999 : maxLimit;
|
||||
ui->centerFrequency->setValueRange(7, minLimit, maxLimit);
|
||||
}
|
||||
qDebug("LimeSDROutputGUI::updateFrequencyLimits: delta: %lld min: %lld max: %lld", deltaFrequency, minLimit, maxLimit);
|
||||
|
||||
ui->centerFrequency->setValueRange(9, minLimit, maxLimit);
|
||||
}
|
||||
|
||||
bool LimeSDROutputGUI::handleMessage(const Message& message)
|
||||
|
|
|
@ -443,12 +443,19 @@ void PlutoSDROutputGUI::updateFrequencyLimits()
|
|||
minLimit = minLimit/1000 + deltaFrequency;
|
||||
maxLimit = maxLimit/1000 + deltaFrequency;
|
||||
|
||||
minLimit = minLimit < 0 ? 0 : minLimit > 999999999 ? 999999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 999999999 ? 999999999 : maxLimit;
|
||||
|
||||
if (m_settings.m_transverterMode)
|
||||
{
|
||||
minLimit = minLimit < 0 ? 0 : minLimit > 999999999 ? 999999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 999999999 ? 999999999 : maxLimit;
|
||||
ui->centerFrequency->setValueRange(9, minLimit, maxLimit);
|
||||
}
|
||||
else
|
||||
{
|
||||
minLimit = minLimit < 0 ? 0 : minLimit > 9999999 ? 9999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 9999999 ? 9999999 : maxLimit;
|
||||
ui->centerFrequency->setValueRange(7, minLimit, maxLimit);
|
||||
}
|
||||
qDebug("PlutoSDRInputGui::updateFrequencyLimits: delta: %lld min: %lld max: %lld", deltaFrequency, minLimit, maxLimit);
|
||||
|
||||
ui->centerFrequency->setValueRange(9, minLimit, maxLimit);
|
||||
}
|
||||
|
||||
void PlutoSDROutputGUI::handleInputMessages()
|
||||
|
|
|
@ -67,7 +67,7 @@ SoapySDROutputGui::SoapySDROutputGui(DeviceUISet *deviceUISet, QWidget* parent)
|
|||
ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold));
|
||||
uint64_t f_min, f_max;
|
||||
m_sampleSink->getFrequencyRange(f_min, f_max);
|
||||
ui->centerFrequency->setValueRange(9, f_min/1000, f_max/1000);
|
||||
ui->centerFrequency->setValueRange(7, f_min/1000, f_max/1000);
|
||||
|
||||
createCorrectionsControl();
|
||||
createAntennasControl(m_sampleSink->getAntennas());
|
||||
|
@ -819,12 +819,19 @@ void SoapySDROutputGui::updateFrequencyLimits()
|
|||
qint64 minLimit = f_min/1000 + deltaFrequency;
|
||||
qint64 maxLimit = f_max/1000 + deltaFrequency;
|
||||
|
||||
minLimit = minLimit < 0 ? 0 : minLimit > 999999999 ? 999999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 999999999 ? 999999999 : maxLimit;
|
||||
|
||||
if (m_settings.m_transverterMode)
|
||||
{
|
||||
minLimit = minLimit < 0 ? 0 : minLimit > 999999999 ? 999999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 999999999 ? 999999999 : maxLimit;
|
||||
ui->centerFrequency->setValueRange(9, minLimit, maxLimit);
|
||||
}
|
||||
else
|
||||
{
|
||||
minLimit = minLimit < 0 ? 0 : minLimit > 9999999 ? 9999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 9999999 ? 9999999 : maxLimit;
|
||||
ui->centerFrequency->setValueRange(7, minLimit, maxLimit);
|
||||
}
|
||||
qDebug("SoapySDRInputGui::updateFrequencyLimits: delta: %lld min: %lld max: %lld", deltaFrequency, minLimit, maxLimit);
|
||||
|
||||
ui->centerFrequency->setValueRange(9, minLimit, maxLimit);
|
||||
}
|
||||
|
||||
void SoapySDROutputGui::setCenterFrequencySetting(uint64_t kHzValue)
|
||||
|
|
|
@ -55,7 +55,7 @@ USRPOutputGUI::USRPOutputGUI(DeviceUISet *deviceUISet, QWidget* parent) :
|
|||
|
||||
m_usrpOutput->getLORange(minF, maxF);
|
||||
ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold));
|
||||
ui->centerFrequency->setValueRange(9, ((uint32_t) minF)/1000, ((uint32_t) maxF)/1000); // frequency dial is in kHz
|
||||
ui->centerFrequency->setValueRange(7, ((uint32_t) minF)/1000, ((uint32_t) maxF)/1000); // frequency dial is in kHz
|
||||
|
||||
m_usrpOutput->getSRRange(minF, maxF);
|
||||
ui->sampleRate->setColorMapper(ColorMapper(ColorMapper::GrayGreenYellow));
|
||||
|
@ -167,12 +167,19 @@ void USRPOutputGUI::updateFrequencyLimits()
|
|||
qint64 minLimit = minF/1000 + deltaFrequency;
|
||||
qint64 maxLimit = maxF/1000 + deltaFrequency;
|
||||
|
||||
minLimit = minLimit < 0 ? 0 : minLimit > 999999999 ? 999999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 999999999 ? 999999999 : maxLimit;
|
||||
|
||||
if (m_settings.m_transverterMode)
|
||||
{
|
||||
minLimit = minLimit < 0 ? 0 : minLimit > 999999999 ? 999999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 999999999 ? 999999999 : maxLimit;
|
||||
ui->centerFrequency->setValueRange(9, minLimit, maxLimit);
|
||||
}
|
||||
else
|
||||
{
|
||||
minLimit = minLimit < 0 ? 0 : minLimit > 9999999 ? 9999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 9999999 ? 9999999 : maxLimit;
|
||||
ui->centerFrequency->setValueRange(7, minLimit, maxLimit);
|
||||
}
|
||||
qDebug("USRPOutputGUI::updateFrequencyLimits: delta: %lld min: %lld max: %lld", deltaFrequency, minLimit, maxLimit);
|
||||
|
||||
ui->centerFrequency->setValueRange(9, minLimit, maxLimit);
|
||||
}
|
||||
|
||||
bool USRPOutputGUI::handleMessage(const Message& message)
|
||||
|
|
|
@ -56,7 +56,7 @@ XTRXOutputGUI::XTRXOutputGUI(DeviceUISet *deviceUISet, QWidget* parent) :
|
|||
|
||||
m_XTRXOutput->getLORange(minF, maxF, stepF);
|
||||
ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold));
|
||||
ui->centerFrequency->setValueRange(9, ((uint32_t) minF)/1000, ((uint32_t) maxF)/1000); // frequency dial is in kHz
|
||||
ui->centerFrequency->setValueRange(7, ((uint32_t) minF)/1000, ((uint32_t) maxF)/1000); // frequency dial is in kHz
|
||||
|
||||
m_XTRXOutput->getSRRange(minF, maxF, stepF);
|
||||
ui->sampleRate->setColorMapper(ColorMapper(ColorMapper::GrayGreenYellow));
|
||||
|
|
|
@ -53,7 +53,7 @@ Bladerf1InputGui::Bladerf1InputGui(DeviceUISet *deviceUISet, QWidget* parent) :
|
|||
getContents()->setStyleSheet("#Bladerf1InputGui { background-color: rgb(64, 64, 64); }");
|
||||
m_helpURL = "plugins/samplesource/bladerf1input/readme.md";
|
||||
ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold));
|
||||
ui->centerFrequency->setValueRange(9, BLADERF_FREQUENCY_MIN_XB200/1000, BLADERF_FREQUENCY_MAX/1000);
|
||||
ui->centerFrequency->setValueRange(7, BLADERF_FREQUENCY_MIN_XB200/1000, BLADERF_FREQUENCY_MAX/1000);
|
||||
|
||||
ui->sampleRate->setColorMapper(ColorMapper(ColorMapper::GrayGreenYellow));
|
||||
// BladeRF can go as low as 80 kS/s but because of buffering in practice experience is not good below 330 kS/s
|
||||
|
@ -406,11 +406,19 @@ void Bladerf1InputGui::on_xb200_currentIndexChanged(int index)
|
|||
|
||||
if (m_settings.m_xb200)
|
||||
{
|
||||
ui->centerFrequency->setValueRange(9, BLADERF_FREQUENCY_MIN_XB200/1000, BLADERF_FREQUENCY_MAX/1000);
|
||||
if (m_settings.m_transverterMode) {
|
||||
ui->centerFrequency->setValueRange(9, BLADERF_FREQUENCY_MIN_XB200/1000, BLADERF_FREQUENCY_MAX/1000);
|
||||
} else {
|
||||
ui->centerFrequency->setValueRange(7, BLADERF_FREQUENCY_MIN_XB200/1000, BLADERF_FREQUENCY_MAX/1000);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ui->centerFrequency->setValueRange(9, BLADERF_FREQUENCY_MIN/1000, BLADERF_FREQUENCY_MAX/1000);
|
||||
if (m_settings.m_transverterMode) {
|
||||
ui->centerFrequency->setValueRange(9, BLADERF_FREQUENCY_MIN/1000, BLADERF_FREQUENCY_MAX/1000);
|
||||
} else {
|
||||
ui->centerFrequency->setValueRange(7, BLADERF_FREQUENCY_MIN/1000, BLADERF_FREQUENCY_MAX/1000);
|
||||
}
|
||||
}
|
||||
|
||||
sendSettings();
|
||||
|
|
|
@ -58,7 +58,7 @@ BladeRF2InputGui::BladeRF2InputGui(DeviceUISet *deviceUISet, QWidget* parent) :
|
|||
|
||||
m_sampleSource->getFrequencyRange(f_min, f_max, step, scale);
|
||||
ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold));
|
||||
ui->centerFrequency->setValueRange(9, f_min/1000, f_max/1000);
|
||||
ui->centerFrequency->setValueRange(7, f_min/1000, f_max/1000);
|
||||
|
||||
m_sampleSource->getSampleRateRange(min, max, step, scale);
|
||||
ui->sampleRate->setColorMapper(ColorMapper(ColorMapper::GrayGreenYellow));
|
||||
|
@ -156,12 +156,19 @@ void BladeRF2InputGui::updateFrequencyLimits()
|
|||
qint64 minLimit = f_min/1000 + deltaFrequency;
|
||||
qint64 maxLimit = f_max/1000 + deltaFrequency;
|
||||
|
||||
minLimit = minLimit < 0 ? 0 : minLimit > 999999999 ? 999999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 999999999 ? 999999999 : maxLimit;
|
||||
|
||||
if (m_settings.m_transverterMode)
|
||||
{
|
||||
minLimit = minLimit < 0 ? 0 : minLimit > 999999999 ? 999999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 999999999 ? 999999999 : maxLimit;
|
||||
ui->centerFrequency->setValueRange(9, minLimit, maxLimit);
|
||||
}
|
||||
else
|
||||
{
|
||||
minLimit = minLimit < 0 ? 0 : minLimit > 9999999 ? 9999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 9999999 ? 9999999 : maxLimit;
|
||||
ui->centerFrequency->setValueRange(7, minLimit, maxLimit);
|
||||
}
|
||||
qDebug("BladeRF2OutputGui::updateFrequencyLimits: delta: %lld min: %lld max: %lld", deltaFrequency, minLimit, maxLimit);
|
||||
|
||||
ui->centerFrequency->setValueRange(9, minLimit, maxLimit);
|
||||
}
|
||||
|
||||
void BladeRF2InputGui::setCenterFrequencySetting(uint64_t kHzValue)
|
||||
|
|
|
@ -274,12 +274,19 @@ void FCDProGui::updateFrequencyLimits()
|
|||
qint64 minLimit = fcd_traits<Pro>::loLowLimitFreq/1000 + deltaFrequency;
|
||||
qint64 maxLimit = fcd_traits<Pro>::loHighLimitFreq/1000 + deltaFrequency;
|
||||
|
||||
minLimit = minLimit < 0 ? 0 : minLimit > 999999999 ? 999999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 999999999 ? 999999999 : maxLimit;
|
||||
|
||||
if (m_settings.m_transverterMode)
|
||||
{
|
||||
minLimit = minLimit < 0 ? 0 : minLimit > 999999999 ? 999999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 999999999 ? 999999999 : maxLimit;
|
||||
ui->centerFrequency->setValueRange(9, minLimit, maxLimit);
|
||||
}
|
||||
else
|
||||
{
|
||||
minLimit = minLimit < 0 ? 0 : minLimit > 9999999 ? 9999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 9999999 ? 9999999 : maxLimit;
|
||||
ui->centerFrequency->setValueRange(7, minLimit, maxLimit);
|
||||
}
|
||||
qDebug("FCDProGui::updateFrequencyLimits: delta: %lld min: %lld max: %lld", deltaFrequency, minLimit, maxLimit);
|
||||
|
||||
ui->centerFrequency->setValueRange(9, minLimit, maxLimit);
|
||||
}
|
||||
|
||||
void FCDProGui::displaySettings()
|
||||
|
|
|
@ -190,12 +190,19 @@ void FCDProPlusGui::updateFrequencyLimits()
|
|||
qint64 minLimit = fcd_traits<ProPlus>::loLowLimitFreq/1000 + deltaFrequency;
|
||||
qint64 maxLimit = fcd_traits<ProPlus>::loHighLimitFreq/1000 + deltaFrequency;
|
||||
|
||||
minLimit = minLimit < 0 ? 0 : minLimit > 999999999 ? 999999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 999999999 ? 999999999 : maxLimit;
|
||||
|
||||
if (m_settings.m_transverterMode)
|
||||
{
|
||||
minLimit = minLimit < 0 ? 0 : minLimit > 999999999 ? 999999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 999999999 ? 999999999 : maxLimit;
|
||||
ui->centerFrequency->setValueRange(9, minLimit, maxLimit);
|
||||
}
|
||||
else
|
||||
{
|
||||
minLimit = minLimit < 0 ? 0 : minLimit > 9999999 ? 9999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 9999999 ? 9999999 : maxLimit;
|
||||
ui->centerFrequency->setValueRange(7, minLimit, maxLimit);
|
||||
}
|
||||
qDebug("FCDProPlusGui::updateFrequencyLimits: delta: %lld min: %lld max: %lld", deltaFrequency, minLimit, maxLimit);
|
||||
|
||||
ui->centerFrequency->setValueRange(9, minLimit, maxLimit);
|
||||
}
|
||||
|
||||
void FCDProPlusGui::displaySettings()
|
||||
|
|
|
@ -54,7 +54,7 @@ HackRFInputGui::HackRFInputGui(DeviceUISet *deviceUISet, QWidget* parent) :
|
|||
getContents()->setStyleSheet("#HackRFInputGui { background-color: rgb(64, 64, 64); }");
|
||||
m_helpURL = "plugins/samplesource/hackrfinput/readme.md";
|
||||
ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold));
|
||||
ui->centerFrequency->setValueRange(9, 0U, 999999999U);
|
||||
ui->centerFrequency->setValueRange(7, 0U, 9999999U);
|
||||
|
||||
ui->sampleRate->setColorMapper(ColorMapper(ColorMapper::GrayGreenYellow));
|
||||
ui->sampleRate->setValueRange(8, 1000000U, 20000000U);
|
||||
|
@ -196,12 +196,19 @@ void HackRFInputGui::updateFrequencyLimits()
|
|||
qint64 minLimit = (0U) + deltaFrequency;
|
||||
qint64 maxLimit = (7250000U) + deltaFrequency;
|
||||
|
||||
minLimit = minLimit < 0 ? 0 : minLimit > 999999999 ? 999999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 999999999 ? 999999999 : maxLimit;
|
||||
|
||||
if (m_settings.m_transverterMode)
|
||||
{
|
||||
minLimit = minLimit < 0 ? 0 : minLimit > 999999999 ? 999999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 999999999 ? 999999999 : maxLimit;
|
||||
ui->centerFrequency->setValueRange(9, minLimit, maxLimit);
|
||||
}
|
||||
else
|
||||
{
|
||||
minLimit = minLimit < 0 ? 0 : minLimit > 9999999 ? 9999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 9999999 ? 9999999 : maxLimit;
|
||||
ui->centerFrequency->setValueRange(7, minLimit, maxLimit);
|
||||
}
|
||||
qDebug("HackRFInputGui::updateFrequencyLimits: delta: %lld min: %lld max: %lld", deltaFrequency, minLimit, maxLimit);
|
||||
|
||||
ui->centerFrequency->setValueRange(9, minLimit, maxLimit);
|
||||
}
|
||||
|
||||
void HackRFInputGui::displaySampleRate()
|
||||
|
|
|
@ -279,12 +279,19 @@ void LimeSDRInputGUI::updateFrequencyLimits()
|
|||
// Min freq is 30MHz - NCO must be used to go below this
|
||||
qint64 minFreq = m_settings.m_ncoEnable ? 30000 + m_settings.m_ncoFrequency/1000 : 30000;
|
||||
|
||||
minLimit = minLimit < minFreq ? minFreq : minLimit > 999999999 ? 999999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 999999999 ? 999999999 : maxLimit;
|
||||
|
||||
if (m_settings.m_transverterMode)
|
||||
{
|
||||
minLimit = minLimit < minFreq ? minFreq : minLimit > 999999999 ? 999999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 999999999 ? 999999999 : maxLimit;
|
||||
ui->centerFrequency->setValueRange(9, minLimit, maxLimit);
|
||||
}
|
||||
else
|
||||
{
|
||||
minLimit = minLimit < minFreq ? minFreq : minLimit > 9999999 ? 9999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 9999999 ? 9999999 : maxLimit;
|
||||
ui->centerFrequency->setValueRange(7, minLimit, maxLimit);
|
||||
}
|
||||
qDebug("LimeSDRInputGUI::updateFrequencyLimits: delta: %lld min: %lld max: %lld", deltaFrequency, minLimit, maxLimit);
|
||||
|
||||
ui->centerFrequency->setValueRange(9, minLimit, maxLimit);
|
||||
}
|
||||
|
||||
void LimeSDRInputGUI::handleInputMessages()
|
||||
|
|
|
@ -229,12 +229,19 @@ void PerseusGui::updateFrequencyLimits()
|
|||
qint64 minLimit = 10 + deltaFrequency;
|
||||
qint64 maxLimit = 40000 + deltaFrequency;
|
||||
|
||||
minLimit = minLimit < 0 ? 0 : minLimit > 999999999 ? 999999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 999999999 ? 999999999 : maxLimit;
|
||||
|
||||
if (m_settings.m_transverterMode)
|
||||
{
|
||||
minLimit = minLimit < 0 ? 0 : minLimit > 999999999 ? 999999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 999999999 ? 999999999 : maxLimit;
|
||||
ui->centerFrequency->setValueRange(9, minLimit, maxLimit);
|
||||
}
|
||||
else
|
||||
{
|
||||
minLimit = minLimit < 0 ? 0 : minLimit > 9999999 ? 9999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 9999999 ? 9999999 : maxLimit;
|
||||
ui->centerFrequency->setValueRange(7, minLimit, maxLimit);
|
||||
}
|
||||
qDebug("PerseusGui::updateFrequencyLimits: delta: %lld min: %lld max: %lld", deltaFrequency, minLimit, maxLimit);
|
||||
|
||||
ui->centerFrequency->setValueRange(9, minLimit, maxLimit);
|
||||
}
|
||||
|
||||
void PerseusGui::sendSettings()
|
||||
|
|
|
@ -515,12 +515,19 @@ void PlutoSDRInputGui::updateFrequencyLimits()
|
|||
minLimit = minLimit/1000 + deltaFrequency;
|
||||
maxLimit = maxLimit/1000 + deltaFrequency;
|
||||
|
||||
minLimit = minLimit < 0 ? 0 : minLimit > 999999999 ? 999999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 999999999 ? 999999999 : maxLimit;
|
||||
|
||||
if (m_settings.m_transverterMode)
|
||||
{
|
||||
minLimit = minLimit < 0 ? 0 : minLimit > 999999999 ? 999999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 999999999 ? 999999999 : maxLimit;
|
||||
ui->centerFrequency->setValueRange(9, minLimit, maxLimit);
|
||||
}
|
||||
else
|
||||
{
|
||||
minLimit = minLimit < 0 ? 0 : minLimit > 9999999 ? 9999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 9999999 ? 9999999 : maxLimit;
|
||||
ui->centerFrequency->setValueRange(7, minLimit, maxLimit);
|
||||
}
|
||||
qDebug("PlutoSDRInputGui::updateFrequencyLimits: delta: %lld min: %lld max: %lld", deltaFrequency, minLimit, maxLimit);
|
||||
|
||||
ui->centerFrequency->setValueRange(9, minLimit, maxLimit);
|
||||
}
|
||||
|
||||
void PlutoSDRInputGui::handleInputMessages()
|
||||
|
|
|
@ -260,6 +260,11 @@ bool RemoteTCPInputGui::handleMessage(const Message& message)
|
|||
ui->deltaFrequency->setEnabled(sdra);
|
||||
ui->channelGain->setEnabled(sdra);
|
||||
ui->decimation->setEnabled(sdra);
|
||||
if (sdra) {
|
||||
ui->centerFrequency->setValueRange(9, 0, 999999999); // Should add transverter control to protocol in the future
|
||||
} else {
|
||||
ui->centerFrequency->setValueRange(7, 0, 9999999);
|
||||
}
|
||||
|
||||
displayGains();
|
||||
return true;
|
||||
|
|
|
@ -420,7 +420,7 @@ void RemoteTCPInputTCPHandler::applySettings(const RemoteTCPInputSettings& setti
|
|||
for (int i = 1; i < 3; i++)
|
||||
{
|
||||
if ((settings.m_gain[i] != m_settings.m_gain[i]) || force) {
|
||||
setIFGain(i, settings.m_gain[i]);
|
||||
//setIFGain(i, 20 + settings.m_gain[i]);
|
||||
}
|
||||
}
|
||||
if ((settings.m_rfBW != m_settings.m_rfBW) || force) {
|
||||
|
|
|
@ -538,6 +538,7 @@ bool RTLSDRInput::applySettings(const RTLSDRSettings& settings, bool force)
|
|||
|
||||
if(m_dev != 0)
|
||||
{
|
||||
qDebug() << "Set tuner gain " << settings.m_gain;
|
||||
if (rtlsdr_set_tuner_gain(m_dev, settings.m_gain) != 0) {
|
||||
qCritical("RTLSDRInput::applySettings: rtlsdr_set_tuner_gain() failed");
|
||||
} else {
|
||||
|
|
|
@ -69,7 +69,7 @@ SoapySDRInputGui::SoapySDRInputGui(DeviceUISet *deviceUISet, QWidget* parent) :
|
|||
ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold));
|
||||
uint64_t f_min, f_max;
|
||||
m_sampleSource->getFrequencyRange(f_min, f_max);
|
||||
ui->centerFrequency->setValueRange(9, f_min/1000, f_max/1000);
|
||||
ui->centerFrequency->setValueRange(7, f_min/1000, f_max/1000);
|
||||
|
||||
createCorrectionsControl();
|
||||
createAntennasControl(m_sampleSource->getAntennas());
|
||||
|
@ -856,12 +856,19 @@ void SoapySDRInputGui::updateFrequencyLimits()
|
|||
qint64 minLimit = f_min/1000 + deltaFrequency;
|
||||
qint64 maxLimit = f_max/1000 + deltaFrequency;
|
||||
|
||||
minLimit = minLimit < 0 ? 0 : minLimit > 999999999 ? 999999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 999999999 ? 999999999 : maxLimit;
|
||||
|
||||
if (m_settings.m_transverterMode)
|
||||
{
|
||||
minLimit = minLimit < 0 ? 0 : minLimit > 999999999 ? 999999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 999999999 ? 999999999 : maxLimit;
|
||||
ui->centerFrequency->setValueRange(9, minLimit, maxLimit);
|
||||
}
|
||||
else
|
||||
{
|
||||
minLimit = minLimit < 0 ? 0 : minLimit > 9999999 ? 9999999 : minLimit;
|
||||
maxLimit = maxLimit < 0 ? 0 : maxLimit > 9999999 ? 9999999 : maxLimit;
|
||||
ui->centerFrequency->setValueRange(7, minLimit, maxLimit);
|
||||
}
|
||||
qDebug("SoapySDRInputGui::updateFrequencyLimits: delta: %lld min: %lld max: %lld", deltaFrequency, minLimit, maxLimit);
|
||||
|
||||
ui->centerFrequency->setValueRange(9, minLimit, maxLimit);
|
||||
}
|
||||
|
||||
void SoapySDRInputGui::setCenterFrequencySetting(uint64_t kHzValue)
|
||||
|
|
|
@ -59,7 +59,7 @@ USRPInputGUI::USRPInputGUI(DeviceUISet *deviceUISet, QWidget* parent) :
|
|||
|
||||
m_usrpInput->getLORange(minF, maxF);
|
||||
ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold));
|
||||
ui->centerFrequency->setValueRange(9, ((uint32_t) minF)/1000, ((uint32_t) maxF)/1000); // frequency dial is in kHz
|
||||
ui->centerFrequency->setValueRange(7, ((uint32_t) minF)/1000, ((uint32_t) maxF)/1000); // frequency dial is in kHz
|
||||
|
||||
m_usrpInput->getSRRange(minF, maxF);
|
||||
ui->sampleRate->setColorMapper(ColorMapper(ColorMapper::GrayGreenYellow));
|
||||
|
|
|
@ -59,7 +59,7 @@ XTRXInputGUI::XTRXInputGUI(DeviceUISet *deviceUISet, QWidget* parent) :
|
|||
|
||||
m_XTRXInput->getLORange(minF, maxF, stepF);
|
||||
ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold));
|
||||
ui->centerFrequency->setValueRange(9, ((uint32_t) minF)/1000, ((uint32_t) maxF)/1000); // frequency dial is in kHz
|
||||
ui->centerFrequency->setValueRange(7, ((uint32_t) minF)/1000, ((uint32_t) maxF)/1000); // frequency dial is in kHz
|
||||
|
||||
m_XTRXInput->getSRRange(minF, maxF, stepF);
|
||||
ui->sampleRate->setColorMapper(ColorMapper(ColorMapper::GrayGreenYellow));
|
||||
|
|
Ładowanie…
Reference in New Issue