rtl_power & status bar
0
.gitignore
vendored
Normal file → Executable file
0
MANIFEST.in
Normal file → Executable file
6
README.rst
Normal file → Executable file
@ -182,3 +182,9 @@ Todo:
|
||||
- display average noise level
|
||||
- frequency markers / bookmarks with notes (even importing and exporting .csv file with
|
||||
predefined channels, etc.)
|
||||
|
||||
|
||||
Debugg:
|
||||
python3
|
||||
import qspectrumanalyzer.__main__
|
||||
qspectrumanalyzer.__main__.main()
|
||||
|
0
qspectrumanalyzer.desktop
Normal file → Executable file
0
qspectrumanalyzer.ico
Normal file → Executable file
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
0
qspectrumanalyzer.png
Normal file → Executable file
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
0
qspectrumanalyzer.svg
Normal file → Executable file
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
0
qspectrumanalyzer/__init__.py
Normal file → Executable file
6
qspectrumanalyzer/__main__.py
Normal file → Executable file
@ -275,9 +275,9 @@ class QSpectrumAnalyzerMainWindow(QtWidgets.QMainWindow, Ui_QSpectrumAnalyzerMai
|
||||
elif value > value_max:
|
||||
value = value_max
|
||||
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):
|
||||
"""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
|
||||
|
||||
if self.intervalSpinBox.value() >= 1:
|
||||
self.progressbar.setRange(0, self.intervalSpinBox.value() * 1000)
|
||||
self.progressbar.setRange(0, int(self.intervalSpinBox.value()) * 1000)
|
||||
else:
|
||||
self.progressbar.setRange(0, 0)
|
||||
self.update_progress(0)
|
||||
|
0
qspectrumanalyzer/backends/__init__.py
Normal file → Executable file
0
qspectrumanalyzer/backends/hackrf_sweep.py
Normal file → Executable file
6
qspectrumanalyzer/backends/rtl_power.py
Normal file → Executable file
@ -51,8 +51,10 @@ class PowerThread(BasePowerThread):
|
||||
"-c", "{}".format(self.params["crop"])
|
||||
])
|
||||
|
||||
if self.params["sample_rate"] > 0:
|
||||
cmdline.extend(["-r", "{}M".format(self.params["sample_rate"] / 1e6)])
|
||||
#not supported any more
|
||||
#if self.params["sample_rate"] > 0:
|
||||
# cmdline.extend(["-r", "{}M".format(self.params["sample_rate"] / 1e6)])
|
||||
|
||||
if self.params["gain"] >= 0:
|
||||
cmdline.extend(["-g", "{}".format(self.params["gain"])])
|
||||
if self.params["single_shot"]:
|
||||
|
0
qspectrumanalyzer/backends/rtl_power_fftw.py
Normal file → Executable file
0
qspectrumanalyzer/backends/rx_power.py
Normal file → Executable file
0
qspectrumanalyzer/backends/soapy_power.py
Normal file → Executable file
0
qspectrumanalyzer/baseline.py
Normal file → Executable file
0
qspectrumanalyzer/colors.py
Normal file → Executable file
0
qspectrumanalyzer/data.py
Normal file → Executable file
0
qspectrumanalyzer/languages/qspectrumanalyzer_cs.qm
Normal file → Executable file
0
qspectrumanalyzer/languages/qspectrumanalyzer_cs.ts
Normal file → Executable file
0
qspectrumanalyzer/persistence.py
Normal file → Executable file
0
qspectrumanalyzer/plot.py
Normal file → Executable file
0
qspectrumanalyzer/qspectrumanalyzer.svg
Normal file → Executable file
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |