Skip to content

Commit

Permalink
stare mode initial frequency
Browse files Browse the repository at this point in the history
  • Loading branch information
anarkiwi committed Aug 4, 2024
1 parent cdb7a75 commit 83b10f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker/Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
libvulkan-dev \
pybind11-dev
WORKDIR /root
RUN git clone https://github.com/iqtlabs/gr-iqtlabs -b 1.0.114
RUN git clone https://github.com/iqtlabs/gr-iqtlabs -b 1.0.115
COPY --from=iqtlabs/gamutrf-vkfft:latest /root /root/gr-iqtlabs
WORKDIR /root/gr-iqtlabs/build
COPY --from=iqtlabs/gamutrf-sigmf:latest /usr/local /usr/local
Expand Down
4 changes: 3 additions & 1 deletion gamutrf/grscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,12 @@ def __init__(
description = description.strip('"')
tune_step_hz = int(samp_rate * tuneoverlap)
stare = False
initial_freq = freq_start

if freq_end == 0:
stare = True
freq_end = freq_start + (tune_step_hz - 1)
initial_freq += int((freq_end - freq_start) / 2)
logging.info(
f"using stare mode, scan from {freq_start/1e6}MHz to {freq_end/1e6}MHz"
)
Expand Down Expand Up @@ -167,7 +169,7 @@ def __init__(
nfft,
tune_step_fft,
agc=False,
center_freq=freq_start,
center_freq=initial_freq,
sdrargs=sdrargs,
dc_ettus_auto_offset=dc_ettus_auto_offset,
)
Expand Down

0 comments on commit 83b10f4

Please sign in to comment.