1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-02 06:04:39 -04:00

LimeSDR: removed useless step information from range inspection functions

This commit is contained in:
f4exb
2018-03-14 11:03:22 +01:00
parent 5d7b56ffc7
commit c99693eacc
6 changed files with 26 additions and 32 deletions
@@ -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);