aboutsummaryrefslogtreecommitdiffstats
path: root/dpd/src/Agc.py
diff options
context:
space:
mode:
authorandreas128 <Andreas>2017-09-23 20:31:47 +0200
committerandreas128 <Andreas>2017-09-23 20:31:47 +0200
commitb821bd80132eaa6e7132508d0e12787db45f4f16 (patch)
treedeb83c79ebdb3fa8c36cec44b75edfa542ea0193 /dpd/src/Agc.py
parentebcd2418cfecd41b56b37454bab2551a5df7e25c (diff)
downloaddabmod-b821bd80132eaa6e7132508d0e12787db45f4f16.tar.gz
dabmod-b821bd80132eaa6e7132508d0e12787db45f4f16.tar.bz2
dabmod-b821bd80132eaa6e7132508d0e12787db45f4f16.zip
Move constants to const.py
Diffstat (limited to 'dpd/src/Agc.py')
-rw-r--r--dpd/src/Agc.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/dpd/src/Agc.py b/dpd/src/Agc.py
index b83c91e..670fbbb 100644
--- a/dpd/src/Agc.py
+++ b/dpd/src/Agc.py
@@ -35,14 +35,14 @@ class Agc:
received signal fulfills our desired property, of having
all amplitudes properly quantized."""
- def __init__(self, measure, adapt, min_rxgain=25, peak_to_median=20):
+ def __init__(self, measure, adapt, c):
assert isinstance(measure, Measure.Measure)
assert isinstance(adapt, Adapt.Adapt)
self.measure = measure
self.adapt = adapt
- self.min_rxgain = min_rxgain
+ self.min_rxgain = c.RAGC_min_rxgain
self.rxgain = self.min_rxgain
- self.peak_to_median = peak_to_median
+ self.peak_to_median = 1./c.RAGC_rx_median_target
def run(self):
self.adapt.set_rxgain(self.rxgain)