mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-26 09:48:45 -05:00
LimeSDR: removed useless step information from range inspection functions
This commit is contained in:
parent
5d7b56ffc7
commit
c99693eacc
@ -462,31 +462,28 @@ std::size_t LimeSDROutput::getChannelIndex()
|
||||
return m_deviceShared.m_channel;
|
||||
}
|
||||
|
||||
void LimeSDROutput::getLORange(float& minF, float& maxF, float& stepF) const
|
||||
void LimeSDROutput::getLORange(float& minF, float& maxF) const
|
||||
{
|
||||
lms_range_t range = m_deviceShared.m_deviceParams->m_loRangeTx;
|
||||
minF = range.min;
|
||||
maxF = range.max;
|
||||
stepF = range.step;
|
||||
qDebug("LimeSDROutput::getLORange: min: %f max: %f step: %f", range.min, range.max, range.step);
|
||||
qDebug("LimeSDROutput::getLORange: min: %f max: %f", range.min, range.max);
|
||||
}
|
||||
|
||||
void LimeSDROutput::getSRRange(float& minF, float& maxF, float& stepF) const
|
||||
void LimeSDROutput::getSRRange(float& minF, float& maxF) const
|
||||
{
|
||||
lms_range_t range = m_deviceShared.m_deviceParams->m_srRangeTx;
|
||||
minF = range.min;
|
||||
maxF = range.max;
|
||||
stepF = range.step;
|
||||
qDebug("LimeSDROutput::getSRRange: min: %f max: %f step: %f", range.min, range.max, range.step);
|
||||
qDebug("LimeSDROutput::getSRRange: min: %f max: %f", range.min, range.max);
|
||||
}
|
||||
|
||||
void LimeSDROutput::getLPRange(float& minF, float& maxF, float& stepF) const
|
||||
void LimeSDROutput::getLPRange(float& minF, float& maxF) const
|
||||
{
|
||||
lms_range_t range = m_deviceShared.m_deviceParams->m_lpfRangeTx;
|
||||
minF = range.min;
|
||||
maxF = range.max;
|
||||
stepF = range.step;
|
||||
qDebug("LimeSDROutput::getLPRange: min: %f max: %f step: %f", range.min, range.max, range.step);
|
||||
qDebug("LimeSDROutput::getLPRange: min: %f max: %f", range.min, range.max);
|
||||
}
|
||||
|
||||
uint32_t LimeSDROutput::getHWLog2Interp() const
|
||||
|
@ -217,9 +217,9 @@ public:
|
||||
QString& errorMessage);
|
||||
|
||||
std::size_t getChannelIndex();
|
||||
void getLORange(float& minF, float& maxF, float& stepF) const;
|
||||
void getSRRange(float& minF, float& maxF, float& stepF) const;
|
||||
void getLPRange(float& minF, float& maxF, float& stepF) const;
|
||||
void getLORange(float& minF, float& maxF) const;
|
||||
void getSRRange(float& minF, float& maxF) const;
|
||||
void getLPRange(float& minF, float& maxF) const;
|
||||
uint32_t getHWLog2Interp() const;
|
||||
|
||||
private:
|
||||
|
@ -42,17 +42,17 @@ LimeSDROutputGUI::LimeSDROutputGUI(DeviceUISet *deviceUISet, QWidget* parent) :
|
||||
|
||||
ui->setupUi(this);
|
||||
|
||||
float minF, maxF, stepF;
|
||||
float minF, maxF;
|
||||
|
||||
m_limeSDROutput->getLORange(minF, maxF, stepF);
|
||||
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, stepF);
|
||||
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, stepF);
|
||||
m_limeSDROutput->getLPRange(minF, maxF);
|
||||
ui->lpf->setColorMapper(ColorMapper(ColorMapper::GrayYellow));
|
||||
ui->lpf->setValueRange(6, (minF/1000)+1, maxF/1000);
|
||||
|
||||
|
@ -481,31 +481,28 @@ std::size_t LimeSDRInput::getChannelIndex()
|
||||
return m_deviceShared.m_channel;
|
||||
}
|
||||
|
||||
void LimeSDRInput::getLORange(float& minF, float& maxF, float& stepF) const
|
||||
void LimeSDRInput::getLORange(float& minF, float& maxF) const
|
||||
{
|
||||
lms_range_t range = m_deviceShared.m_deviceParams->m_loRangeRx;
|
||||
minF = range.min;
|
||||
maxF = range.max;
|
||||
stepF = range.step;
|
||||
qDebug("LimeSDRInput::getLORange: min: %f max: %f step: %f", range.min, range.max, range.step);
|
||||
qDebug("LimeSDRInput::getLORange: min: %f max: %f", range.min, range.max);
|
||||
}
|
||||
|
||||
void LimeSDRInput::getSRRange(float& minF, float& maxF, float& stepF) const
|
||||
void LimeSDRInput::getSRRange(float& minF, float& maxF) const
|
||||
{
|
||||
lms_range_t range = m_deviceShared.m_deviceParams->m_srRangeRx;
|
||||
minF = range.min;
|
||||
maxF = range.max;
|
||||
stepF = range.step;
|
||||
qDebug("LimeSDRInput::getSRRange: min: %f max: %f step: %f", range.min, range.max, range.step);
|
||||
qDebug("LimeSDRInput::getSRRange: min: %f max: %f", range.min, range.max);
|
||||
}
|
||||
|
||||
void LimeSDRInput::getLPRange(float& minF, float& maxF, float& stepF) const
|
||||
void LimeSDRInput::getLPRange(float& minF, float& maxF) const
|
||||
{
|
||||
lms_range_t range = m_deviceShared.m_deviceParams->m_lpfRangeRx;
|
||||
minF = range.min;
|
||||
maxF = range.max;
|
||||
stepF = range.step;
|
||||
qDebug("LimeSDRInput::getLPRange: min: %f max: %f step: %f", range.min, range.max, range.step);
|
||||
qDebug("LimeSDRInput::getLPRange: min: %f max: %f", range.min, range.max);
|
||||
}
|
||||
|
||||
uint32_t LimeSDRInput::getHWLog2Decim() const
|
||||
|
@ -238,9 +238,9 @@ public:
|
||||
QString& errorMessage);
|
||||
|
||||
std::size_t getChannelIndex();
|
||||
void getLORange(float& minF, float& maxF, float& stepF) const;
|
||||
void getSRRange(float& minF, float& maxF, float& stepF) const;
|
||||
void getLPRange(float& minF, float& maxF, float& stepF) const;
|
||||
void getLORange(float& minF, float& maxF) const;
|
||||
void getSRRange(float& minF, float& maxF) const;
|
||||
void getLPRange(float& minF, float& maxF) const;
|
||||
uint32_t getHWLog2Decim() const;
|
||||
|
||||
private:
|
||||
|
@ -45,17 +45,17 @@ LimeSDRInputGUI::LimeSDRInputGUI(DeviceUISet *deviceUISet, QWidget* parent) :
|
||||
|
||||
ui->setupUi(this);
|
||||
|
||||
float minF, maxF, stepF;
|
||||
float minF, maxF;
|
||||
|
||||
m_limeSDRInput->getLORange(minF, maxF, stepF);
|
||||
m_limeSDRInput->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_limeSDRInput->getSRRange(minF, maxF, stepF);
|
||||
m_limeSDRInput->getSRRange(minF, maxF);
|
||||
ui->sampleRate->setColorMapper(ColorMapper(ColorMapper::GrayGreenYellow));
|
||||
ui->sampleRate->setValueRange(8, (uint32_t) minF, (uint32_t) maxF);
|
||||
|
||||
m_limeSDRInput->getLPRange(minF, maxF, stepF);
|
||||
m_limeSDRInput->getLPRange(minF, maxF);
|
||||
ui->lpf->setColorMapper(ColorMapper(ColorMapper::GrayYellow));
|
||||
ui->lpf->setValueRange(6, (minF/1000)+1, maxF/1000);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user