[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r10979 - gnuradio/trunk/gr-wxgui/src/python
From: |
jblum |
Subject: |
[Commit-gnuradio] r10979 - gnuradio/trunk/gr-wxgui/src/python |
Date: |
Wed, 6 May 2009 14:58:28 -0600 (MDT) |
Author: jblum
Date: 2009-05-06 14:58:28 -0600 (Wed, 06 May 2009)
New Revision: 10979
Modified:
gnuradio/trunk/gr-wxgui/src/python/numbersink2.py
Log:
numbersink fix for when average=True on init
Modified: gnuradio/trunk/gr-wxgui/src/python/numbersink2.py
===================================================================
--- gnuradio/trunk/gr-wxgui/src/python/numbersink2.py 2009-05-06 07:26:58 UTC
(rev 10978)
+++ gnuradio/trunk/gr-wxgui/src/python/numbersink2.py 2009-05-06 20:58:28 UTC
(rev 10979)
@@ -87,13 +87,14 @@
self.controller = pubsub()
self.controller.subscribe(SAMPLE_RATE_KEY, sd.set_sample_rate)
self.controller.publish(SAMPLE_RATE_KEY, sd.sample_rate)
+ self.controller[AVERAGE_KEY] = average
+ self.controller[AVG_ALPHA_KEY] = avg_alpha
def update_avg(*args):
if self.controller[AVERAGE_KEY]:
avg.set_taps(self.controller[AVG_ALPHA_KEY])
else: avg.set_taps(1.0)
+ update_avg()
self.controller.subscribe(AVERAGE_KEY, update_avg)
self.controller.subscribe(AVG_ALPHA_KEY, update_avg)
- self.controller[AVERAGE_KEY] = average
- self.controller[AVG_ALPHA_KEY] = avg_alpha
#start input watcher
common.input_watcher(msgq, self.controller, MSG_KEY)
#create window
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r10979 - gnuradio/trunk/gr-wxgui/src/python,
jblum <=