mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-21 15:51:47 -05:00
Metis MISO: set absolute maximum frequency to 500 MHz. Fixes #1014
This commit is contained in:
parent
784615e3bc
commit
0a3505cec3
@ -60,7 +60,7 @@ MetisMISOGui::MetisMISOGui(DeviceUISet *deviceUISet, QWidget* parent) :
|
|||||||
|
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold));
|
ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold));
|
||||||
ui->centerFrequency->setValueRange(7, 0, 61440000);
|
ui->centerFrequency->setValueRange(7, 0, m_absMaxFreq);
|
||||||
|
|
||||||
displaySettings();
|
displaySettings();
|
||||||
|
|
||||||
@ -483,19 +483,19 @@ void MetisMISOGui::displayFrequency()
|
|||||||
{
|
{
|
||||||
int subsamplingIndex = m_settings.m_rxSubsamplingIndexes[m_streamIndex];
|
int subsamplingIndex = m_settings.m_rxSubsamplingIndexes[m_streamIndex];
|
||||||
centerFrequency = m_settings.m_rxCenterFrequencies[m_streamIndex];
|
centerFrequency = m_settings.m_rxCenterFrequencies[m_streamIndex];
|
||||||
fBaseLow = subsamplingIndex*61440;
|
fBaseLow = subsamplingIndex*m_absMaxFreq;
|
||||||
fBaseHigh = (subsamplingIndex+1)*61440;
|
fBaseHigh = (subsamplingIndex+1)*m_absMaxFreq;
|
||||||
}
|
}
|
||||||
else if (m_streamIndex == MetisMISOSettings::m_maxReceivers)
|
else if (m_streamIndex == MetisMISOSettings::m_maxReceivers)
|
||||||
{
|
{
|
||||||
centerFrequency = m_settings.m_txCenterFrequency;
|
centerFrequency = m_settings.m_txCenterFrequency;
|
||||||
fBaseLow = 0;
|
fBaseLow = 0;
|
||||||
fBaseHigh = 61440;
|
fBaseHigh = m_absMaxFreq;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
fBaseLow = 0;
|
fBaseLow = 0;
|
||||||
fBaseHigh = 61440;
|
fBaseHigh = m_absMaxFreq;
|
||||||
centerFrequency = 0;
|
centerFrequency = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -65,6 +65,7 @@ private:
|
|||||||
std::vector<quint64> m_deviceCenterFrequencies; //!< Center frequency in device
|
std::vector<quint64> m_deviceCenterFrequencies; //!< Center frequency in device
|
||||||
int m_lastEngineState;
|
int m_lastEngineState;
|
||||||
MessageQueue m_inputMessageQueue;
|
MessageQueue m_inputMessageQueue;
|
||||||
|
static const int m_absMaxFreq = 500000; // kHz
|
||||||
|
|
||||||
void blockApplySettings(bool block) { m_doApplySettings = !block; }
|
void blockApplySettings(bool block) { m_doApplySettings = !block; }
|
||||||
void displaySettings();
|
void displaySettings();
|
||||||
|
Loading…
Reference in New Issue
Block a user