From 873c86c9cd81aab118f21ef1dfcc50846aa6c2ef Mon Sep 17 00:00:00 2001 From: Josh Bailey Date: Thu, 21 Dec 2023 03:38:32 +0000 Subject: [PATCH] add slow stare warning. --- gamutrf/grscan.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gamutrf/grscan.py b/gamutrf/grscan.py index 1d6e3597..5eff2092 100644 --- a/gamutrf/grscan.py +++ b/gamutrf/grscan.py @@ -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" @@ -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)