DOA2: added button to center frequency position in passband

pull/1261/head^2
f4exb 2022-05-29 11:57:04 +02:00
rodzic 8d41f8c438
commit a7dc4dc310
8 zmienionych plików z 47 dodań i 0 usunięć

Plik binarny nie jest wyświetlany.

Przed

Szerokość:  |  Wysokość:  |  Rozmiar: 129 KiB

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 130 KiB

Plik binarny nie jest wyświetlany.

Plik binarny nie jest wyświetlany.

Przed

Szerokość:  |  Wysokość:  |  Rozmiar: 10 KiB

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 11 KiB

Plik binarny nie jest wyświetlany.

Wyświetl plik

@ -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()

Wyświetl plik

@ -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();

Wyświetl plik

@ -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>

Wyświetl plik

@ -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>