rtl_power & status bar

This commit is contained in:
arcg 2023-11-04 18:12:20 +01:00
parent 625ba9d698
commit 56b363be38
45 changed files with 14 additions and 6 deletions

0
.gitignore vendored Normal file → Executable file
View File

0
LICENSE Normal file → Executable file
View File

0
MANIFEST.in Normal file → Executable file
View File

0
PKGBUILD Normal file → Executable file
View File

6
README.rst Normal file → Executable file
View File

@ -182,3 +182,9 @@ Todo:
- display average noise level - display average noise level
- frequency markers / bookmarks with notes (even importing and exporting .csv file with - frequency markers / bookmarks with notes (even importing and exporting .csv file with
predefined channels, etc.) predefined channels, etc.)
Debugg:
python3
import qspectrumanalyzer.__main__
qspectrumanalyzer.__main__.main()

0
qspectrumanalyzer.desktop Normal file → Executable file
View File

0
qspectrumanalyzer.ico Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

0
qspectrumanalyzer.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

0
qspectrumanalyzer.svg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

0
qspectrumanalyzer/__init__.py Normal file → Executable file
View File

6
qspectrumanalyzer/__main__.py Normal file → Executable file
View File

@ -275,9 +275,9 @@ class QSpectrumAnalyzerMainWindow(QtWidgets.QMainWindow, Ui_QSpectrumAnalyzerMai
elif value > value_max: elif value > value_max:
value = value_max value = value_max
else: else:
self.progressbar.setRange(0, value_max) self.progressbar.setRange(0, int(value_max))
self.progressbar.setValue(value) self.progressbar.setValue(int(value))
def on_power_thread_started(self): def on_power_thread_started(self):
"""Update buttons state when power thread is started""" """Update buttons state when power thread is started"""
@ -300,7 +300,7 @@ class QSpectrumAnalyzerMainWindow(QtWidgets.QMainWindow, Ui_QSpectrumAnalyzerMai
self.start_timestamp = self.prev_data_timestamp self.start_timestamp = self.prev_data_timestamp
if self.intervalSpinBox.value() >= 1: if self.intervalSpinBox.value() >= 1:
self.progressbar.setRange(0, self.intervalSpinBox.value() * 1000) self.progressbar.setRange(0, int(self.intervalSpinBox.value()) * 1000)
else: else:
self.progressbar.setRange(0, 0) self.progressbar.setRange(0, 0)
self.update_progress(0) self.update_progress(0)

0
qspectrumanalyzer/backends/__init__.py Normal file → Executable file
View File

0
qspectrumanalyzer/backends/hackrf_sweep.py Normal file → Executable file
View File

8
qspectrumanalyzer/backends/rtl_power.py Normal file → Executable file
View File

@ -50,9 +50,11 @@ class PowerThread(BasePowerThread):
"-p", "{}".format(self.params["ppm"]), "-p", "{}".format(self.params["ppm"]),
"-c", "{}".format(self.params["crop"]) "-c", "{}".format(self.params["crop"])
]) ])
if self.params["sample_rate"] > 0: #not supported any more
cmdline.extend(["-r", "{}M".format(self.params["sample_rate"] / 1e6)]) #if self.params["sample_rate"] > 0:
# cmdline.extend(["-r", "{}M".format(self.params["sample_rate"] / 1e6)])
if self.params["gain"] >= 0: if self.params["gain"] >= 0:
cmdline.extend(["-g", "{}".format(self.params["gain"])]) cmdline.extend(["-g", "{}".format(self.params["gain"])])
if self.params["single_shot"]: if self.params["single_shot"]:

0
qspectrumanalyzer/backends/rtl_power_fftw.py Normal file → Executable file
View File

0
qspectrumanalyzer/backends/rx_power.py Normal file → Executable file
View File

0
qspectrumanalyzer/backends/soapy_power.py Normal file → Executable file
View File

0
qspectrumanalyzer/baseline.py Normal file → Executable file
View File

0
qspectrumanalyzer/colors.py Normal file → Executable file
View File

0
qspectrumanalyzer/data.py Normal file → Executable file
View File

0
qspectrumanalyzer/languages/qspectrumanalyzer_cs.qm Normal file → Executable file
View File

0
qspectrumanalyzer/languages/qspectrumanalyzer_cs.ts Normal file → Executable file
View File

0
qspectrumanalyzer/persistence.py Normal file → Executable file
View File

0
qspectrumanalyzer/plot.py Normal file → Executable file
View File

0
qspectrumanalyzer/qspectrumanalyzer.svg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

0
qspectrumanalyzer/qspectrumanalyzer.ui Normal file → Executable file
View File

0
qspectrumanalyzer/qspectrumanalyzer_baseline.ui Normal file → Executable file
View File

0
qspectrumanalyzer/qspectrumanalyzer_colors.ui Normal file → Executable file
View File

0
qspectrumanalyzer/qspectrumanalyzer_persistence.ui Normal file → Executable file
View File

0
qspectrumanalyzer/qspectrumanalyzer_settings.ui Normal file → Executable file
View File

0
qspectrumanalyzer/qspectrumanalyzer_settings_help.ui Normal file → Executable file
View File

0
qspectrumanalyzer/qspectrumanalyzer_smoothing.ui Normal file → Executable file
View File

0
qspectrumanalyzer/settings.py Normal file → Executable file
View File

0
qspectrumanalyzer/smoothing.py Normal file → Executable file
View File

0
qspectrumanalyzer/subprocess.py Normal file → Executable file
View File

0
qspectrumanalyzer/ui_qspectrumanalyzer.py Normal file → Executable file
View File

0
qspectrumanalyzer/ui_qspectrumanalyzer_baseline.py Normal file → Executable file
View File

0
qspectrumanalyzer/ui_qspectrumanalyzer_colors.py Normal file → Executable file
View File

0
qspectrumanalyzer/ui_qspectrumanalyzer_persistence.py Normal file → Executable file
View File

0
qspectrumanalyzer/ui_qspectrumanalyzer_settings.py Normal file → Executable file
View File

View File

0
qspectrumanalyzer/ui_qspectrumanalyzer_smoothing.py Normal file → Executable file
View File

0
qspectrumanalyzer/utils.py Normal file → Executable file
View File

0
qspectrumanalyzer/version.py Normal file → Executable file
View File

0
qspectrumanalyzer/windows.py Normal file → Executable file
View File