diff options
author | Mike Jameson | 2013-02-11 20:55:40 +0000 |
---|---|---|
committer | Mike Jameson | 2013-02-11 20:55:40 +0000 |
commit | c1e4886a82670e30c5e6dbec70f8e068a14fb341 (patch) | |
tree | 8d1f4135fa706b0948b4858ef83fb8cc02cc92da | |
parent | 07b686fe56217dbb44cfbc7ccbbea44d82653003 (diff) | |
download | gnuradio-c1e4886a82670e30c5e6dbec70f8e068a14fb341.tar.gz gnuradio-c1e4886a82670e30c5e6dbec70f8e068a14fb341.tar.bz2 gnuradio-c1e4886a82670e30c5e6dbec70f8e068a14fb341.zip |
uhd: added click to change freq
-rwxr-xr-x | gr-uhd/apps/uhd_fft | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gr-uhd/apps/uhd_fft b/gr-uhd/apps/uhd_fft index 7af2c5326..800a5fab8 100755 --- a/gr-uhd/apps/uhd_fft +++ b/gr-uhd/apps/uhd_fft @@ -118,6 +118,10 @@ class app_top_block(stdgui2.std_top_block): average=options.averaging, avg_alpha=options.avg_alpha, fft_rate=options.fft_rate) + def fftsink_callback(x, y): + self.set_freq(x) + + self.scope.set_callback(fftsink_callback) self.frame.SetMinSize((800, 420)) self.connect(self.u, self.scope) |