summaryrefslogtreecommitdiff
path: root/gr-uhd/examples/python/usrp_tv_rcv.py
diff options
context:
space:
mode:
Diffstat (limited to 'gr-uhd/examples/python/usrp_tv_rcv.py')
-rwxr-xr-xgr-uhd/examples/python/usrp_tv_rcv.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gr-uhd/examples/python/usrp_tv_rcv.py b/gr-uhd/examples/python/usrp_tv_rcv.py
index b42cf57992..794fec4e1f 100755
--- a/gr-uhd/examples/python/usrp_tv_rcv.py
+++ b/gr-uhd/examples/python/usrp_tv_rcv.py
@@ -47,6 +47,7 @@ except:
print "FYI: gr-video-sdl is not installed"
print "realtime SDL video output window will not be available"
from gnuradio import uhd
+from gnuradio import analog
from gnuradio.eng_option import eng_option
from gnuradio.wxgui import slider, powermate
from gnuradio.wxgui import stdgui2, fftsink2, form
@@ -194,7 +195,7 @@ class tv_rx_block (stdgui2.std_top_block):
file_sink=gr.file_sink(gr.sizeof_char, options.out_filename)
self.dst =file_sink
- self.agc=gr.agc_cc(1e-7,1.0,1.0) #1e-7
+ self.agc = analog.agc_cc(1e-7,1.0,1.0) #1e-7
self.am_demod = gr.complex_to_mag ()
self.set_blacklevel=gr.add_const_ff(0.0)
self.invert_and_scale = gr.multiply_const_ff (0.0) #-self.contrast *128.0*255.0/(200.0)