diff options
author | Tom Rondeau <tom@trondeau.com> | 2015-04-22 11:48:32 -0400 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2015-04-26 15:35:58 -0700 |
commit | 94292039e47805b87255a0baf8e6c5f33c81b823 (patch) | |
tree | 6f18b01c5a176c8b168ea93899ecac7e8bc79d4c /gr-blocks/lib/peak_detector2_fb_impl.h | |
parent | abb3e0643ae245f08b7e7bcdaf3b8e8f0c312908 (diff) |
blocks: more fixups to peak_detector2.
Fixes some issues from setting parameters while running.
Diffstat (limited to 'gr-blocks/lib/peak_detector2_fb_impl.h')
-rw-r--r-- | gr-blocks/lib/peak_detector2_fb_impl.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gr-blocks/lib/peak_detector2_fb_impl.h b/gr-blocks/lib/peak_detector2_fb_impl.h index f5a8ac1a6b..4e16c93dac 100644 --- a/gr-blocks/lib/peak_detector2_fb_impl.h +++ b/gr-blocks/lib/peak_detector2_fb_impl.h @@ -1,6 +1,6 @@ /* -*- c++ -*- */ /* - * Copyright 2007,2013 Free Software Foundation, Inc. + * Copyright 2007,2013,2015 Free Software Foundation, Inc. * * This file is part of GNU Radio * @@ -40,14 +40,16 @@ namespace gr { float d_avg; bool d_found; + void invalidate(); + public: peak_detector2_fb_impl(float threshold_factor_rise, int look_ahead, float alpha); ~peak_detector2_fb_impl(); - void set_threshold_factor_rise(float thr) { d_threshold_factor_rise = thr; } - void set_look_ahead(int look) { d_look_ahead = look; } - void set_alpha(float alpha) { d_alpha = alpha; } + void set_threshold_factor_rise(float thr); + void set_look_ahead(int look); + void set_alpha(float alpha); float threshold_factor_rise() { return d_threshold_factor_rise; } int look_ahead() { return d_look_ahead; } |