1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-07-04 09:55:22 -04:00

DOA2: added button to center frequency position in passband

This commit is contained in:
f4exb 2022-05-29 11:57:04 +02:00
parent 8d41f8c438
commit a7dc4dc310
8 changed files with 47 additions and 0 deletions

Binary file not shown.

Before

(image error) Size: 129 KiB

After

(image error) Size: 130 KiB

Binary file not shown.

Binary file not shown.

Before

(image error) Size: 10 KiB

After

(image error) Size: 11 KiB

Binary file not shown.

@ -387,6 +387,22 @@ void DOA2GUI::on_fftAveraging_currentIndexChanged(int index)
setFFTAveragingToolitp();
}
void DOA2GUI::on_centerPosition_clicked()
{
uint32_t filterChainHash = 1;
uint32_t mul = 1;
for (uint32_t i = 1; i < m_settings.m_log2Decim; i++)
{
mul *= 3;
filterChainHash += mul;
}
m_settings.m_filterChainHash = filterChainHash;
ui->position->setValue(m_settings.m_filterChainHash);
applyPosition();
}
void DOA2GUI::applyDecimation()
{
uint32_t maxHash = 1;
@ -432,6 +448,7 @@ void DOA2GUI::makeUIConnections()
QObject::connect(ui->baselineDistance, QOverload<int>::of(&QSpinBox::valueChanged), this, &DOA2GUI::on_baselineDistance_valueChanged);
QObject::connect(ui->squelch, &QDial::valueChanged, this, &DOA2GUI::on_squelch_valueChanged);
QObject::connect(ui->fftAveraging, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &DOA2GUI::on_fftAveraging_currentIndexChanged);
QObject::connect(ui->centerPosition, &QPushButton::clicked, this, &DOA2GUI::on_centerPosition_clicked);
}
void DOA2GUI::updateAbsoluteCenterFrequency()

@ -106,6 +106,7 @@ private slots:
void on_baselineDistance_valueChanged(int value);
void on_squelch_valueChanged(int value);
void on_fftAveraging_currentIndexChanged(int index);
void on_centerPosition_clicked();
void onWidgetRolled(QWidget* widget, bool rollDown);
void onMenuDialogCalled(const QPoint& p);
void tick();

@ -324,6 +324,22 @@
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="centerPosition">
<property name="maximumSize">
<size>
<width>24</width>
<height>24</height>
</size>
</property>
<property name="toolTip">
<string>Center in passband</string>
</property>
<property name="text">
<string>C</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
@ -588,12 +604,21 @@
</item>
<item>
<widget class="QLabel" name="halfWLText">
<property name="minimumSize">
<size>
<width>40</width>
<height>0</height>
</size>
</property>
<property name="toolTip">
<string>Half wavelength (mm)</string>
</property>
<property name="text">
<string>00000</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item>

@ -87,6 +87,10 @@ The slider moves the channel center frequency roughly from the lower to the high
- **1**: centered
- **2**: higher half-band
<h3>A.8. Center filter in passband</h3>
Use this button to center the filter in the middle of the passband automatically. This sets all filters to center i.e CCC...
The resulting filter chain sequence is represented in (A.3)
<h2>B. Scope display</h2>