summaryrefslogtreecommitdiffstats
path: root/dpd/src/Agc.py
diff options
context:
space:
mode:
authorandreas128 <Andreas>2017-09-08 10:05:56 +0200
committerandreas128 <Andreas>2017-09-08 10:05:56 +0200
commit988e0b9472489657f86838362b176863ec42d0fd (patch)
tree9a782277c75c8477119716f24e4064879ac0c56c /dpd/src/Agc.py
parent1b6c5dd58658bbc1b423b50baa15ca3fae6a1065 (diff)
downloaddabmod-988e0b9472489657f86838362b176863ec42d0fd.tar.gz
dabmod-988e0b9472489657f86838362b176863ec42d0fd.tar.bz2
dabmod-988e0b9472489657f86838362b176863ec42d0fd.zip
Cleanup and change logging plots to svg
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 1fd11c8..978b607 100644
--- a/dpd/src/Agc.py
+++ b/dpd/src/Agc.py
@@ -47,7 +47,7 @@ class Agc:
def run(self):
self.adapt.set_rxgain(self.rxgain)
- for i in range(3):
+ for i in range(2):
# Measure
txframe_aligned, tx_ts, rxframe_aligned, rx_ts, rx_median= \
self.measure.get_samples()
@@ -65,7 +65,7 @@ class Agc:
))
self.adapt.set_rxgain(self.rxgain)
- time.sleep(1)
+ time.sleep(0.5)
def plot_estimates(self):
"""Plots the estimate of for Max, Median, Mean for different
@@ -74,7 +74,7 @@ class Agc:
time.sleep(1)
dt = datetime.datetime.now().isoformat()
- fig_path = logging_path + "/" + dt + "_agc.pdf"
+ fig_path = logging_path + "/" + dt + "_agc.svg"
fig, axs = plt.subplots(2, 2, figsize=(3*6,1*6))
axs = axs.ravel()