hackrf_sweep: Reduce bin_size_min to 3 kHz
Using rate limiting, smaller bin sizes than 40 kHz can be used. This is useful when using the hackrf_sweep backend with narrow frequency ranges.
This commit is contained in:
parent
a49f1a3187
commit
bc3319ba82
@ -20,7 +20,7 @@ class Info(BaseInfo):
|
|||||||
stop_freq_min = 0
|
stop_freq_min = 0
|
||||||
stop_freq_max = 7250
|
stop_freq_max = 7250
|
||||||
stop_freq = 6000
|
stop_freq = 6000
|
||||||
bin_size_min = 40
|
bin_size_min = 3
|
||||||
bin_size_max = 5000
|
bin_size_max = 5000
|
||||||
bin_size = 1000
|
bin_size = 1000
|
||||||
interval = 0
|
interval = 0
|
||||||
@ -38,10 +38,11 @@ class PowerThread(BasePowerThread):
|
|||||||
interval=0.0, gain=40, ppm=0, crop=0, single_shot=False,
|
interval=0.0, gain=40, ppm=0, crop=0, single_shot=False,
|
||||||
device=0, sample_rate=20000000, bandwidth=0, lnb_lo=0):
|
device=0, sample_rate=20000000, bandwidth=0, lnb_lo=0):
|
||||||
"""Setup hackrf_sweep params"""
|
"""Setup hackrf_sweep params"""
|
||||||
# theoretically we can support bins smaller than 40 kHz, but it is
|
# Small bin sizes (<40 kHz) are only suitable with an arbitrarily
|
||||||
# unlikely to result in acceptable performance
|
# reduced sweep interval. Bin sizes smaller than 3 kHz showed to be
|
||||||
if bin_size < 40:
|
# infeasible also in these cases.
|
||||||
bin_size = 40
|
if bin_size < 3:
|
||||||
|
bin_size = 3
|
||||||
if bin_size > 5000:
|
if bin_size > 5000:
|
||||||
bin_size = 5000
|
bin_size = 5000
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user