Skip to content

Commit

Permalink
add slow stare warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
anarkiwi committed Dec 21, 2023
1 parent f268b6d commit 873c86c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gamutrf/grscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,10 @@ def __init__(
gr.top_block.__init__(self, "scan", catch_exceptions=True)

tune_step_hz = int(samp_rate * tuneoverlap)
stare = False

if freq_end == 0:
stare = True
freq_end = freq_start + (tune_step_hz - 1)
logging.info(
f"using stare mode, scan from {freq_start/1e6}MHz to {freq_end/1e6}MHz"
Expand Down Expand Up @@ -153,6 +155,8 @@ def __init__(
logging.info(
f"requested retuning across {freq_range/1e6}MHz every {tune_step_fft} FFTs, dwell time {tune_dwell_ms}ms"
)
if stare and tune_dwell_ms > 1e3:
logging.warn(">1s dwell time in stare mode, updates will be slow!")

self.fft_blocks = (
self.get_dc_blocks(dc_block_len, dc_block_long)
Expand Down

0 comments on commit 873c86c

Please sign in to comment.