Skip to content

Commit

Permalink
Merge pull request #1219 from dl2kcd/fix-ddc-aliasing
Browse files Browse the repository at this point in the history
use Blackman-Harris window in ddc to reduce aliasing
  • Loading branch information
argilo authored Apr 13, 2023
2 parents 803b90e + 675c547 commit fe41c7f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions resources/news.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
FIXED: Remove empty frame from bottom of I/Q tool window.
FIXED: Sudden scrolling of file list in I/Q tool window.
FIXED: Reset zoom slider after right click on panadapter / waterfall.
FIXED: Aliasing when input rate is higher than 2 Msps.
IMPROVED: AGC performance.
IMPROVED: WFM stereo & OIRT performance.
IMPROVED: Apply amplitude normalization to FFT window functions.
Expand Down
8 changes: 7 additions & 1 deletion src/dsp/downconverter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,13 @@ void downconverter_cc::update_proto_taps()
if (d_decim > 1)
{
double out_rate = d_samp_rate / d_decim;
filt->set_taps(gr::filter::firdes::low_pass(1.0, d_samp_rate, LPF_CUTOFF, out_rate - 2*LPF_CUTOFF));
filt->set_taps(gr::filter::firdes::low_pass(1.0, d_samp_rate, LPF_CUTOFF, out_rate - 2*LPF_CUTOFF,
#if GNURADIO_VERSION < 0x030900
gr::filter::firdes::WIN_BLACKMAN_HARRIS
#else
gr::fft::window::WIN_BLACKMAN_HARRIS
#endif
));
}
}

Expand Down

0 comments on commit fe41c7f

Please sign in to comment.