Skip to content

Commit

Permalink
tuning performance
Browse files Browse the repository at this point in the history
  • Loading branch information
robotastic committed Dec 2, 2023
1 parent c01d954 commit fcd6299
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions trunk-recorder/recorders/analog_recorder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<gr_complex> dest(inital_lpf_taps.begin(), inital_lpf_taps.end());

Expand Down
2 changes: 1 addition & 1 deletion trunk-recorder/recorders/p25_recorder_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fcd6299

Please sign in to comment.