commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 04/09: blocks: the API for the peak_detecto


From: git
Subject: [Commit-gnuradio] [gnuradio] 04/09: blocks: the API for the peak_detector blocks incorrectly uses int instead of float for setting alpha.
Date: Wed, 4 Feb 2015 21:59:35 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

jcorgan pushed a commit to branch master
in repository gnuradio.

commit 25f88309daa2c4c347b8e1d27189c9a237310db2
Author: Tom Rondeau <address@hidden>
Date:   Wed Feb 4 13:08:15 2015 +0000

    blocks: the API for the peak_detector blocks incorrectly uses int instead 
of float for setting alpha.
---
 gr-blocks/include/gnuradio/blocks/peak_detector_XX.h.t | 2 +-
 gr-blocks/lib/peak_detector_XX_impl.h.t                | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gr-blocks/include/gnuradio/blocks/peak_detector_XX.h.t 
b/gr-blocks/include/gnuradio/blocks/peak_detector_XX.h.t
index bc74357..2885a9b 100644
--- a/gr-blocks/include/gnuradio/blocks/peak_detector_XX.h.t
+++ b/gr-blocks/include/gnuradio/blocks/peak_detector_XX.h.t
@@ -89,7 +89,7 @@ namespace gr {
       /*! \brief Set the running average alpha
        *  \param alpha new alpha for running average
        */
-      virtual void set_alpha(int alpha) = 0;
+      virtual void set_alpha(float alpha) = 0;
 
       /*! \brief Get the threshold factor value for the rise time
        *  \return threshold factor
diff --git a/gr-blocks/lib/peak_detector_XX_impl.h.t 
b/gr-blocks/lib/peak_detector_XX_impl.h.t
index ed364a4..22de961 100644
--- a/gr-blocks/lib/peak_detector_XX_impl.h.t
+++ b/gr-blocks/lib/peak_detector_XX_impl.h.t
@@ -49,7 +49,7 @@ namespace gr {
       void set_threshold_factor_rise(float thr) { d_threshold_factor_rise = 
thr; }
       void set_threshold_factor_fall(float thr) { d_threshold_factor_fall = 
thr; }
       void set_look_ahead(int look) { d_look_ahead = look; }
-      void set_alpha(int alpha) { d_avg_alpha = alpha; }
+      void set_alpha(float alpha) { d_avg_alpha = alpha; }
       float threshold_factor_rise() { return d_threshold_factor_rise; }
       float threshold_factor_fall() { return d_threshold_factor_fall; }
       int look_ahead() { return d_look_ahead; }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]