Skip to content

Commit

Permalink
wide: allow narrow or non-hopping startup
Browse files Browse the repository at this point in the history
We might want to hop over a range of frequencies less than the sample
rate due to the relative bandwidth setting discarding edges of the
spectrum. We may also want to start the analyzer without hopping at all.
  • Loading branch information
sultanqasim committed May 16, 2024
1 parent eb08f51 commit 09eda6c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions analyzer/workers/wide.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,7 @@ suscan_local_analyzer_init_wide_worker(suscan_local_analyzer_t *self)
SU_TRY(suscan_local_analyzer_readjust_detector(self, &det_params));
}

SU_TRY(
self->parent->params.max_freq - self->parent->params.min_freq >=
self->source_info.source_samp_rate);
SU_TRY(self->parent->params.max_freq >= self->parent->params.min_freq);

self->current_sweep_params.fft_min_samples =
SUSCAN_ANALYZER_MIN_POST_HOP_FFTS * det_params.window_size;
Expand Down

0 comments on commit 09eda6c

Please sign in to comment.