Merge pull request #662 from pinkavaj/pi-crop

Increase the crop for rtl_power 20% -> 25%
pull/663/head
Mark Jessop 2022-09-21 20:25:12 +09:30 zatwierdzone przez GitHub
commit 30a1653f38
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

@ -81,7 +81,7 @@ def run_rtl_power(
bool: True if rtl_power ran successfuly, False otherwise.
"""
# Example: rtl_power -f 400400000:403500000:800 -i20 -1 -c 20% -p 0 -d 0 -g 26.0 log_power.csv
# Example: rtl_power -f 400400000:403500000:800 -i20 -1 -c 25% -p 0 -d 0 -g 26.0 log_power.csv
# Add a -T option if bias is enabled
bias_option = "-T " if bias else ""
@ -105,7 +105,7 @@ def run_rtl_power(
timeout_kill = "-k 30 "
rtl_power_cmd = (
"timeout %s%d %s %s-f %d:%d:%d -i %d -1 -c 20%% -p %d -d %s %s%s"
"timeout %s%d %s %s-f %d:%d:%d -i %d -1 -c 25%% -p %d -d %s %s%s"
% (
timeout_kill,
dwell + 10,

Wyświetl plik

@ -483,7 +483,7 @@ def get_power_spectrum(
#f"-d {str(rtl_device_idx)} "
f"{_gain}"
f"-f {frequency_start}:{frequency_stop}:{step} "
f"-i {integration_time} -1 -c 20% "
f"-i {integration_time} -1 -c 25% "
f"{_log_filename}"
)