Merge pull request #705 from darksidelemm/testing

Fix bug in save detection audio
pull/725/head
Mark Jessop 2022-11-16 23:23:26 +10:30 zatwierdzone przez GitHub
commit 1b8ccc112b
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -345,7 +345,7 @@ def detect_sonde(
# )
# Saving of Debug audio, if enabled,
if save_detection_audio:
rx_test_command += "tee detect_%s.raw | " % str(device_idx)
rx_test_command += "tee detect_%s.raw | " % str(rtl_device_idx)
rx_test_command += os.path.join(
rs_path, "dft_detect"
@ -399,7 +399,7 @@ def detect_sonde(
# Saving of Debug audio, if enabled,
if save_detection_audio:
rx_test_command += "tee detect_%s.wav | " % str(device_idx)
rx_test_command += "tee detect_%s.wav | " % str(rtl_device_idx)
# Sample decoding / detection
# Note that we detect for dwell_time seconds, and timeout after dwell_time*2, to catch if no samples are being passed through.

Wyświetl plik

@ -478,7 +478,7 @@ def get_power_spectrum(
f"{_timeout_cmd} {rtl_power_path} "
f"{'-T ' if bias else ''}"
f"-p {int(ppm)} "
#f"-d {str(rtl_device_idx)} "
f"-d {str(rtl_device_idx)} "
f"{_gain}"
f"-f {frequency_start}:{frequency_stop}:{step} "
f"-i {integration_time} -1 -c 25% "