summaryrefslogtreecommitdiff
path: root/gr-blocks
diff options
context:
space:
mode:
authorTom Rondeau <tom@trondeau.com>2013-11-19 20:29:34 -0500
committerTom Rondeau <tom@trondeau.com>2013-11-19 20:29:34 -0500
commit49ec253adaa6f650372512626279ab562c8c7096 (patch)
tree9eef52d7473834043e5dfc2c1bf8e78e2c1f00ef /gr-blocks
parentf627da1448f29e16a9b4d6e3cafcd2bd1bf1802b (diff)
blocks: loosen restriction on damping factor in control_loop class.
Diffstat (limited to 'gr-blocks')
-rw-r--r--gr-blocks/lib/control_loop.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-blocks/lib/control_loop.cc b/gr-blocks/lib/control_loop.cc
index bd33e6a7a0..7104e7439e 100644
--- a/gr-blocks/lib/control_loop.cc
+++ b/gr-blocks/lib/control_loop.cc
@@ -99,8 +99,8 @@ namespace gr {
void
control_loop::set_damping_factor(float df)
{
- if(df < 0 || df > 1.0) {
- throw std::out_of_range ("control_loop: invalid damping factor. Must be in [0,1].");
+ if(df <= 0) {
+ throw std::out_of_range ("control_loop: invalid damping factor. Must be > 0.");
}
d_damping = df;