Browse Source

DOA2: added button to center frequency position in passband

chirpmodem-v8.0.0
f4exb 5 years ago
parent
commit
a7dc4dc310
  1. BIN
      doc/img/DOA2_plugin.png
  2. BIN
      doc/img/DOA2_plugin.xcf
  3. BIN
      doc/img/DOA2_plugin_settings.png
  4. BIN
      doc/img/DOA2_plugin_settings.xcf
  5. 17
      plugins/channelmimo/doa2/doa2gui.cpp
  6. 1
      plugins/channelmimo/doa2/doa2gui.h
  7. 25
      plugins/channelmimo/doa2/doa2gui.ui
  8. 4
      plugins/channelmimo/doa2/readme.md

BIN
doc/img/DOA2_plugin.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 129 KiB

After

Width:  |  Height:  |  Size: 130 KiB

BIN
doc/img/DOA2_plugin.xcf

Binary file not shown.

BIN
doc/img/DOA2_plugin_settings.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 11 KiB

BIN
doc/img/DOA2_plugin_settings.xcf

Binary file not shown.

17
plugins/channelmimo/doa2/doa2gui.cpp

@ -387,6 +387,22 @@ void DOA2GUI::on_fftAveraging_currentIndexChanged(int index) @@ -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() @@ -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()

1
plugins/channelmimo/doa2/doa2gui.h

@ -106,6 +106,7 @@ private slots: @@ -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();

25
plugins/channelmimo/doa2/doa2gui.ui

@ -324,6 +324,22 @@ @@ -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 @@ @@ -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>

4
plugins/channelmimo/doa2/readme.md

@ -87,6 +87,10 @@ The slider moves the channel center frequency roughly from the lower to the high @@ -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>

Loading…
Cancel
Save