From 5bdd638f56775e50cce23ffe3bef241de53dcad1 Mon Sep 17 00:00:00 2001
From: Tom Rondeau <trondeau@vt.edu>
Date: Thu, 23 May 2013 15:37:59 -0400
Subject: analog: updated AGC loops to have same interface; can init gain,
 max_gain defaults to 2e16, reset using set_max_gain.

---
 gr-analog/python/qa_agc.py | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

(limited to 'gr-analog/python/qa_agc.py')

diff --git a/gr-analog/python/qa_agc.py b/gr-analog/python/qa_agc.py
index fc88b6acb0..96a614ecb7 100755
--- a/gr-analog/python/qa_agc.py
+++ b/gr-analog/python/qa_agc.py
@@ -35,7 +35,7 @@ class test_agc(gr_unittest.TestCase):
 
 
     def test_001_sets(self):
-        agc = analog.agc_cc(1e-3, 1, 1, 1000)
+        agc = analog.agc_cc(1e-3, 1, 1)
 
 	agc.set_rate(1)
 	agc.set_reference(1.1)
@@ -109,7 +109,7 @@ class test_agc(gr_unittest.TestCase):
         dst1 = blocks.vector_sink_c()
         head = blocks.head(gr.sizeof_gr_complex, int (5*sampling_freq * 0.10))
 
-        agc = analog.agc_cc(1e-3, 1, 1, 1000)
+        agc = analog.agc_cc(1e-3, 1, 1)
 
         tb.connect(src1, head)
         tb.connect(head, agc)
@@ -120,7 +120,7 @@ class test_agc(gr_unittest.TestCase):
         self.assertComplexTuplesAlmostEqual(expected_result, dst_data, 4)
 
     def test_002_sets(self):
-        agc = analog.agc_ff(1e-3, 1, 1, 1000)
+        agc = analog.agc_ff(1e-3, 1, 1)
 
 	agc.set_rate(1)
 	agc.set_reference(1.1)
@@ -194,7 +194,7 @@ class test_agc(gr_unittest.TestCase):
         dst1 = blocks.vector_sink_f ()
         head = blocks.head (gr.sizeof_float, int (5*sampling_freq * 0.10))
 
-        agc = analog.agc_ff(1e-3, 1, 1, 1000)
+        agc = analog.agc_ff(1e-3, 1, 1)
 
         tb.connect (src1, head)
         tb.connect (head, agc)
@@ -205,7 +205,7 @@ class test_agc(gr_unittest.TestCase):
         self.assertFloatTuplesAlmostEqual (expected_result, dst_data, 4)
 
     def test_003_sets(self):
-        agc = analog.agc2_cc(1e-3, 1e-1, 1, 1, 1000)
+        agc = analog.agc2_cc(1e-3, 1e-1, 1, 1)
 
 	agc.set_attack_rate(1)
 	agc.set_decay_rate(2)
@@ -281,7 +281,7 @@ class test_agc(gr_unittest.TestCase):
         dst1 = blocks.vector_sink_c()
         head = blocks.head(gr.sizeof_gr_complex, int(5*sampling_freq * 0.10))
 
-        agc = analog.agc2_cc(1e-2, 1e-3, 1, 1, 1000)
+        agc = analog.agc2_cc(1e-2, 1e-3, 1, 1)
 
         tb.connect(src1, head)
         tb.connect(head, agc)
@@ -292,7 +292,7 @@ class test_agc(gr_unittest.TestCase):
         self.assertComplexTuplesAlmostEqual(expected_result, dst_data, 4)
 
     def test_004_sets(self):
-        agc = analog.agc2_ff(1e-3, 1e-1, 1, 1, 1000)
+        agc = analog.agc2_ff(1e-3, 1e-1, 1, 1)
 
 	agc.set_attack_rate(1)
 	agc.set_decay_rate(2)
@@ -368,7 +368,7 @@ class test_agc(gr_unittest.TestCase):
         dst1 = blocks.vector_sink_f()
         head = blocks.head(gr.sizeof_float, int(5*sampling_freq * 0.10))
 
-        agc = analog.agc2_ff(1e-2, 1e-3, 1, 1, 1000)
+        agc = analog.agc2_ff(1e-2, 1e-3, 1, 1)
 
         tb.connect(src1, head)
         tb.connect(head, agc)
@@ -441,7 +441,7 @@ class test_agc(gr_unittest.TestCase):
         dst1 = blocks.vector_sink_c()
         head = blocks.head(gr.sizeof_gr_complex, int(5*sampling_freq * 0.10))
 
-        agc = analog.agc2_cc(1e-2, 1e-3, 1, 1, 1000)
+        agc = analog.agc2_cc(1e-2, 1e-3, 1, 1)
 
         tb.connect(src1, head)
         tb.connect(head, agc)
-- 
cgit v1.2.3