From fcd629989cbe5543e2484312f21dab4d3c55285b Mon Sep 17 00:00:00 2001 From: Luke Berndt Date: Sat, 2 Dec 2023 07:08:32 -0500 Subject: [PATCH] tuning performance --- trunk-recorder/recorders/analog_recorder.cc | 6 +++--- trunk-recorder/recorders/p25_recorder_impl.cc | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/trunk-recorder/recorders/analog_recorder.cc b/trunk-recorder/recorders/analog_recorder.cc index 5af62cbb9..15605dcc7 100644 --- a/trunk-recorder/recorders/analog_recorder.cc +++ b/trunk-recorder/recorders/analog_recorder.cc @@ -109,12 +109,12 @@ analog_recorder::analog_recorder(Source *src, Recorder_Type type) double resampled_rate = double(initial_rate) / double(decim); #if GNURADIO_VERSION < 0x030900 - inital_lpf_taps = gr::filter::firdes::low_pass_2(1.0, samp_rate, 96000, 30000, 100, gr::filter::firdes::WIN_HANN); + inital_lpf_taps = gr::filter::firdes::low_pass_2(1.0, samp_rate, 96000, 30000, 30, gr::filter::firdes::WIN_HANN); #else - inital_lpf_taps = gr::filter::firdes::low_pass_2(1.0, samp_rate, 96000, 30000, 100, gr::fft::window::WIN_HANN); + inital_lpf_taps = gr::filter::firdes::low_pass_2(1.0, samp_rate, 96000, 30000, 30, gr::fft::window::WIN_HANN); #endif // channel_lpf_taps = gr::filter::firdes::low_pass_2(1.0, pre_channel_rate, 5000, 2000, 60); - channel_lpf_taps = gr::filter::firdes::low_pass_2(1.0, initial_rate, 4000, 1000, 100); + channel_lpf_taps = gr::filter::firdes::low_pass_2(1.0, initial_rate, 4000, 1000, 30); std::vector dest(inital_lpf_taps.begin(), inital_lpf_taps.end()); diff --git a/trunk-recorder/recorders/p25_recorder_impl.cc b/trunk-recorder/recorders/p25_recorder_impl.cc index fd2154b0e..229739f4a 100644 --- a/trunk-recorder/recorders/p25_recorder_impl.cc +++ b/trunk-recorder/recorders/p25_recorder_impl.cc @@ -21,7 +21,7 @@ void p25_recorder_impl::generate_arb_taps() { // width of 0.5. If rate < 1, we need to filter to less // than half the output signal's bw to avoid aliasing, so // the half-band here is 0.5*rate. - double percent = 1;// 0.95; //0.80; + double percent = 0.80; if (arb_rate <= 1) { double halfband = 0.5 * arb_rate;