void AirspyGui::on_fcPos_currentIndexChanged(int index) { if (index == 0) { m_settings.m_fcPos = AirspySettings::FC_POS_INFRA; sendSettings(); } else if (index == 1) { m_settings.m_fcPos = AirspySettings::FC_POS_SUPRA; sendSettings(); } else if (index == 2) { m_settings.m_fcPos = AirspySettings::FC_POS_CENTER; sendSettings(); } }
AirspyGui::AirspyGui(DeviceUISet *deviceUISet, QWidget* parent) : QWidget(parent), ui(new Ui::AirspyGui), m_deviceUISet(deviceUISet), m_doApplySettings(true), m_forceSettings(true), m_settings(), m_sampleSource(0), m_lastEngineState(DSPDeviceSourceEngine::StNotStarted) { m_sampleSource = (AirspyInput*) m_deviceUISet->m_deviceSourceAPI->getSampleSource(); ui->setupUi(this); ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold)); updateFrequencyLimits(); connect(&m_updateTimer, SIGNAL(timeout()), this, SLOT(updateHardware())); connect(&m_statusTimer, SIGNAL(timeout()), this, SLOT(updateStatus())); m_statusTimer.start(500); CRightClickEnabler *startStopRightClickEnabler = new CRightClickEnabler(ui->startStop); connect(startStopRightClickEnabler, SIGNAL(rightClick(const QPoint &)), this, SLOT(openDeviceSettingsDialog(const QPoint &))); displaySettings(); m_rates = ((AirspyInput*) m_sampleSource)->getSampleRates(); displaySampleRates(); connect(&m_inputMessageQueue, SIGNAL(messageEnqueued()), this, SLOT(handleInputMessages()), Qt::QueuedConnection); m_sampleSource->setMessageQueueToGUI(&m_inputMessageQueue); sendSettings(); }
void SDRdaemonSinkGui::on_txDelay_valueChanged(int value) { m_settings.m_txDelay = value / 100.0; ui->txDelayText->setText(tr("%1").arg(value)); updateTxDelayTooltip(); sendSettings(); }
void LimeSDROutputGUI::on_swInterp_currentIndexChanged(int index) { if ((index <0) || (index > 6)) return; m_settings.m_log2SoftInterp = index; sendSettings(); }
void Controller::setProfileID( uint8_t pid ){ if ( pid == getProfileID() ){ return; } EEPROM.write( EEPROM_TEMP_BASE + _cid * EEPROM_CONTROLLER_SETTING_SIZE, pid ); sendSettings(); }
void OsmoSDRGui::on_e4000LNAGain_valueChanged(int value) { int gain = e4kIdxToLNAGain(value); ui->e4000LNAGainDisplay->setText(tr("%1.%2").arg(gain / 10).arg(abs(gain % 10))); m_settings.m_lnaGain = gain; sendSettings(); }
void V4LGui::resetToDefaults() { m_generalSettings.resetToDefaults(); m_settings.resetToDefaults(); displaySettings(); sendSettings(); }
void LimeSDROutputGUI::on_extClock_clicked() { m_settings.m_extClock = ui->extClock->getExternalClockActive(); m_settings.m_extClockFreq = ui->extClock->getExternalClockFrequency(); qDebug("LimeSDROutputGUI::on_extClock_clicked: %u Hz %s", m_settings.m_extClockFreq, m_settings.m_extClock ? "on" : "off"); sendSettings(); }
void OsmoSDRGui::on_e4000MixerEnh_currentIndexChanged(int index) { if(index == 0) m_settings.m_mixerEnhancement = 0; else m_settings.m_mixerEnhancement = index * 20 - 10; sendSettings(); }
void SDRdaemonSourceGui::resetToDefaults() { m_settings.resetToDefaults(); displaySettings(); m_forceSettings = true; sendSettings(); }
void Bladerf1OutputGui::on_interp_currentIndexChanged(int index) { if ((index <0) || (index > 6)) return; m_settings.m_log2Interp = index; sendSettings(); }
SDRdaemonSourceGui::SDRdaemonSourceGui(DeviceUISet *deviceUISet, QWidget* parent) : QWidget(parent), ui(new Ui::SDRdaemonSourceGui), m_deviceUISet(deviceUISet), m_settings(), m_sampleSource(0), m_acquisition(false), m_streamSampleRate(0), m_streamCenterFrequency(0), m_lastEngineState(DSPDeviceSourceEngine::StNotStarted), m_framesDecodingStatus(0), m_bufferLengthInSecs(0.0), m_bufferGauge(-50), m_nbOriginalBlocks(128), m_nbFECBlocks(0), m_sampleBits(16), // assume 16 bits to start with m_sampleBytes(2), m_samplesCount(0), m_tickCount(0), m_addressEdited(false), m_dataPortEdited(false), m_countUnrecoverable(0), m_countRecovered(0), m_doApplySettings(true), m_forceSettings(true), m_txDelay(0.0) { m_paletteGreenText.setColor(QPalette::WindowText, Qt::green); m_paletteWhiteText.setColor(QPalette::WindowText, Qt::white); m_startingTimeStampms = 0; ui->setupUi(this); ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold)); ui->centerFrequency->setValueRange(7, 0, 9999999U); CRightClickEnabler *startStopRightClickEnabler = new CRightClickEnabler(ui->startStop); connect(startStopRightClickEnabler, SIGNAL(rightClick(const QPoint &)), this, SLOT(openDeviceSettingsDialog(const QPoint &))); displaySettings(); connect(&m_statusTimer, SIGNAL(timeout()), this, SLOT(updateStatus())); m_statusTimer.start(500); connect(&m_updateTimer, SIGNAL(timeout()), this, SLOT(updateHardware())); m_sampleSource = (SDRdaemonSourceInput*) m_deviceUISet->m_deviceSourceAPI->getSampleSource(); connect(&m_inputMessageQueue, SIGNAL(messageEnqueued()), this, SLOT(handleInputMessages()), Qt::QueuedConnection); m_sampleSource->setMessageQueueToGUI(&m_inputMessageQueue); m_networkManager = new QNetworkAccessManager(); connect(m_networkManager, SIGNAL(finished(QNetworkReply*)), this, SLOT(networkManagerFinished(QNetworkReply*))); m_eventsTime.start(); displayEventCounts(); displayEventTimer(); m_forceSettings = true; sendSettings(); }
void AirspyGui::on_decim_currentIndexChanged(int index) { if ((index <0) || (index > 6)) return; m_settings.m_log2Decim = index; sendSettings(); }
void Bladerf1OutputGui::on_xb200_currentIndexChanged(int index) { if (index == 1) // bypass { m_settings.m_xb200 = true; m_settings.m_xb200Path = BLADERF_XB200_BYPASS; } else if (index == 2) // Auto 1dB { m_settings.m_xb200 = true; m_settings.m_xb200Path = BLADERF_XB200_MIX; m_settings.m_xb200Filter = BLADERF_XB200_AUTO_1DB; } else if (index == 3) // Auto 3dB { m_settings.m_xb200 = true; m_settings.m_xb200Path = BLADERF_XB200_MIX; m_settings.m_xb200Filter = BLADERF_XB200_AUTO_3DB; } else if (index == 4) // Custom { m_settings.m_xb200 = true; m_settings.m_xb200Path = BLADERF_XB200_MIX; m_settings.m_xb200Filter = BLADERF_XB200_CUSTOM; } else if (index == 5) // 50 MHz { m_settings.m_xb200 = true; m_settings.m_xb200Path = BLADERF_XB200_MIX; m_settings.m_xb200Filter = BLADERF_XB200_50M; } else if (index == 6) // 144 MHz { m_settings.m_xb200 = true; m_settings.m_xb200Path = BLADERF_XB200_MIX; m_settings.m_xb200Filter = BLADERF_XB200_144M; } else if (index == 7) // 222 MHz { m_settings.m_xb200 = true; m_settings.m_xb200Path = BLADERF_XB200_MIX; m_settings.m_xb200Filter = BLADERF_XB200_222M; } else // no xb200 { m_settings.m_xb200 = false; } if (m_settings.m_xb200) { ui->centerFrequency->setValueRange(7, BLADERF_FREQUENCY_MIN_XB200/1000, BLADERF_FREQUENCY_MAX/1000); } else { ui->centerFrequency->setValueRange(7, BLADERF_FREQUENCY_MIN/1000, BLADERF_FREQUENCY_MAX/1000); } sendSettings(); }
SDRdaemonSinkGui::SDRdaemonSinkGui(DeviceUISet *deviceUISet, QWidget* parent) : QWidget(parent), ui(new Ui::SDRdaemonSinkGui), m_deviceUISet(deviceUISet), m_settings(), m_deviceSampleSink(0), m_deviceCenterFrequency(0), m_samplesCount(0), m_tickCount(0), m_nbSinceLastFlowCheck(0), m_lastEngineState(DSPDeviceSinkEngine::StNotStarted), m_doApplySettings(true), m_forceSettings(true) { m_countUnrecoverable = 0; m_countRecovered = 0; m_lastCountUnrecoverable = 0; m_lastCountRecovered = 0; m_lastSampleCount = 0; m_resetCounts = true; m_paletteGreenText.setColor(QPalette::WindowText, Qt::green); m_paletteRedText.setColor(QPalette::WindowText, Qt::red); m_paletteWhiteText.setColor(QPalette::WindowText, Qt::white); ui->setupUi(this); ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold)); ui->centerFrequency->setValueRange(7, 0, pow(10,7)); ui->sampleRate->setColorMapper(ColorMapper(ColorMapper::GrayGreenYellow)); ui->sampleRate->setValueRange(7, 32000U, 9000000U); ui->apiAddressLabel->setStyleSheet("QLabel { background:rgb(79,79,79); }"); connect(&(m_deviceUISet->m_deviceSinkAPI->getMasterTimer()), SIGNAL(timeout()), this, SLOT(tick())); connect(&m_updateTimer, SIGNAL(timeout()), this, SLOT(updateHardware())); connect(&m_statusTimer, SIGNAL(timeout()), this, SLOT(updateStatus())); m_statusTimer.start(500); m_deviceSampleSink = (SDRdaemonSinkOutput*) m_deviceUISet->m_deviceSinkAPI->getSampleSink(); connect(&m_inputMessageQueue, SIGNAL(messageEnqueued()), this, SLOT(handleInputMessages()), Qt::QueuedConnection); m_networkManager = new QNetworkAccessManager(); connect(m_networkManager, SIGNAL(finished(QNetworkReply*)), this, SLOT(networkManagerFinished(QNetworkReply*))); m_deviceUISet->getSpectrum()->setCenterFrequency(m_deviceCenterFrequency); m_time.start(); displayEventCounts(); displayEventTimer(); CRightClickEnabler *startStopRightClickEnabler = new CRightClickEnabler(ui->startStop); connect(startStopRightClickEnabler, SIGNAL(rightClick(const QPoint &)), this, SLOT(openDeviceSettingsDialog(const QPoint &))); displaySettings(); sendSettings(); }
void GNURadioGui::on_cboBandwidth_currentIndexChanged(int index) { if ( index < 0 || (uint)index >= m_bandwidths.size() ) return; m_settings.m_bandwidth = m_bandwidths[index]; sendSettings(); }
void SDRdaemonSinkGui::resetToDefaults() { blockApplySettings(true); m_settings.resetToDefaults(); displaySettings(); blockApplySettings(false); sendSettings(); }
void RTLSDRGui::on_samplerate_valueChanged(int value) { int Rates[] = {288, 1024, 1536, 1152, 2048, 2500 }; int newrate = Rates[value]; ui->samplerateText->setText(tr("%1k").arg(newrate)); m_settings.m_samplerate = newrate * 1000; sendSettings(); }
void GNURadioGui::on_cboSampleRate_currentIndexChanged(int index) { if ( index < 0 || (uint)index >= m_sampRates.size() ) return; m_settings.m_sampRate = m_sampRates[index]; sendSettings(); }
void V4LGui::on_gain_valueChanged(int value) { if(value > (int)m_gains.size()) return; int gain = m_gains[value]; ui->gainText->setText(tr("%1.%2").arg(gain / 10).arg(abs(gain % 10))); m_settings.m_gain = gain; sendSettings(); }
void BladerfGui::on_vga1_valueChanged(int value) { if ((value < BLADERF_RXVGA1_GAIN_MIN) || (value > BLADERF_RXVGA1_GAIN_MAX)) return; ui->vga1Text->setText(tr("%1dB").arg(value)); m_settings.m_vga1 = value; sendSettings(); }
void AirspyGui::on_vga_valueChanged(int value) { if ((value < 0) || (value > 15)) return; ui->vgaText->setText(tr("%1dB").arg(value)); m_settings.m_vgaGain = value; sendSettings(); }
void AirspyGui::on_transverter_clicked() { m_settings.m_transverterMode = ui->transverter->getDeltaFrequencyAcive(); m_settings.m_transverterDeltaFrequency = ui->transverter->getDeltaFrequency(); qDebug("AirspyGui::on_transverter_clicked: %lld Hz %s", m_settings.m_transverterDeltaFrequency, m_settings.m_transverterMode ? "on" : "off"); updateFrequencyLimits(); m_settings.m_centerFrequency = ui->centerFrequency->getValueNew()*1000; sendSettings(); }
void LimeSDROutputGUI::on_hwInterp_currentIndexChanged(int index) { if ((index <0) || (index > 5)) return; m_settings.m_log2HardInterp = index; updateDACRate(); setNCODisplay(); sendSettings(); }
void SDRdaemonSinkGui::on_apiAddress_returnPressed() { m_settings.m_apiAddress = ui->apiAddress->text(); sendSettings(); QString infoURL = QString("http://%1:%2/sdrangel").arg(m_settings.m_apiAddress).arg(m_settings.m_apiPort); m_networkRequest.setUrl(QUrl(infoURL)); m_networkManager->get(m_networkRequest); }
void LimeSDROutputGUI::on_transverter_clicked() { m_settings.m_transverterMode = ui->transverter->getDeltaFrequencyAcive(); m_settings.m_transverterDeltaFrequency = ui->transverter->getDeltaFrequency(); qDebug("LimeSDRInputGUI::on_transverter_clicked: %lld Hz %s", m_settings.m_transverterDeltaFrequency, m_settings.m_transverterMode ? "on" : "off"); updateFrequencyLimits(); setCenterFrequencySetting(ui->centerFrequency->getValueNew()); sendSettings(); }
void Bladerf1OutputGui::on_vga2_valueChanged(int value) { if ((value < BLADERF_TXVGA2_GAIN_MIN) || (value > BLADERF_TXVGA2_GAIN_MAX)) return; ui->vga2Text->setText(tr("%1dB").arg(value)); m_settings.m_vga2 = value; sendSettings(); }
LimeSDROutputGUI::LimeSDROutputGUI(DeviceUISet *deviceUISet, QWidget* parent) : QWidget(parent), ui(new Ui::LimeSDROutputGUI), m_deviceUISet(deviceUISet), m_settings(), m_sampleRate(0), m_lastEngineState(DSPDeviceSinkEngine::StNotStarted), m_doApplySettings(true), m_forceSettings(true), m_statusCounter(0), m_deviceStatusCounter(0) { m_limeSDROutput = (LimeSDROutput*) m_deviceUISet->m_deviceSinkAPI->getSampleSink(); ui->setupUi(this); float minF, maxF; m_limeSDROutput->getLORange(minF, maxF); ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold)); 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)); ui->sampleRate->setValueRange(8, (uint32_t) minF, (uint32_t) maxF); m_limeSDROutput->getLPRange(minF, maxF); ui->lpf->setColorMapper(ColorMapper(ColorMapper::GrayYellow)); ui->lpf->setValueRange(6, (minF/1000)+1, maxF/1000); ui->lpFIR->setColorMapper(ColorMapper(ColorMapper::GrayYellow)); ui->lpFIR->setValueRange(5, 1U, 56000U); ui->ncoFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold)); ui->channelNumberText->setText(tr("#%1").arg(m_limeSDROutput->getChannelIndex())); ui->hwInterpLabel->setText(QString::fromUtf8("H\u2191")); ui->swInterpLabel->setText(QString::fromUtf8("S\u2191")); connect(&m_updateTimer, SIGNAL(timeout()), this, SLOT(updateHardware())); connect(&m_statusTimer, SIGNAL(timeout()), this, SLOT(updateStatus())); m_statusTimer.start(500); displaySettings(); char recFileNameCStr[30]; sprintf(recFileNameCStr, "test_%d.sdriq", m_deviceUISet->m_deviceSinkAPI->getDeviceUID()); connect(&m_inputMessageQueue, SIGNAL(messageEnqueued()), this, SLOT(handleInputMessages()), Qt::QueuedConnection); CRightClickEnabler *startStopRightClickEnabler = new CRightClickEnabler(ui->startStop); connect(startStopRightClickEnabler, SIGNAL(rightClick(const QPoint &)), this, SLOT(openDeviceSettingsDialog(const QPoint &))); sendSettings(); }
void FileSinkGui::on_interp_currentIndexChanged(int index) { if (index < 0) { return; } m_settings.m_log2Interp = index; updateSampleRateAndFrequency(); sendSettings(); }
bool OsmoSDRGui::deserializeSettings(const QString& settings) { if(m_settings.deserialize(settings)) { displaySettings(); sendSettings(); return true; } else { return false; } }