[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; }
- [Commit-gnuradio] [gnuradio] branch master updated (c815a01 -> 42c1d6d), git, 2015/02/04
- [Commit-gnuradio] [gnuradio] 01/09: digital: update control loop frequency limits in fll_band_edge_cc when samps_per_sym is changed, git, 2015/02/04
- [Commit-gnuradio] [gnuradio] 03/09: runtime: possible bug fix for limited-run flowgraphs with message-only blocks., git, 2015/02/04
- [Commit-gnuradio] [gnuradio] 05/09: Merge branch 'maint', git, 2015/02/04
- [Commit-gnuradio] [gnuradio] 02/09: uhd: Added set_stream_args() method to sink & source, git, 2015/02/04
- [Commit-gnuradio] [gnuradio] 08/09: Merge remote-tracking branch 'tom/runtime_msg_passing_finished', git, 2015/02/04
- [Commit-gnuradio] [gnuradio] 04/09: blocks: the API for the peak_detector blocks incorrectly uses int instead of float for setting alpha.,
git <=
- [Commit-gnuradio] [gnuradio] 07/09: Merge remote-tracking branch 'mbr0wn/uhd/stream_args', git, 2015/02/04
- [Commit-gnuradio] [gnuradio] 09/09: Merge remote-tracking branch 'tom/blocks/peak_det_api', git, 2015/02/04
- [Commit-gnuradio] [gnuradio] 06/09: Merge remote-tracking branch 'nowls/master', git, 2015/02/04